Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

images in tbale columns

Status
Not open for further replies.

kehers

Programmer
Aug 31, 2005
56
0
0
A2
is it possible to save or say put an image in a table column as with texts? what i do is insert the image name in it and put the image itself in a folder, but just thinking puting it in the mysql table itself will be easier if possible...need help on this
 
Yes, in table you have to create fields to hold information
ex.:

Image_Id
Image_Name
Image_Desc
Image_Itself - LONGBLOB type column for binary data

But i suggest that you should omit this way of keeping data.
Use traditional way to put image path in table - it'll be faster to retrieve (assume that you have jpg in table - when user select record with image - image goes from database through php and finally to user - when you use path the php and mysql doesn't have to consume memory on retrieving image)

Via-Net - web directory
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top