Getting `Payload is not serializable: Out of memory` for large images when uploading

Please provide the following:

  1. SDK Version: 33
  2. Platforms(Android/iOS/web/all): Android

When using the ImagePicker to pick a large image (in our case, a 44mb image) and try to upload it to our server, we get the following error:

Error [Error: Network error: Network request failed. Payload is not serializable: Out of memory]

We use the base64 option and upload that to our GraphQL server with a mutation that takes the data URI as a parameter.

Doing the exact same thing with the same code on iOS works just fine. The devices used are Samsung S10+ (8gb ram) and iPhone 8.

Does anyone know what might go wrong? Is it a limitation with Expo on Android, or React Native on Android, or are we doing something wrong? Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.