permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes problem with displaying image..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problem with displaying image....." Watch "problem with displaying image....." New topic
Author

problem with displaying image.....

Gabriel Fox
Ranch Hand

Joined: Oct 17, 2001
Posts: 170
Hello guys, i have downloaded a xyz.jpg image from my digital camera unto my desktop computer.
But, the image has an extremely large size , 161kb
and again it does not show on my webpage (an html page), i am using the right url <img src="/images.xyz.jpg">.
Please, what do U think the problem is.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Try using an absolute path to get the image to see if it is a problem with the path or the file. Also try using a filename with only one dot.
Also, netmechanic has a good, free Converter that you can use to make your gif smaller.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Gabriel Fox
Ranch Hand

Joined: Oct 17, 2001
Posts: 170
Sorry, that was a typo
url <img src="/images/xyz.jpg">.
The image was referenced correctly. i have other images in the same webpage being displayed with a similar path.
Help!!!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
ways to check
Make sure that the pic exsists in the image folder
Make sure the name is spelled right
make sure the image is in jpg format

change name to pic that has no problems and see if it shows up
add height and width attributes
See if any of that helps
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with displaying image.....
 
Similar Threads
How to display image giving dynamic path in HTML
Popup window for ajax
Storing large image files
Trying to display thumbnail or WSQ image
Printing a BufferedImage