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)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.