Questions tagged [multipartentity]

MultipartEntity is successor of HttpEntity, contained in HttpMime API since version 4.0. It's use is primary to simplify process of posting multipart content over HTTP. It allows to add multiple parts of different content-type and encoding.

MultipartEntity, part of HttpMime 4.0 and later. Allows you to put multiple parts, separated by boundary strings and encoded using given charset, into request.

It can have different modes, based on HttpMultipartMode constants. RFC Strict mode ( RFC 822, RFC 2045, RFC 2046 compliant ) and Browser compatible mode.

Each part of request is set via addPart(String name, ContentBody body) or addPart(FormBodyPart body) method.

Note that request, can have only one entity set, so all data must be fit in MultipartEntity object.

232 questions
0
votes
1 answer

How to create a org.apache.http.entity.mime.content.FileBody when using Google App Engine

So I'm trying to make a multipart-form POST and I want to attach a org.apache.http.entity.mime.content.FileBody to the MultipartEntity that I'm going to be posting. Now I've got the raw string file data that I want to populate the FileBody with…
Dangerbunny
  • 81
  • 1
  • 3
  • 10
0
votes
1 answer

Android Apache MultipartEntity: cannot add extra field like Content type

I am trying to add extra field to Multipart HTTP POST with addField method, but when I catch the packet with WireShark, I cannot see the effect of it. What could be the problem? private void upload3(File file) { DefaultHttpClient httpclient…
czadam
  • 1,827
  • 1
  • 18
  • 31
0
votes
0 answers

get and send data to server is slow on wifi, fast on mobile internet.

I have an async task which fetches a file from my server. it takes long before it starts but when it starts it is fast. on mobile its is done in about 5 seconds while on wifi i can wait for 40seconds+. this is the asynctask: public class…
0
votes
1 answer

Android - How to fill data in an HTML form on an external website and hit the upload button?

I have an Android device. I want to fill a form in my app, with edittexts etc (one of these fields would take the path of an image on the SDCard). I want these form contents to be the data for an HTML form in an external website where this file…
0
votes
0 answers

file.exists inconsistency in Android app

I am developing an Android app for API 2.3 and above. I am using the Android camera to take a picture and place the image in a specified file. This works, and once returned I use the file.exists command to check it does and then display it in an…
Andrew S
  • 2,847
  • 3
  • 33
  • 50
0
votes
1 answer

MultiPartEntity in Indy [Delphi]

I am trying to add attachement to one service. This taken from documentation: I wonder if an entity can be added in indy as if it could be done in for example Java: postRequest.setHeader("X-Atlassian-Token","nocheck"); MultipartEntity entity = new…
Boris Mocialov
  • 3,439
  • 2
  • 28
  • 55
0
votes
1 answer

Can I make image upload faster using base64 encoding in android?

I need to upload an image from my android application to php server.I am using multipart entity to send image.If I upload the image by encoding using base 64 will it improve the performance.Any idea please help?
SREEJITH
  • 816
  • 1
  • 8
  • 19
0
votes
1 answer

How do I solve the following exception when uploading an image to server path?

I am working on Android and I am facing problem when uploading image to the server from my phone. I am using multipartentity using post method. I am using the following library httpmime-4.3-beta1.jar. I am getting the following exception 04-24…
Ganesh
  • 924
  • 2
  • 12
  • 34
0
votes
2 answers

Cannot set header to multipart/form-data for HttpPost

I'm trying to post some compressed data plus text to a perl program on a web server but cannot change the header from octet-stream to multipart/form-data. My code is:- HttpClient httpclient = new DefaultHttpClient(); String url =…
Doug Conran
  • 437
  • 1
  • 5
  • 17
0
votes
2 answers

php for receiving image and text from MultipartEntity

I'm trying to upload an image and some text via MultipartEntity. I can upload and receive the image, but when I try to add a Stringbody I cannot seem to receive it. Here's my android code imports ETC... public void…
Androisten
  • 3
  • 1
  • 2
0
votes
2 answers

Anybody compiled mimetic for iOS

I want to create a mime / multipart parser for IMAP messages. I got few links which says mimetic can do this, but I am unable to compile it for iOS. Any help would be greatly appreciated.
Pankaj
  • 76
  • 4
0
votes
1 answer

httpmultipart request for this webservice getdata code in c# with android

HI i have a webservice IIS with this code: // Implements multipart/form-data POST in C# http://www.ietf.org/rfc/rfc2388.txt // http://www.briangrinstead.com/blog/multipart-form-post-in-c public static class FormUpload { private static…
rbrlnx
  • 286
  • 7
  • 23
0
votes
1 answer

Upload file error when file size is large

here is my code private Boolean doFileUpload() { HttpEntity resEntity; String urlString = "http://192.168.1.112/johnson/learn/android/index2.php"; try { HttpClient client = new DefaultHttpClient(); …
Sieryuu
  • 1,510
  • 2
  • 16
  • 41
0
votes
1 answer

Multipartentity equivalent for iOS

It seems that there are no objective-c libraries that you can import that are equivalent to the apache libraries android for android. So what is the best way to send a video file to server from an iOS app if I'd like to use the same php POST…
Jaronimo
  • 3
  • 1
  • 6
0
votes
1 answer

Rails 3 splitting a response

In this section: http://en.wikipedia.org/wiki/Comet_%28programming%29#XMLHttpRequest it mentions the idea of a multipart reply from the server to the browser. This is a very interesting concept by itself (separate from Comet). I have pages that are…
pedz
  • 2,271
  • 1
  • 17
  • 20
1 2 3
15
16