Hi,

  I am interested in helping with part of the file upload task.

  Currently I see two sets of functionality:

1) proper MIME encoded file uploads as specified in the todo list
        http://jakarta.apache.org/cactus/todo.html

WebRequest.uploadFile(String nameOfFile, InputStream data, String
dataEncoding)

upload("myTextFile", textData, "text/plain")
upload("myGif", giffData, "image/gif")

example from:  http://www.w3.org/TR/REC-html40/interact/forms.html 
(at the bottom)



2) send a generic binary stream to the server

WebRequest.uploadFile(InputStream)

uploadFile( genericData )


  I am interested in 2.  A quick fix is:

modify WebRequest, adding uploadFile method and instance variable

modify HttpClientHelper.addParametersUsingPost
if uploadGenericData is set
   open binary connection
   send data
   close
   return
else
  continue with normal parameter processing



  Is this reasonable?

  How will the changes interact with the current development
direction?
    

Thanks

Alvin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to