Johnson Samuel Member Licensed User Longtime User Jun 14, 2019 #1 I am sending an image to php server. Image is uploaded to the directory correctly , but i am getting this error in b4A program in release mode. I am uploading the image using Multipartpost.CreatePostRequest java.lang.Exception: Sub 1_responsesuccess was not found. at anywheresoftware.b4a.BA.raiseEvent2(BA.java:192) at anywheresoftware.b4a.BA$2.run(BA.java:360) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5268) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697) This happens only in release mode. but in Debug mode there is no error. Can anyone help in this . Is there any way by which i can upload an image to php server file dir.
I am sending an image to php server. Image is uploaded to the directory correctly , but i am getting this error in b4A program in release mode. I am uploading the image using Multipartpost.CreatePostRequest java.lang.Exception: Sub 1_responsesuccess was not found. at anywheresoftware.b4a.BA.raiseEvent2(BA.java:192) at anywheresoftware.b4a.BA$2.run(BA.java:360) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5268) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697) This happens only in release mode. but in Debug mode there is no error. Can anyone help in this . Is there any way by which i can upload an image to php server file dir.
DonManfred Expert Licensed User Longtime User Jun 14, 2019 #2 Use the library and not a changed module. The error comes from a change you did i guess.... Switch to okhttputils2 and use the library itself. It has Postmultipart included already. Upvote 0
Use the library and not a changed module. The error comes from a change you did i guess.... Switch to okhttputils2 and use the library itself. It has Postmultipart included already.
Johnson Samuel Member Licensed User Longtime User Jun 18, 2019 #3 Thanks Don. I used Postmultipart, and it works like a charm. Upvote 0