  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Displaying Generated Image on Jsp | Displaying Generated Image on Jsp 2004-12-17 - By Govind Kotwani
Back
Hi,
We have web J2EE web based application which is deployed on weblogic 8.1(on Unix) as an ear. This EAR contains some EJB's some jar files and a war file.
Now we want to display an image on the jsp after retreiving it from the database.Image is stored in the database as a BLOB object. Currently what is implemented is e.g as soon as user selects a product an image file (.jpg) is generated from the BLOB object (at some predefined location say C:\ImageFolder) and in jsp(HTML) we display this image with with giving this path in IMG src tag.
Is there any way where we can get rid of this absolute path(hard coded) path and generate the image at a relative path and display from there in our jsp or is there any other wat to achieve it.
Thanks Govind
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
<br><font size=2 face="sans-serif">Hi,</font> <br> <br><font size=2 face="sans-serif">We have web J2EE web based application which is deployed on weblogic 8.1(on Unix) as an ear.</font> <br><font size=2 face="sans-serif">This EAR contains some EJB's some jar files and a war file.</font> <br> <br><font size=2 face="sans-serif">Now we want to display an image on the jsp after retreiving it from the database.Image is stored in the database as a BLOB object.</font> <br><font size=2 face="sans-serif">Currently what is implemented is e.g as soon as user selects a product an image file (.jpg) is generated from the BLOB </font> <br><font size=2 face="sans-serif">object (at some predefined location say C:\ImageFolder) and in jsp(HTML) we display this image with with giving this path in</font> <br><font size=2 face="sans-serif">IMG src tag.</font> <br> <br><font size=2 face="sans-serif">Is there any way where we can get rid of this absolute path(hard coded) path and generate the image at a relative path and display </font> <br><font size=2 face="sans-serif">from there in our jsp or is there any other wat to achieve it.</font> <br> <br> <br><font size=2 face="sans-serif">Thanks</font> <br><font size=2 face="sans-serif">Govind</font> <table><tr><td bgcolor=#ffffff><font color=#000000>Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient , any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you<br> </font></td></tr></table> =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p>
|
|
 |