Hi /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> ,
My recommendation is that you should not use this method.
Uplaoding the images is much better way and I have a quite good reason for it.
Well you want to store the images in Mysql table, then here is the solution:
As you know that images posses binary garbage that can only be understand by the machine. So you should define a column for images with binary data type but this data type is not defined yet but you know that binary data can be treated as string.
So you should keep the column data type as longtext. And put your images binary garbage in that column then you will have to call them on the page in image tags of html but the src attribute will have all the binary garbage in it.
Yes it is the way but why do I recomended that you should not do this. As you have seen that you dont have the images in binary format. So you will have to open them in any text software that can handle huge files like images and will have to copy them to your mysql table column.
And as you need them on the pages again you will have to put the column name in the src attribute so all garbage should come at the exact place.
Yes the bigger and the most important fact is that your database will become heavier and the task such as searching and moving from one record to another become time consuming and may result in slow response from the website. ( I can also explain in detail that how the performance will decrease )
Better avoid storing images in the databases, in any of the database you use....
just store the exact name of images in the database and call them in your pages from the database but they will load from the folders.
Hope I clearify everything...
Ready to response further /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />