Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to upload image to the server and store it into DB?

 
mocca az
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings!
How to upload image to the server and store it into DB? Example would be great. If anyone can point me to any direction, it would be greatly appreciated.
m,phx
 
Robert Brunner
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by mocca az:
Greetings!
How to upload image to the server and store it into DB? Example would be great. If anyone can point me to any direction, it would be greatly appreciated.
m,phx

Use HTML POST to upload the data, and then store the data in a BLOB using JDBC. Details become database specific, try the JDBC forum if you can provide more information.
 
Vlad Patryshev
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, you will have to upload it as a file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic