Richard Goh Active Member Licensed User Longtime User Jul 27, 2016 #1 I uploaded some images (jpg) into Firebase Storage (using the sample program) successfully and I can view the file in the firebase console. When I do a jpg file download (using below code). The file was downloaded with 0 size. Any advice on this? B4X: Starter.storage.DownloadFile("/img/" & imgfile, imgDir, imgfile) Thank you.
I uploaded some images (jpg) into Firebase Storage (using the sample program) successfully and I can view the file in the firebase console. When I do a jpg file download (using below code). The file was downloaded with 0 size. Any advice on this? B4X: Starter.storage.DownloadFile("/img/" & imgfile, imgDir, imgfile) Thank you.
Erel B4X founder Staff member Licensed User Longtime User Jul 27, 2016 #2 Are you handling the DownloadCompleted event? Is Success true? Upvote 0
Richard Goh Active Member Licensed User Longtime User Jul 27, 2016 #3 Sorry. Successful is false. Last edited: Jul 27, 2016 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 27, 2016 #4 The path doesn't look correct. It should start with auth, public or user: https://www.b4x.com/android/forum/threads/firebasestorage-simple-file-storage-backend.68350/ Upvote 0
The path doesn't look correct. It should start with auth, public or user: https://www.b4x.com/android/forum/threads/firebasestorage-simple-file-storage-backend.68350/
karld Active Member Licensed User Longtime User Jul 27, 2016 #5 Do you have the image dir listed in your bucket? That was the issue I had. Don't list it in the bucket. Upvote 0
Do you have the image dir listed in your bucket? That was the issue I had. Don't list it in the bucket.
Richard Goh Active Member Licensed User Longtime User Jul 28, 2016 #6 It's resolved. It's the invalid filename been entered. Sorry for the silly mistake. Thanks for the reply. Upvote 0
It's resolved. It's the invalid filename been entered. Sorry for the silly mistake. Thanks for the reply.