• 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

displaying image

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi


in my web page i need to allow the clients to upload their photos from their machine.


While uploading

i need to disply their image in img tag like
<img src="/root/civil-images/20.jpg">

but its not displaying in image box

please any one help me to solve this problem
 
Sheriff
Posts: 67748
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the URL for the image correct?

What happens if you put that URL into the browser's address bar?
 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if i copy the url to browsers address bar, it displays the photo


one more thing

am using Jdeveloper editor in os platform


after running my page

i right click the img box it shows the image location is http://127.0.0.1:9009/root/civil-images/20.jpg


what is the meaning of this?
 
Bear Bibeault
Sheriff
Posts: 67748
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by kavitha vasu:
i right click the img box it shows the image location is http://127.0.0.1:9009/root/civil-images/20.jpg


That is the URL that the browser thinks that the image is located at. Is it not correct? Does it work if you paste it into the address bar?
reply
    Bookmark Topic Watch Topic
  • New Topic