It sounds like you're describing the difference between data type and data
format.  In other words, jpg, bmp, and gif files are all binary data.  What
makes them unique is the format of that binary data, which is why it's
necessary to specify the correct file extension to properly process the

Does that make sense?

-----Original Message-----
One would think that pulling binary data from a DB using the function
imageCreateFromString would allow you to output that string to any format.
(GIF JPEG PNG) or whatever is supported by your version of GD.

But this code flakes out and creates no image if it reads from a binary file
made by a GIF file. (works great for JPEGs!!)
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to