A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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
Byte array manipulation
Storing Picture in Access DataBase
Upload attachment using Java
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-2013