Q: What do you store in a database?
A: data
Q: what is an image?
A: data
So I'd say there is absolutely nothing special about storing images. The only thing is that you will want to store two things: the filename and the image data itself. Databases usually have a special data type for storing large amounts of binary data, such as the BLOB. Check your database documentation to figure out what your DBMS uses.
> So I'd say there is absolutely nothing special about
> storing images. The only thing is that you will want
> to store two things: the filename and the image data
> itself.
And the content type(Jpg, Gif, png ... ect) of the image. Becouse it may be deficult/expensive to figure that out by looking at the image data on the runtime.
Exactly
try the links below may be those might help u in store and retrieval any kind of file.
http://www.mysqltalk.org/insert-blob-example-vt112861.html
https://java.sun.com/j2se/1.5.0/docs/guide/jdbc/blob.html
http://javaalmanac.com/egs/java.sql/GetBlob.html
http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.jdbc.doc/jdbc142.htm
and a dearly advice friend please query google b4 you post any query out here.