File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Storibg binary data in blog + mysql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Storibg binary data in blog + mysql" Watch "Storibg binary data in blog + mysql" New topic

Storibg binary data in blog + mysql

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 761
Hi following is the code in my servlet which will call a funtion of my java class the function will store the regular file in database table and i dont have any idea how to store the image in database table in blog field...

can anybody put some light on it ???

Servlet Code which will call java class method.

java class files method which is being called with the parameeter ArrayList to store regular fields and image in the database.

right now my images are being stored as D:/test.jpg //overwriting everytime...if there is image...
[ March 20, 2007: Message edited by: Jigar Naik ]

Jigar Naik

I agree. Here's the link:
subject: Storibg binary data in blog + mysql
It's not a secret anymore!