• Post Reply Bookmark Topic Watch Topic
  • New Topic

MultipartEntity content length not same as file size

 
Tavis Hord
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I'm having an issue with my java uploader. I am creating a MultipartEntity but something is padding the file size with an additional 234 bytes so the upload is failing.

in the following code, contentLength is 1241572 bytes but my actual file size is 1241338 bytes.
Can someone tell me what is adding these additional bytes or how to bebug this?
The upload fails because the server responds with "Body size does not match filesize."



Thanks for any help.

(I noticed when I change the mime type to something other than "multipart/mixed" the content size changes.. I just want raw data!)

-Tavis
 
Tavis Hord
Greenhorn
Posts: 3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Incase anyone has an issue similar to mine, I resolved the problem by using FileEntity instead.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!