Php : Convert a blob into an image file
Is this possible with php and a mysql database to Convert a blob into an image file? If the BLOB contains the binary data of an image (in a recognizable format like e.g. tiff, png, jpeg, etc), take the content of the BLOB, write it to a file, and voilà... you got an image. On some strange operation systems you have to give the output file a correspondig extension, so that the image file can be recognised as such. You can use a few different methods depending on what php image library you have installed. Here's a few examples. Note, the echo <img> is just a trick I use to display multiple