Hi there,
I'm wondering if there's a way to generate PDF from base64 string?
$data = some base64 encoding;
echo '<img src="data:image/png;base64,' . $data . '" />';
Generate PDF from base64 string
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Generate PDF from base64 string
Hi, not sure what you exactly mean?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 07 May 2015, 10:14
Re: Generate PDF from base64 string
Hi Jan,
I want to generate an article with images. But instead of image files within the article, I want to use base64 encoding to echo the image. Is that possible?
For example...
$data = some base64 encoding;
echo '<img src="data:image/png;base64,' . $data . '" />';
(I'm embedding PHP inside the article)
I want to generate an article with images. But instead of image files within the article, I want to use base64 encoding to echo the image. Is that possible?
For example...
$data = some base64 encoding;
echo '<img src="data:image/png;base64,' . $data . '" />';
(I'm embedding PHP inside the article)
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Generate PDF from base64 string
Hi, now I understand, but I think, TCPDF class (PDF feature) does not support this way of displaying images like internet browsers do (but I am really not sure)
Jan
Jan
If you find Phoca extensions useful, please support the project