Android Question Error in Multipartpost.CreatePostRequest

Discussion in 'Android Questions' started by Johnson Samuel, Jun 14, 2019.

  1. Johnson Samuel

    Johnson Samuel Member Licensed User

    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(
    at anywheresoftware.b4a.BA$
    at android.os.Handler.handleCallback(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(

    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.
  2. DonManfred

    DonManfred Expert Licensed User

    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.
    Erel likes this.
  3. Johnson Samuel

    Johnson Samuel Member Licensed User

    Thanks Don. I used Postmultipart, and it works like a charm.
    DonManfred likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice