Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multipart Image Upload along with JSON data #226

Closed
ani27 opened this issue Feb 1, 2018 · 3 comments
Closed

Multipart Image Upload along with JSON data #226

ani27 opened this issue Feb 1, 2018 · 3 comments

Comments

@ani27
Copy link

ani27 commented Feb 1, 2018

I am trying to upload image file along with JSON Object

Here is my code snippet

screen shot 2018-02-01 at 11 34 06 pm

and my error log

screen shot 2018-02-01 at 11 33 32 pm

@amitshekhariitbhu
Copy link
Owner

amitshekhariitbhu commented Feb 2, 2018

Pass a class object instead of JsonObject by setting the each value in an object.

@mohdFarhan123
Copy link

Passing class object after setting values to its fields using setters, above method still gives error

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 53 path $.

@fukemy
Copy link

fukemy commented Sep 8, 2020

why did u close this problem without explain, i facing same problem here event i passed custom class as our guide

here is example of jsonconvert :

{"FileGuid":"cc7843f2-9713-435b-bf25-a83003057269","FileName":"774a8938-5b74-4cbf-a783-ddfacaaf7a62_1599550633233.jpg","FileSize":34345519,"FileType":"video\/mp4","Index":0,"TotalCount":33}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants