The video is saved on the devices, i choosed the file through Camera Plugin and i got uri. I tried to convert a URI to a URL of a video larger than 200MB, but I failed. I tried using the file plugin, but it did not work.The video is saved on the device. I chose the file through the Camera Plugin and obtained the URI. However, I encountered difficulties when trying to convert the URI to a URL for a video larger than 200 MB. I also attempted to use the file plugin, but it didn't work.
Hello @Tamilarasan Senthilkumar
I am no expert in URIs/URLs, but I think that if the file IS on the device (mobile), the way to access it from the application is through a URI, not through a URL.
What exactly are you trying to do with the file?Send the video to the server?With 200MB, sending the file to the server may be tricky (because of timeouts and so on).You may try to use this plugin instead:https://success.outsystems.com/documentation/11/integration_with_external_systems/mobile_plugins/file_transfer_plugin/
Cheers.
Hi @Tamilarasan Senthilkumar ,As far as I know, you cannot reliably convert a local device URI into a standard downloadable URL, especially for large files like 200 MB. If the video is stored on the device, access it using the URI/file path returned by the Camera Plugin, not as a public URL. The File Plugin can read the file using the URI, but for large videos, converting it to Binary/Base64 may fail due to memory and timeout limits. A better approach is to upload the file directly from the device to server/cloud storage using chunked upload or a pre-signed upload URL, instead of trying to convert the whole video into Binary Data first. Hopes this helpRegardsAbhijith
Hi @ABHIJITH G How to convert URI Into Pre-signed URL
You can't convert a Device URI into an Amazon presigned URL.
Instead of saving the video directly in S3, save the video URL using a pre-signed URL in S3. I can save videos up to 200 MB using this method; however, if I try to save a video larger than 200 MB, the operation fails.
For larger files, it is better to use S3 multipart upload or chunked upload instead of uploading the full video in a single request. So the solution should be to generate a pre-signed upload mechanism that supports multipart upload for large files, then save the final S3 object URL/path after the upload is completed. Could you please share how you are uploading the video to the pre-signed URL? For example, are you uploading it as a single PUT request, using multipart upload, or first converting the file to Binary/Base64 before uploading? It may help to understand the issue.