I have a project to download 604 jpg from Google drive into SD Card, but the problem is when it starts downloading the images and complete downloading 110 images, it then downloads only blank images and the size for each image is just 1.08 kb although there is a very large empty size in SD card.
I have tested downloading the files in different time one time at AM 6:00 completed download 100 files with full size but after that comes with 1.08 kb
and the second time at AM 8: 00 and download the next 175 files with full size file but after that again comes with 1.08 kb. So I think the problem is from the policy of Google Drive, it just allow to download a limit size of files each time. Am I right? or the problem is from other things?
Is there some way to add a condition in order to try redownload the file if the size is 1.08 kb?
Please help me to solve this problem.
Thank you all.
Google now appear to have introduced automated query checks on file downloads for public files.
This may result in any files downloaded using this process returning as created, but empty.
You may have to treat your files as private files, and use a method like this, combined with the filebyfile approach:
Using the zip method above may help to overcome the automated query check by reducing the number of files being downloaded. Keep zip sizes under 3mb to avoid file size checks by google - this looks like @ 30 images per zip...
If I use the zip method above to overcome the automated query check and keep zip sizes under 3mb to avoid file size checks by google then I will have 20 zip files. So, how I can program this method to make 20 zip files and how I can unzip these 20 zip files into the specific folder after download?
Thank you very much for helping me.