This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes retrieving gif from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "retrieving gif from database" Watch "retrieving gif from database" New topic
Author

retrieving gif from database

ash raj
Greenhorn

Joined: Nov 07, 2000
Posts: 5
how to store a gif image in a database and how to retrieve it
using my servlet page ?
Brett Knapik
Ranch Hand

Joined: Oct 15, 2000
Posts: 255
Just a thought on a how different way this could be done. create a method within a bean that inserts the html code along with the image source. for example in your database you could have a column called imageurls the values of the row/column would be <IMG SRC="url to image here"> then in a jsp page you would import the bean and call getinfo(image) or like for a prodcut ID for example getinfo(id). just a thought on how this can be done.
------------------
I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work
[This message has been edited by Brett Knapik (edited November 11, 2000).]


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: retrieving gif from database