You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my app I'm trying to upload a chunk of data. The app generates a byte array of the data to be uploaded and passes it to the Retrofit request. I've noticed that when I do so the data seems to be copied in memory resulting in twice the memory consumption. A 30 MB data blob turns into 60 mb in memory once it's passed to the POST request with retrofit.
I then tried to migrate to a @Multipart request but that didnt seem to make any difference.
Could someone enlighten me on the best way to do this? Do multipart requests make any sense in this scenario?
The text was updated successfully, but these errors were encountered:
From my app I'm trying to upload a chunk of data. The app generates a byte array of the data to be uploaded and passes it to the Retrofit request. I've noticed that when I do so the data seems to be copied in memory resulting in twice the memory consumption. A 30 MB data blob turns into 60 mb in memory once it's passed to the POST request with retrofit.
I then tried to migrate to a
@Multipart
request but that didnt seem to make any difference.Could someone enlighten me on the best way to do this? Do multipart requests make any sense in this scenario?
The text was updated successfully, but these errors were encountered: