• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with displaying the image from local disk in jsp page

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic