
display image using jsp and phonegap on emulator of eclipse

Here is a simple jsp code that displays an image on browser.
<%@ page import="java.io.*" %>
<%@page contentType="image/gif" %><%
OutputStream o = response.getOutputStream();
InputStream is = new FileInputStream(new File("C:/images/image.gif"));
byte[] buf = new byte[32 * 1024];
int nRead = 0;
while( (nRead=is.read(buf)) != -1 ) {
o.write(buf, 0, nRead);
}
o.flush();
o.close();
return;
%>