46
Views
1
Comments
Is there a way to read file in chunks from the device/mobile storage?

I want to upload an extremely large file, around 3GB in size, to a file server using a mobile application. However, I understand that the Upload widget has an upload limit of 250MB. Therefore, I would like to use a streaming approach to read the file in chunks from the device/mobile storage and then upload it in smaller pieces to the file server. This is because uploading the entire file to the browser/locally is not possible due to its size.

Is there a service available, perhaps something similar to the React Native File System library for React Native, that can help in reading the file from the mobile storage itself? This would be based on the file selected by the end user, and would read the file in chunks until the entire file has been uploaded.

Let me know if further clarity is required for the same. Thanks in advance

UserImage.jpg
Alexandre Yip

Hi Amol, 

You could try to use this Api, or other Api which allows you to upload by chunks

https://developers.transfernow.net/#create-a-new-transfer

HTTP Request

PUT {uploadURL}


To split by chunks you can use the following forge component 

https://www.outsystems.com/forge/component-overview/10644/binary-split

Hope that it helps you, 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.