webgodjj Posted November 28, 2006 Share Posted November 28, 2006 Hi, I have been scouring forums to find out how to extract images from a blob field in a mysql database to a file. Then take this image and store the path and it's image name to a new table.Something like this:SELECT * FROM products;foreach image:generate new id - $id = uniqid(rand(), true);save image -> images/products/$id.jpginsert into products_2 -> product name ... , ... , ... , imageid, ....I think that I need to use imagecreatefromstring() function, however, how to save it to the directory is beyond me... Link to comment https://forums.phpfreaks.com/topic/28790-image-stored-in-a-mysql-blob-field-save-to-directory/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.