Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
JDBC and Relational Databases
how can i store picture in my database
rajesh roy
Greenhorn
Posts: 4
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hello friends , i want to store picture in my data base. im working on
java
&using mysql as database.can any one can provide me code to generate it.
Jenn Person
Ranch Hand
Posts: 89
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Rajesh,
I don't know how to do it myself, but I did a quick search and found this which may help get you started:
-
http://www.servletsuite.com/servlets/upload.htm
-
http://www.frontiernet.net/~imaging/FileUploadServlet.html
Manhar Puri
Ranch Hand
Posts: 41
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Rajesh,
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.
http://www.onlamp.com/pub/a/onlamp/2002/05/09/webdb2.html
Other more generic solution, could be to store "the location of the image on the hard drive", in the database.
-Manhar.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
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
More...