File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
EJB and other Java EE Technologies
Displaying image which is located on local disk but not on server
Joined: Oct 29, 2010
Mar 14, 2011 22:57:32
I am using
framework. I want to display an image which at a specific location on local drive but
not on server.
Please help me out how to do it.
I tried giving full path of image location in
but not working.
Author and ninkuma
Joined: Jan 10, 2002
Mar 14, 2011 23:05:37
Because the browser will use the source of the image element to fetch the image file, it must be able to be served by URL.
If the file itself can't be served for whatever reason, you can write a
that reads the file and serves it.
See the Servlet forum as this has been discussed many times.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Displaying image which is located on local disk but not on server
image height&width needed
Storing InputStream object to Application scope in servlet and retrieving
How do I insert an image into a database from a servlet?
How do I insert a BLOB from a servlet
Splash Screen doesnot pops up while launching the jnlp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014