[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2011-09-20 Thread Al Sutton
I think there is another way to approach this which cuts out the need for the libraries, but you'll need to get the AOSP source. Once you've checked out the source from frameworks_base you can re-use an implementation available internally in Android from;

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-11-22 Thread Tom
@Joe LaPenna I am trying to send multipart to google appengine as well and struggling. Do you have any specific instructions that might help? On Oct 12, 12:56 am, Joe LaPenna [EMAIL PROTECTED] wrote: By chance is the web server google app engine? Even if it isn't there is a chance your

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-10-11 Thread Joe LaPenna
By chance is the web server google app engine? Even if it isn't there is a chance your server does not support chunked transfer encoding. If for example any part of your multipart message is an inputstream part then the library will set the post using chunked encoding. I got around this in

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-09-03 Thread Rajesh
Hi James, I downloaded the apache common jars and added them to my build path, but still I get org.apache.http.entity.mime cant be resolved. Don't know if I'm doing something wrong. I just followed the steps you had explained. Kindly let me know if there is anything extra I should do with

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-27 Thread jlapenna
Yeah, you're going to need to add it to your build path. You can do that by right clicking on your project in the Package Explorer, selecting Build Path - Configure Build Path, clicking on Libraries then clicking Add JARs. If nothing is listed you need to add the libraries to your project, you

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-26 Thread barbapapaz
How does you resolve this error? Thanks On 22 août, 07:16, shotwave [EMAIL PROTECTED] wrote: I also have problems with multipart entities, so I have followed the recomendations given here and added mime4j and httpmime as the libraries to my eclipse project, however once I have started the

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-26 Thread Zack
Thanks for your many helpful posts! I'm sure this one will be helpful to me but what do I need to do to be able to import org.apache.http.entity.mime.MultipartEntity;? I get The import org.apache.http.entity.mime cannot be resolved Do I need to configure eclipse and add something to it? Thanks

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-24 Thread code_android_festival_way
I got another question regarding that topic. I'm letting my user pic a photo from the Image ContentProvider. After that I'm getting back an Uri which represents the image in the ContentProvider. Now I'm wondering which is the easiest way to get that picture which is represented by an Uri into a

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-24 Thread code_android_festival_way
Well I've managed it to add representation of the Uri to a multipart message. And here is the way I did it: http://paste.pocoo.org/show/83196/ It is working quite fine. Regards! On 24 Aug., 15:46, code_android_festival_way [EMAIL PROTECTED] wrote: I got another question regarding that topic.

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-22 Thread code_android_festival_way
Hello! I have done it the following way: http://paste.pocoo.org/show/GwHe8LrG9DCnq4zuphmK/ (note that this is just a sample code the HttpClient needs some setup) Using it this way multipart messages work quite fine. Regards! On 22 Aug., 07:16, shotwave [EMAIL PROTECTED] wrote: I also have

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-22 Thread barbapapaz
Hello I has the same problem and your post resolt it! thanks On 22 août, 09:01, code_android_festival_way [EMAIL PROTECTED] wrote: Hello! I have done it the following way: http://paste.pocoo.org/show/GwHe8LrG9DCnq4zuphmK/ (note that this is just a sample code the HttpClient needs some

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-22 Thread shotwave
thank you, guys On Aug 22, 3:01 am, code_android_festival_way [EMAIL PROTECTED] wrote: Hello! I have done it the following way: http://paste.pocoo.org/show/GwHe8LrG9DCnq4zuphmK/ (note that this is just a sample code the HttpClient needs some setup) Using it this way multipart messages

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-22 Thread shotwave
unfortunately now I get new error 08-22 22:19:15.494: WARN/System.err(193): java.net.SocketException: unknown error 08-22 22:19:15.534: WARN/System.err(193): at org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl(Native Method) 08-22 22:19:15.544: WARN/System.err(193): at

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-22 Thread shotwave
the problem was with missing uses-permission android:name=android.permission.INTERNET / permission in AndroidManfest.xml. As soon as I have set it and __removed .android folder__ everything started working! On Aug 22, 10:16 pm, shotwave [EMAIL PROTECTED] wrote: thank you, guys On Aug 22, 3:01 

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-21 Thread shotwave
I also have problems with multipart entities, so I have followed the recomendations given here and added mime4j and httpmime as the libraries to my eclipse project, however once I have started the app and tried to upload some data I have got an exception 08-22 01:11:12.672: WARN/dalvikvm(229):

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-19 Thread code_android_festival_way
Thank you Justin for helping me out. It is working pretty fine now. :-) Cheers from Germany! On 19 Aug., 02:11, Justin (Google Employee) [EMAIL PROTECTED] wrote: Looks like you also need the Apache Commons IO library which you can get fromhttp://commons.apache.org/io/. Cheers, Justin

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-19 Thread Justin (Google Employee)
Just to finish this thread off nicely, here's some code to use multipart posts. Again, you need mime4j, httpmime, and Apache Commons IO. import java.io.ByteArrayInputStream; import java.io.InputStream; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost;

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-18 Thread Justin (Google Employee)
Note that this has been removed because it was removed from the Apache HttpClient library that we're bundling. What you want to do is get Mime4j ( http://james.apache.org/mime4j/index.html ) and HttpMime ( http://hc.apache.org/httpcomponents-client/httpmime/index.html ) and include these

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-18 Thread Shane Isbell
On Mon, Aug 18, 2008 at 1:06 PM, code_android_festival_way [EMAIL PROTECTED] wrote: Hello guys. I've seen that the multipart method has been removed in 0.9. That's surprising. It's common knowledge that multi part mime is necessary in mobile, due to the performance gains and user experience

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-18 Thread Dan Morrill
To shed a bit more light, the reason the multi-part APIs were removed is because those APIs will not be final in the upstream Apache HTTPClient in time for Android's schedule for a final 1.0 version. Rather than ship an early/incompatible API, we chose to remove it, and rely on other libraries as

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-18 Thread code_android_festival_way
Thank you for your answer Dan. I'm looking now how to get the whole thing working. (since I'm not the best Java developer :) ) I will come back with the results later on. On 18 Aug., 22:26, Dan Morrill [EMAIL PROTECTED] wrote: To shed a bit more light, the reason the multi-part APIs were

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-18 Thread code_android_festival_way
So I'm back with a question. I've imported the libraries mentioned above and got the following setup: http://paste.pocoo.org/show/82631/ Now I get an error while executing the POST method with the HttpClient. Am I doing sth. wrong or what do I have to change to get it working. (the paste above

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-18 Thread Justin (Google Employee)
Looks like you also need the Apache Commons IO library which you can get from http://commons.apache.org/io/ . Cheers, Justin Android Team @ Google On Aug 18, 3:19 pm, code_android_festival_way [EMAIL PROTECTED] wrote: So I'm back with a question. I've imported the libraries mentioned above