saving a .jpg http parameter
Posted on 1998-08-07
i am trying to save the contents of a .jpg file passed to a java servlet as a multipart/form-data http parameter.
the parameter comes in as a ServletInputStream, an extension of InputStream, using the getLine command to
copy the contents of the stream into a byte array. I am then sending the byte array to a FileOutputStream. is
there any reason why this wouldn't work? (because it doesn't).