• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

display a jpg

Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problems displaying jpg pictures.
The following works for gif files, but not jpg files.
String Temp="<img src=images/PhotoAlbum/" + photoDescription + " align=center>";
*Note photoDesciption is the file name for example dean.jpg or dean.gif. The gif displays, but not the jpg.
Any ideas?
sharp shooter, and author
Posts: 1913
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should have no problem displaying JPGs in a web browser (I assume that this is what you are using).
Check that the files are actually standard encoded JPGs, and not the newer JPEG 2000 for example or some other format with a ".jpg" extension. Also, check that the JPGs can be found okay.
Hope that helps
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic