symfony1 - php symfony to get blob image data from mysql -


How can I get an image data string from mysql db that contains Blob images? Thank you.

Assume that you are using default orm (palva) that comes with symphony , $ Your_object -> getImage () * Any Blob value stored in the database should be stored.

You may already know this and this is not an option, but have you considered storing images in a directory and using the database to store the path of images?

* Assume that the 'image' is the name of the field in the database / schema.yml


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -