Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes dynamically access images from database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "dynamically access images from database" Watch "dynamically access images from database" New topic
Author

dynamically access images from database

satya sxy
Greenhorn

Joined: Mar 23, 2001
Posts: 13
hello someone
could some one please provide me an idea as to how to dynamically access images from database.any ideas are apreciated.I require this for a project i am working on
thanks
shailu
Kevin Mukhar
Ranch Hand

Joined: Nov 28, 2000
Posts: 83
This is a very open-ended question. Much of the answer depends upon which database you are using. Oracle's databases can handle large binary objects in a number of ways including as SQL BLOB objects.
The JDBC 2.0 specification supports SQL BLOB objects. So, if you have a JDBC 2.0 compliant database and jdbc 2.0 driver, you should be able to store images to and retrieve images from the database.
The Java Tutorial has some information on using BLOB types here: http://java.sun.com/docs/books/tutorial/jdbc/jdbc2dot0/sql3.html
You can also download sample code from Wrox's Oracle 8i Application Programming here: http://www.wrox.com/Books/Book_down.asp?sub_section=1&isbn=1861004842&sub ject=Database&subject_id=25. Download the code for chs 5 - 16, and then look for the code in Chapter 12 in the jdbc.lob package.
Originally posted by satya sxy:
hello someone
could some one please provide me an idea as to how to dynamically access images from database.any ideas are apreciated.I require this for a project i am working on
thanks
shailu


[This message has been edited by Kevin Mukhar (edited March 23, 2001).]
satya sxy
Greenhorn

Joined: Mar 23, 2001
Posts: 13
Hi Kevin
Thanks for the suggestions and i highly appreciate your help.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: dynamically access images from database
 
Similar Threads
Add row dynamically in html table based on the number of records in the database using jsp
Accessing Remote Files
xhtmlrenderer won't display dynamically generated images
how to insert a picture in database
Displaying images on JSP page