The image file was inserted into MySQL database as a BLOB, and is about 5kb in size.
I am able to connect, select and fetch the file, but then how do I display the image? There are so many functions like:
imagecreatefromjpeg();
imagejpeg();
imagecreatefromstring();
I am not sure in what format the file comes out of the database (it was jpeg going in), and whether it needs to be reconstructed.
Also, will the file be stored in a variable (not the filename, but the contents of the file) until used.
Is there a temporary place on the server (or my website) where it is stored?
And finally, how do I display the image on the screen without first storing it in some folder as a file with filename.
Would really appreciate any help on this one. I have been reading the documentation and sample code on php net and other places. The more I read, the more confusing it gets
Thanks