File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload image to database through Servlets and JSP's

 
PavanKumar Chamarthi
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Please help me in uploading an image to postgresql database through servlets.i have tried many progrms that was mentioned here, But none of them are working.. please guide me and say if i need to download any other jar files. If you guys can give me the code then it will be so helpful..


Thank You
PavanKumar
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read the JspFaq entry on file uploading?

If not, please do so and try writing some code.

Then post the code here if you are having problems with it. You will not be given the code.
 
PavanKumar Chamarthi
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'Bear Bibeault' Thank you for giving me the reply. but i am designing a code for SHOPPING CART application.. It has to do everything dynamically...
If we save the images in WEB_INF folder, then the user cant always store images in that folder..

I heard that there is a code to convert images into binary format and store in the database.

I dont know the process correctly..Please help me
 
Amit Ghorpade
Bartender
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PavanKumar Chamarthi wrote:If we save the images in WEB_INF folder, then the user cant always store images in that folder..

Why? Can you give examples of when user can and when can't store?
Also I don't understand the need of saving/storing user images in a shopping cart application.
PavanKumar Chamarthi wrote:I heard that there is a code to convert images into binary format and store in the database.

Have you heard of BLOB data type as well?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic