sunilpandya Posted September 11, 2012 Share Posted September 11, 2012 There are no tutorial on how to insert Images in Mysql blob field. If any body can give suggestion or programming code for the same. Link to comment Share on other sites More sharing options...
Ingolme Posted September 11, 2012 Share Posted September 11, 2012 All you need to do is open the file and copy the bytes to the database field. In PHP you can use file_get_contents to get the image data. If you're working with uploads, use file_get_contents on the $_FILES['file']['tmp_name'] element. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.