- From: Anselm Baird_Smith <abaird@www43.inria.fr>
- Date: Mon, 6 Jan 1997 12:28:45 +0100 (MET)
- 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 UTC