We are having a problem with React Native Fetch Blob when a PDF is over 1mb in size. The file is being uploaded to Azure Blob Storage and works fine when the PDF is less than 1MB but as soon as the file is over 1MB the upload fails and the file in the container is empty.
We are using the module in an IOS React App but we also have a web app. When we upload the PDF via the web app everything is fine so it seems that this is something specific to the mobile app.
Further testing shows that if we upload a PNG over 1MB it works, so this issue seems to be specific to PDFs.
Any suggestions on how we can diagnose or solve this issue?
Related
We have an app (React Native Expo SDK 44) that needs to pick large video (1gb +) from the devices files.
Every library we've tried fails because the device runs out of memory
We tried uploading the 1gb video file to apps like YT & Reddit with no issues. How do these sites achieve picking the video without running out of memory?
I have been trying to upload large files to Firebase Storage using expo, so far nothing is working. I am using fetch to create blob to upload files but this is not working for large files over 800 MB size. I also couldn't find any stream upload method for expo. Is there any optimised way I could upload large files to Firebase Storage?
I am creating a type of flashcard application using react-native. The flashcard decks can contain up to 5000 mp3 files. I want the user to be able to download an entire deck when they first use it.
Currently, I am downloading each file individually using Google cloud public storage but this is brutally slow and some downloads timeout. Is there a place where I can download an entire folder of mp3 files instead of downloading each of them individually? I have seen that you can do it using AWS S3 but I have no idea how to do this from the client in react native. Thanks.
I'm working on an application in React Native that requires to display images from the network. These images are stored on an S3 bucket that I own.
When I try to display the images on my simulator everything goes perfectly. However when I test my code on TestFlight (same behavior on android) no image is displayed.
Here are the tracks I have already explored :
The images I store have no extension. Is this a problem?
My guess would be that the problem is due to an error in the HTTPS certificate? I've also tested it on Amazon Cloud Front and got the same result.
Do you have any idea what could cause this error and an idea for the solution.
Thank you for your time,
I want to know about process for managing images for an iOS app dealing with large images. I have done all the steps separately and everything works properly if performed individually. The flow is as given below:
Capture image on iPhone (Full sized images of 2-5 MB)
Store the image locally on iPhone (where should it be stored in NSUserDefaults or temp folder or coredata?)
Show image locally
Upload the image to server when internet connection is available
Download the image from server (I use SDWebImage) to show on all devices
I can do all the steps independently properly but when these are combined they cause problems in app.
The app requires to capture image and show them to table view from local storage until its uploaded on server.
Do I need to upload it to server and download it again before even showing to local table view? If not how should it be managed within app The best case should be that it gets saved in local storage and just uploaded & not downloaded again until its available locally.