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?
Hi, 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. Thanks.
Shantanu, 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
Kevin Williams<BR>Senior System Architect, Equient Corporation<BR>author of: <A HREF="http://www.amazon.com/exec/obidos/ASIN/1861003587/electricporkchop" TARGET=_blank rel="nofollow">Professional XML Databases</A>
He's my best friend. Not yours. Mine. You can have this tiny ad: