Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
JDBC and Relational Databases
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
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
display a picture stored in a DB with HTML
Byte array manipulation
upload an image and save it on the server
Upload attachment using Java
Storing Picture in Access DataBase
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015