December 28th, 2012, 09:47 AM
-
Saving a BLOB(Image) to temporary location
I am saving user's images as blob in database. problem is that after retrieving that blob image,i want to save it in a temporary location of web server and from there i want to apply some business logic. please anybody help me to solve this. Thanks in advance
December 28th, 2012, 10:26 AM
-
You can use file_put_contents to write data to a file. Basically, get the blob into a string by retrieving it from the database, then write that string into a file. The tempnam function can be used to create a temporary file, the manual page for this function contains an example of that.
PHP FAQ
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around