Send image as json entry android

后端 未结 4 980
别那么骄傲
别那么骄傲 2021-02-11 09:17

I have a requirement where, i am sending a json file to the server and the parsing happens at the server side. I have created the entries to the json file, now i want to store a

4条回答
  •  时光取名叫无心
    2021-02-11 09:50

    Well, it's kind of experimental, but you can create an array of bytes out of the bitmap, and then create a new string with that array of bytes, and then send it to the server.

    However, why don't you just send a POST request to save the image directly, without any experimental processing or parsing?

提交回复
热议问题