W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1997

Has anyone uploded using Jigsaw?

From: Anselm Baird_Smith <abaird@www43.inria.fr>
Date: Mon, 6 Jan 1997 12:28:45 +0100 (MET)
Message-Id: <199701061128.MAA12069@www43.inria.fr>
To: Anit Chakraborty <achakra@mit.edu>
Cc: www-jigsaw@www10.w3.org
Anit Chakraborty writes:
 > Im trying to use Jigsaw to let users upload files to my
 > server.  Ive played around with the 
 > w3c.jigsaw.forms.PostFileResource.post() method.
 > 
 > I haven't had any luck.  So far, what I have tried to do is
 > insert the following lines between lines 68 and 69 of w3c.jigsaw.PostFileResource
 > and then commented out lines 69, 70, 71.
 > 
 > 	File newfile = new File("c:temp.doc");
 > 	FileOutputStream outstream = new FileOutputStream(newfile);
 > 	System.out.println("reading to file stream");
 > 	while ((got = body.read(buffer)) > 0)
 > 	  outstream.write(buffer);
 > 	outstream.close();

Your code is incorrect, it should be :

 > 	  outstream.write(buffer, o, got);

Anselm.
btw Happy new year to all of you !
Received on Monday, 6 January 1997 06:29:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT