wood burning stoves 2.0*
The moose likes JDBC and the fly likes JDBC connectivity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC connectivity" Watch "JDBC connectivity" New topic
Author

JDBC connectivity

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Oct 12, 2000
Posts: 124
Check the "Working with LOBs" heading under chapter 4 at http://technet.oracle.com/doc/java.815/a64685/toc.htm
rgopi
Greenhorn

Joined: Jan 10, 2001
Posts: 9
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.


Bye<BR>Gopinath
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JDBC connectivity
 
Similar Threads
Retrieve Images from oracle
display image after retrieving it from database?
thumbnail in jsp
Image jsp servlet controller bean and database
Displaying image blob in jsp using image tag