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
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
Display image in Jsp page
Joined: Dec 11, 2008
Dec 07, 2009 00:31:46
I want to show one image in jsp page. i have stored that image in my Local Disk "D Drive".
<html> <body> <imgsrc="d:/image.jpg"> ( This image tag does not show any image ) </body> </html>
will call all the stuff from the server side even an image)
Please help me how to show the local disk image file in jsp page
Joined: Mar 22, 2005
Dec 07, 2009 01:12:00
The image must be in a publicly accessible directory; a path like "D:\..." will not work. Also note that "imgsrc" is not a valid HTML tag name.
Ping & DNS
- my free Android networking tools app
Author and ninkuma
Joined: Jan 10, 2002
Dec 07, 2009 08:36:32
I see no JSP dimension to this question at all. Moved to the HTML forum.
Asking smart questions
Books by Bear
Joined: Nov 08, 2001
Dec 07, 2009 10:11:42
Browser security does not let you view any files that are located on the users computer. In the past this was not true, but in today's day in age with security it is.
It is sorta covered in the
JavaRanch Style Guide
subject: Display image in Jsp page
Writing Image Bytes on Response Stream
Putting an image on JSP
img tag in jsp
JSP page not displaying the image
problem with displaying the image from local disk in jsp page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014