Transfer of a file content to the render function #154
Linuxmaker
started this conversation in
General
Replies: 1 comment 3 replies
-
Hey, what do you mean by "transfer a file to the QRCode"? Do you want the content of that file in the QRCode? In that case you would just fetch the content of that file via $qrcode = (new QRCode($options))->render(file_get_contents('/path/to/your/file.ext')); The code snippet you posted manages the output of the finalized QRCode into a file. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Your tool is fantastic. However, I am looking for a way to transfer a file to the QRCode object instead of a string. The background is the bank QR code with 32 lines, the information for which is in the variable $data.
$qrcode = (new QRCode($options))→render('https://www.google.com');
In the class definition QRCode.php it says from line 179:
How could this be changed so that a file with 32 lines of text can be passed instead?
Many greetings
Linuxmaker
Beta Was this translation helpful? Give feedback.
All reactions