You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]);
}
}
The text was updated successfully, but these errors were encountered:
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]); } }The text was updated successfully, but these errors were encountered: