Of course, note that Android has its own version of Base64OutputSteam
at android.util.  If you have Java source that was compiled against
the one of the other versions it will need to be recompiled for
Android.

On Aug 27, 3:47 am, "pramod.deore" <deore.pramo...@gmail.com> wrote:
> I had write one application in that I am reading a image and sending
> it to the server , I am using Base64OutputStream class . I had tried
> it in core java and image is encoded successfully, But when I am using
> same logic in android then I am getting error as
> java.lang.VerifyError .
>
> And Logcat gives following error as
>
> 08-27 14:11:35.285: ERROR/AndroidRuntime(371): Uncaught handler:
> thread main exiting due to uncaught exception
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371): java.lang.VerifyError:
> org.apache.commons.codec.binary.Base64OutputStream
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> com.micro.encodeImage.EncodeImage.encodeImage(EncodeImage.java:46)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> com.micro.encodeImage.EncodeImage.onCreate(EncodeImage.java:35)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1123)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2364)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2417)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread.access$2100(ActivityThread.java:116)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.os.Looper.loop(Looper.java:123)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread.main(ActivityThread.java:4203)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:791)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> dalvik.system.NativeStart.main(Native Method)
>
> how to solve this issue?

-- 
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

Reply via email to