Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamically access images from database

 
satya sxy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kevin
Thanks for the suggestions and i highly appreciate your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic