Hi Nokia Community!

I am trying to display a JPEG or PNG image on a Nokia 6610. I can successfully do so on a WAP emulaotor, but the image fails to load on the handphone itself. The following is the servlet code that I have written:

-----------------------------------------------------------------------------------
public class Image extends HttpServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
// Set the content type of the response
resp.setContentType("text/vnd.wap.wml");
// Create a PrintWriter to write the response
PrintWriter out = new PrintWriter(resp.getOutputStream());

// Print a standard header
out.println("<?xml version=\"1.0\"?>");
out.println("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"");
out.println(" \"http://www.wapforum.org/DTD/wml_1.1.xml\">");
out.println("<wml>");
out.println(" <card id=\"image\" title=\"Image\">");
out.println(" <p align=\"center\">");
out.println(" This is the image!");
out.println(" <img src=\"images\\WAP3.jpg\" alt=\"Image should be displayed here\"/>");
out.println(" </p>");
out.println(" </card>");

// Wrap up
out.println("</wml>");
out.flush();
}
}
-----------------------------------------------------------------------------------

when I invoke the servlet via GPRS, only the words "This is the Image! Image should be displayed here" can be seen.

I suspect the line <img src> could be the problem. I tried typing out the full path but it doesnt work either.

I have also reduced the image resolution to 100X100 but that doesnt wiork either. By the way, what is the maximum resolution of an image that I can display on a typical Nokia HP?


Please Help!!!
Zen