• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
  • Himai Minh
  • Carey Brown
  • salvin francis

Book Giveaway

Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup - yer in the right place.
To get the full scoop on how to score a book, see www.javaranch.com/bookpromo.jsp
Commenting on this thread doesn't count for the giveaway! Remember only people who are registered with Proper Names and email turned on are entered!
This week we are featuring is Kevin Williams book Professional XML Databases!
All us Ranchers need to give him a warm welcome!
Anybody have any questions about this week's giveaway?

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an image which is stored in the Oracle Database.
I want to store this image in a Java variable(string) and then I want to pass this string(containing image) to XSLT stylesheet which will display that image(.gif or .jpg) in a browser.
How do i do it? Any help with a working example is appreciated.
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't really do this, since HTML processors deal with images as separate streamed entities that are returned in a second pass. Probably the best approach would be to write a servlet that takes some sort of key, retrieves the image from the database corresponding to that key, and streams it back to the client; you would then send a URL pointing to that servlet (and passing it the appropriate key) as the HREF attribute on the IMG element in your HTML document.
- Kevin
Kevin Williams
Senior System Architect, Equient Corporation
author of: Professional XML Databases
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic