VB Script for loading image is
Call MyGdViewer.DisplayFromURL("localhost", "/proc/a.jsp", 8080)
and Sample code for the JSP is listed below
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.io.File"%>
<%@page import="java.io.FileInputStream"%>
<%@page import="java.io.OutputStream"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
File _f = new File("C:\\apsimg\\AIRATC1.tif");
FileInputStream _is = new FileInputStream(_f);
OutputStream _out = null;
byte _buf[] ;
int _len;
_buf = new byte[1024];
response.setContentType("application/binary");
response.setHeader("Content-Disposition", "attachment; filename=a.tif");
_out = response.getOutputStream();
while ((_len = _is.read(_buf)) > 0) {
_out.write(_buf, 0, _len);
}
_is.close();
%>
</body>
</html>
