Intermittent java.lang.OutOfMemoryError When Uploading Large Videos in FlutterFlow

Database & APIs

Hello everyone,

I'm encountering an issue in my FlutterFlow application, where users experience a java.lang.OutOfMemoryError intermittently when trying to upload large video files. Specifically, the problem arises with videos that are around 250MB in size. Strangely, uploading the same video might succeed on one occasion but fail on another, which suggests that the issue does not consistently replicate under the same conditions.

Here’s a brief rundown of the scenario:

  • Error Received: java.lang.OutOfMemoryError

  • File Size: Approximately 250MB

  • Frequency: Intermittent (the same file sometimes uploads successfully)

I am looking for advice or solutions on how to handle such large files more reliably. Additionally, I am interested in implementing video compression within FlutterFlow, similar to the built-in image compression options. Does anyone have insights on how to integrate video compression in FlutterFlow, or are there any recommended third-party tools or plugins that can be used for this purpose?

Any suggestions on how to debug and resolve the memory error or how to compress videos before uploading would be greatly appreciated. It would be ideal if there's a straightforward method or a built-in feature within FlutterFlow that can handle this.

Thank you in advance for your help and suggestions!

What have you tried so far?

I've been searching for video compression options within FlutterFlow to reduce the file size before uploading. However, I have not been able to find any built-in functions or features in FlutterFlow for video compression, unlike the available options for image compression.

Did you check FlutterFlow's Documentation for this topic?
No
2
2 replies