Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jbranevoluciona opened this issue Sep 16, 2021 · 1 comment
Open

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

Jbranevoluciona opened this issue Sep 16, 2021 · 1 comment

Comments

@Jbranevoluciona
Copy link

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]); } }
@moalm9
Copy link

moalm9 commented Apr 12, 2023

did you find any solution for this issue ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants