Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

commons.httpclient.methods.multipart.MultipartRequestEntity work´s but i need i good idea ?

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a client and a servlet that uses multipart, it works fine

The servlet returns a large 1 -- 3 mb binary stream in the responsebody ....

Now the curstomer wants to get some more information, back together with the stream.

I could can correct my servlet, so that the first 200 bytes i return is xml, with this information, and the rest is the stream ....

But then the client schould take the first 200 bytes and make some xml parsing on that, and after this, thake the rest and stream the content into a file ......

Hmmm is the only possibiliy, or is there someone out there that can give me an idea, how i can resolve this issue on a better way ?

Frank


 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the anser myself, i will put it as header information off course ......................
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic