Skip to content Skip to sidebar Skip to footer

Retrofit With Rx Runs Outofmemory While Trying To Send A Large Base64

I want to send a model throw Retrofit, which contains some standard fields and files, encoded in BASE64 format. I know, that this is a crazy way to send files, but I have a server

Solution 1:

Maybe, you should use Flowable with proper backpressure strategy instead of Single. But if you think it's for your adapter you can use Jackson because it's faster than Gson(According to this article). And if you want more performance maybe you should use Protobuf instead of JSON.


Post a Comment for "Retrofit With Rx Runs Outofmemory While Trying To Send A Large Base64"