• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC connectivity

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai every body Happy NewYear to all.
I am doing one auction site ,in that i want to store an Image file into my database(MSSQL 7.0) which user can enter.And also i have to display that image from database when any user asked.
How to insert and display an image into database ,i need code.
 
Bhupinder Dhillon
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the "Working with LOBs" heading under chapter 4 at http://technet.oracle.com/doc/java.815/a64685/toc.htm
 
rgopi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of inserting the image into database, just take the image and store the file in the server (rather than DB). When u want to view the image ,just get the path and display the image using img tag of HTML with source as that from DB.
For more details go through the Java Servlets by Jason Hunter.
Bye
Gopinath
Originally posted by vishnu priya:
Hai every body Happy NewYear to all.
I am doing one auction site ,in that i want to store an Image file into my database(MSSQL 7.0) which user can enter.And also i have to display that image from database when any user asked.
How to insert and display an image into database ,i need code.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic