• Post Reply Bookmark Topic Watch Topic
  • New Topic

uploading photo to database  RSS feed

 
ronald silva
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.
I would like to upload a photo, using form (html/jsp) to a servlet to a database (postgresql).

I have no idea how to do.

maybe the code of jsp:

input type ???


maybe the code of servlet:


after openning a conection to database (postgresql), how to insert the image?

and how to retrieve the image from database?

in the tablet in the database, I would like to make this:





 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65757
130
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a bit more complicated than that. See the following Servlets FAQ entry: https://coderanch.com/wiki/660188/File-Upload
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!