Shah Amit
Mon, 18 Apr 2005 11:41:32 -0700
There is a good discussion on this ---
http://mail-archives.apache.org/mod_mbox/portals-pluto-user/200406.mbox/[EMAIL PROTECTED]
Hope it helps someone ;)
Thanks, Amit
----Original Message Follows---- From: "Shah Amit" <[EMAIL PROTECTED]> Reply-To: "Jetspeed Users List" <jetspeed-user@jakarta.apache.org> To: jetspeed-user@jakarta.apache.org Subject: J2 - Zip File Download Date: Mon, 18 Apr 2005 13:28:55 -0400
Hi all,
FileInputStream fis = new FileInputStream(uFile);
PrintWriter pw = response.getWriter();
int c = -1;
// Loop to read and write bytes.
while ((c = fis.read()) != -1) {
pw.print((char) c);
}
// Close output and input resources.
fis.close();
pw.flush();
Here is the servlet mapping from web.xml --
<servlet-mapping> <servlet-name>UploadServlet</servlet-name> <url-pattern>/servlet/uploadServlet</url-pattern> </servlet-mapping>
Please please I really need help with this :-(
Thanks, Amit
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]