Skip to content

Error Call to a member function isFound() on null #25

@Jbranevoluciona

Description

@Jbranevoluciona

This is my code

file('archivo'); $foto->storeAs('public', 'image.png'); $ruta ='public/image.png'; //Decodificar una imagen $config = array( 'try_harder' => true, 'multiple_bar_codes' => true ); $decoder = new PHPZxingDecoder($config); $decoder->setJavaPath('C:\Program Files\Java\jdk1.8.0_291'); //$decoder->setJavaPath('C:\Program Files\Java\jdk1.8.0_291\bin'); //C:\Program Files\Common Files\Oracle\Java\javapath\ //C:\Program Files\Common Files\Oracle\Java\javapath\java.exe $data = $decoder->decode($ruta); $ruta=''; $format=''; $type=''; /*When calling the isFound () function it is when it presents the error, do you have any idea why it will be? I'm new to Laravel, sorry for the interruption*/ if($data->isFound()) { $ruta = $data->getImageValue(); $format=$data->getFormat(); $type=$data->getType(); } return view('Testimage', ['ruta' => $ruta]); } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions