File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how can i store picture in my database
Joined: Mar 23, 2007
Mar 29, 2007 00:49:00
hello friends , i want to store picture in my data base. im working on
&using mysql as database.can any one can provide me code to generate it.
Joined: Jan 16, 2005
Mar 29, 2007 01:01:00
I don't know how to do it myself, but I did a quick search and found this which may help get you started:
Joined: Aug 23, 2005
Mar 29, 2007 10:39:00
You can convert the image data to a stream and then store this in a column of type BLOB. The website below provides the table design but the code is PHP.
Other more generic solution, could be to store "the location of the image on the hard drive", in the database.
I agree. Here's the link:
subject: how can i store picture in my database
Storing Picture in Access DataBase
Upload attachment using Java
Byte array manipulation
display a picture stored in a DB with HTML
upload an image and save it on the server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014