question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple file downloading app get slows.

See original GitHub issue

Hi, I’m creating a gallery app. Its fully offline app. It has more number of images. (1000 and more images and files). I’have downloaded these images initially and store into locally and then show these images from local. when i downloaded the more number of images, the app hangs (slow in performance), can anyone reply to fix this issue? my code is,

const downloadImage = (url, id) => { if (url && id) { let date = new Date(); let image_URL = url; let ext = getExtention(image_URL); ext = '.' + ext[0]; const { config, fs } = RNFetchBlob; let PictureDir = fs.dirs.PictureDir; let options = { fileCache: true, addAndroidDownloads: { useDownloadManager: true, notification: true, path: PictureDir + '/' + id + '/image_' + Math.floor(date.getTime() + date.getSeconds() / 2) + ext, description: 'Image' }, } config(options) .fetch('GET', image_URL) .then(res => { storeData(res.path(), id) }); }; };

And i dont want to show these images in phone’s gallery. how to fix these issues, and how to download images one by one. Thanks in advance.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
sankar9659commented, Aug 3, 2022

Sure…

1reaction
ShankarPhilipscommented, Aug 3, 2022

Thank you…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is downloading multiple files faster than downloading one file ...
BUT, for most situations, you will get both files downloaded faster if you download them at the same time instead of first downloading...
Read more >
9 Ways to Fix Slow Download Speeds on Chrome - MakeUseOf
1. Close Unused Tabs While Downloading Files ... Each tab open in your browser consumes some resources. Chrome has very few resources to...
Read more >
Why Is Your Download Speed Slow & How Can You Increase It?
A slow Internet speed can cause your downloads to run slow. Use a free internet speed test software to test your Internet speed....
Read more >
Increase File Download Speed On Slow Internet Connection
Here are some tips to increase the file download speed on slow internet connections like dial up. You can follow these techniques for...
Read more >
Why is NSURLSession slower than cURL when downloading ...
It's also not possible for me to reduce the number of files by zipping it, because I need the app to be able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found