>From my app I upload a file to our server using this basic code

HttpParams params = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(params, 15000);
HttpConnectionParams.setSoTimeout(params, 5 * 60 * 1000);
HttpClient client = new DefaultHttpClient(params);
HttpPost  post = new HttpPost("upload url");
HttpEntity requestEntity = (new FileEntity(tmpFile, "multipart/form-
data;boundary="+boundary);
post.setEntity(requestEntity);
HttpResponse response = (HttpResponse) client.execute(post);

That works fine MOST of the time.

For some phones running Android 2.2+ the file received on the server
side is not complete, small portions of the file are simply missing,
and the parts that are missing are at different locations of the file
each time.

We have verified this by comparing the file from the app against what
is received on the server side.  On the server side we captured
packets with tcpdump to make sure it wasn't an issue with our web
server or web server code.

For these phones the problem only happens some of the time.  Sometimes
file uploads work and the entire file is received intact on our end.

This is happening ONLY for 2.2+ phones.  It happens for a wide variety
of phones, and a variety of carriers, and for hundreds of users.

I'm not sure at this point what to do.  It seems like a low-level
Android bug but that seems hard to believe that others aren't
experiencing this also.

Anyone have suggestions as to what else I should try to debug this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to