Hi DennisG: I can upload image file to server by source solution now. I will try new method.Thanks a lot.
DennisG於 2012年7月26日星期四UTC+8下午3時14分03秒寫道: > Sorry to all. Please forget about sources solution. Just put .JAR file > into /libs folder of the project and add link to this JAR file to the > Project | Properties | Jaba Build Path > > On Tuesday, April 10, 2012 3:49:38 PM UTC+3, DennisG wrote: >> >> Hi, >> >> I used to use org.apache.http.entity.mime.content.FileBody >> with org.apache.http.entity.mime.MultipartEntity sending files to server >> before. Suddenly I got a problem when upgrated to Android SDK ver 17th. >> Program is still compiled and started, but when it tries to >> instantiate org.apache.http.entity.mime.content.FileBody class it raises >> the following exception: >> >> 04-10 11:35:43.385: E/dalvikvm(457): Could not find class >> 'org.apache.http.entity.mime.content.FileBody', referenced from method >> com.leadertask.todo.android.service.LTSyncHandler$UploadSyncFileAsync.doInBackground >> 04-10 11:35:43.385: W/dalvikvm(457): VFY: unable to resolve new-instance >> 818 (Lorg/apache/http/entity/mime/content/FileBody;) in >> Lcom/leadertask/todo/android/service/LTSyncHandler$UploadSyncFileAsync; >> >> I tried different versions of httpmimeXXX.jar but problem persists. Funny >> thing is that org.apache.http.entity.mime.content.StringBody and other >> classes from this library work fine. I guess that there is some conflict. >> When compiled on older version of Android SDK (ver 16) - everythihg works >> smoothly. So now I keeping old version of SDK on my backup laptop to >> compile this project. >> >> Could enyone to explain me please how can I solve this annoying problem? >> >> Regards, Dennis. >> > -- 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

