This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Storing image in blog fileld of mysql database  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm closing this thread. If you would like a response, please repost in the JDBC forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!