Not able to recreate cURL POST request using okHTTP multipart-form data in my Android Code
Kent Dec 15, 2017
My app requires adding items and related images as part of what the app does rather than collections being managed from a server. You have provided Python, Ruby, etc. code to give people a head start for doing that, but there is no Java code so I've been trying to figure out how to do it in my app myself. I've found okHTTP to be pretty useful, but I've gotten stuck on how to POST and image for attaching to an item my app has just created. There is something I'm missing about how to assemble the multipart-form data correctly. Details are in my question on stackoverflow. I can post that info directly here if you like. I know it is something simple, I just can't find it. It is the last major hurdle I have for my MVP app design. Thanks for any help.