Hi, I raised this ticket a long while ago: http://code.google.com/p/android/issues/detail?id=2357
I am still running into this problem. In fact, since I upgraded to the latest http-mime and mim4j JARs, it has become worse. I always get this exception when trying to upload a file received using ContentResolver.openInputStream(): IOException: at java.io.FileInputStream.openCheck(FileInputStream.java:389) My code: photoData = context.getContentResolver().openInputStream( photoUri); MultipartEntity payload = new MultipartEntity (HttpMultipartMode.STRICT); payload.addPart("uploaded_data", new PhotoStreamBody (photoData, photoSize)); HttpPost request = new HttpPost(url); request.setEntity(payload); request.setHeader(HTTP_CONTENT_TYPE_HEADER, payload.getContentType().getValue()); response = httpClient.execute(request); PhotoStreamBody inherits from InputStreamBody. The only thing it does is overwriting the getContentLength() method, because Android has another bug which reports wrong content sizes... Does anyone know what is causing this? Thanks, Matthias --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---