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

base 64 encoded image error when open_basedir is set. #758

Open
lingdao-dwi opened this issue Oct 31, 2024 · 0 comments
Open

base 64 encoded image error when open_basedir is set. #758

lingdao-dwi opened this issue Oct 31, 2024 · 0 comments

Comments

@lingdao-dwi
Copy link

version 6.7.7

I have two Hosts A and B. In A, tcpdf used to create pdf file using the images stored in B. In host A open_basedir is set. I am reading image content from another site using file_get_contents. After base64_encode when i use the encoded image data in
$pdf->writeHTML("<img src="{$image}"/>") following errors shows.

Warning: fopen(): open_basedir restriction in effect.......
tcpdf\include\tcpdf_static.php on line 1814
Warning: fopen(file://): Failed to open stream: Operation not permitted in ......tcpdf\include\tcpdf_static.php on line 1814
TCPDF ERROR: Unable to write file:

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

1 participant