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

Entity image #2

Closed
wesiroyife opened this issue Sep 10, 2016 · 1 comment
Closed

Entity image #2

wesiroyife opened this issue Sep 10, 2016 · 1 comment
Labels

Comments

@wesiroyife
Copy link

wesiroyife commented Sep 10, 2016

Hi!

How can I send image? - "entityimage"
Maybe example?

Thank you!

@georged
Copy link
Contributor

georged commented Sep 12, 2016

When you retrieve entityimage, you get base64 image content. It's up to you how to serve it to the client:

  1. You can simply use the image as an embedded content: echo "<img src='data:image/png;base64," . $entity->entityimage . "' />"
  2. Save the content into a file or cache and then serve it in a separate request/url.

HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants