Results 1 to 2 of 2
  1. #1
    oregon is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default problems when loading an image in servlet

    I have a problem to load an image in my servlet.
    Image is locate in web path I tried to create URL object, but it doesn't work.
    Can you help me? thanks

  2. #2
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Rep Power


    you should check out the getResourceAsStream() method of ServletContext

Similar Threads

  1. Dynamic image loading in jsp
    By ramakrishna k m in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 10-10-2011, 07:08 AM
  2. Loading Image from local directory
    By nancyhung in forum Advanced Java
    Replies: 0
    Last Post: 01-29-2008, 04:46 PM
  3. sending image file from JSP to Servlet
    By ravian in forum Advanced Java
    Replies: 2
    Last Post: 01-10-2008, 03:34 PM
  4. Loading An Image Help Please!
    By shaungoater in forum Java 2D
    Replies: 2
    Last Post: 01-09-2008, 09:14 AM
  5. Problems while loading a JPanel to JApplet...
    By Ananth Chellathurai in forum Java Applets
    Replies: 0
    Last Post: 11-24-2007, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts