Closed closca closed 5 years ago
Hi @closca, Check out this demo for uploading images. Tested it in Xcode and Simulator, profiled the memory and did not see any excessive memory usage. Note, that it uses calls to native iOS libs for storing the file to the knownFolders.
Let us know if this works for you.
Closing the issue due to inactivity
Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital letter.
Which platform(s) does your issue occur on?
IOS
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
I am using nativescript-imagepicker and the saving file into knownFolders is crashing the app on reald device for lack of memory, and on mac is hammering the CPU and uses 1.5GB of RAM
Is there any code involved?
I suspect that the most expensive part is when is saving the file in the knowFolders. I tried to upload the image directly from gallery without saving in knownFolders but is sending an empty file or something because I can see on server side this mime: node/x-empty
Here is my code for direct upload: