Storing/Retrieving images to/from MySQL DB with BLOB.

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
phazorRise
Forum Contributor
Posts: 134
Joined: Mon Dec 27, 2010 7:58 am

Storing/Retrieving images to/from MySQL DB with BLOB.

Post by phazorRise »

I want to store image into database. File size of image is restricted to between 100-150 KB per image. Retrieval is also needed.Image can be of type GIF/JPEG/PNG.
I have written a code but it's not with me. And I don't have code with me now to show you as I'm in a Cafe. Help. Give me some link atleast.
Thank You !
thecodewall
Forum Commoner
Posts: 33
Joined: Sun Dec 26, 2010 8:37 am

Re: Storing/Retrieving images to/from MySQL DB with BLOB.

Post by thecodewall »

try to read this post. http://codewall.blogspot.com/2011/01/th ... rting.html
codewall.blogspot.com/2011/01/this-simple-tutorial-is-about-inserting.html
I think may help.
User avatar
phazorRise
Forum Contributor
Posts: 134
Joined: Mon Dec 27, 2010 7:58 am

Re: Storing/Retrieving images to/from MySQL DB with BLOB.

Post by phazorRise »

thanx for providing link. i appreciate.
User avatar
Aleroth
Forum Newbie
Posts: 8
Joined: Tue Jan 25, 2011 7:38 am

Re: Storing/Retrieving images to/from MySQL DB with BLOB.

Post by Aleroth »

okay i get how u can add one image to the table in one form, but how do u add 3 images at the same time with 3 sepperate inputs in one form on one page to the pics table?
Post Reply