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

Windows Usage #16

Open
SuperFred opened this issue Jul 4, 2019 · 1 comment
Open

Windows Usage #16

SuperFred opened this issue Jul 4, 2019 · 1 comment

Comments

@SuperFred
Copy link

After a lot of test, I finally succeeded to decode work.

Here's the solution
$decoder = new \PHPZxing\PHPZxingDecoder();
// Set java path with double quote '"path/to/java/exe"'
$decoder->setJavaPath('"C:\Program Files\Java\jdk1.8.0_202\bin\java.exe"');
// replace \ by / in file path
$newPath=str_replace('\','/',$tmpfilePath);
// add file:/// before file Path
$data = $decoder->decode('file:///'.$newPath);

@sorry510
Copy link

3q,you are so great!!! @SuperFred

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