• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upload image to database through Servlets and JSP's

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Right! We're on it! Let's get to work tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic