File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes problem with displaying the image from local disk  in jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with displaying the image from local disk  in jsp page" Watch "problem with displaying the image from local disk  in jsp page" New topic
Author

problem with displaying the image from local disk in jsp page

venkateshwar rao ravula
Greenhorn

Joined: Apr 03, 2006
Posts: 15
Hi All,

how to display the image from local disk in jsp page.

I am using <html:file> to select the file from local disk before submitting the form i have to show the preview of image exacly below the <html:file> tag in jsp page.

please help this is urgent requirement.



Thanks & regards,

Venkateshwar Rao Ravula
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'd recommend you write an applet to do this. The only way to do it without an applet would be to actually upload the file, create a thumbnail image of it on the server, and then send the thumbnail back to the browser, which hardly sounds like an efficient way of doing things. An applet, on the other hand, runs on the local machine and can find the file and display a thumbnail of it without any round trips to the server.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with displaying the image from local disk in jsp page