Send image as json entry android

后端 未结 4 2211
伪装坚强ぢ
伪装坚强ぢ 2021-02-11 08:59

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:37

    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?

提交回复
热议问题