Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with Total Bytes while downloading #558

Open
ubedthaheem opened this issue May 19, 2021 · 2 comments
Open

issue with Total Bytes while downloading #558

ubedthaheem opened this issue May 19, 2021 · 2 comments

Comments

@ubedthaheem
Copy link

ubedthaheem commented May 19, 2021

Hi there, I'm using this library to download pdf files from Google drive (on click method), when I download a simple pdf file, it shows total bytes correctly, but when I tried to download an image-based pdf file, which has more than 3 MB memory, so there your library shows total bytes as -1.
I tried a lot to fix this but failed, cause it was an error in your library... although the download process is working fine on my side.
here I'm posting some lines of log from my script.

D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5312851
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5321043
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5329235
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5337427
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5345619
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5353811
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5362003
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5370195
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5378387
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5386579
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5394771
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5402963
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5411155
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5419347
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5427539
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5435731
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5443923
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5452115
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5460307
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5468499
D/SSKG_PdfActivity: downloadPdf: totalBytes -1
D/SSKG_PdfActivity: downloadPdf: DownloadedBytes 5476691

@jokomanza
Copy link

jokomanza commented Feb 24, 2022

I'm also having the same problem, does anyone know how to fix it? in my case i'm trying to download apk file

@varunRT
Copy link

varunRT commented Feb 26, 2024

Same problem for me as well. in my case i'm trying to download apk file. @amitshekhariitbhu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants