![]() This code downloads the file, but I could only figure it out with the blob name, not URL: def download_blob(bucket_name, url):īucket = storage_client. This is my upload code which works perfectly: def upload_blob(bucket_name, filename, file_obj):īucket = storage_client.bucket('example-storage-bucket')īlob.upload_from_file(file_obj) # binary file dataįorm_('File uploaded'.format(filename)) I have access to the blob's URL, so I was wondering if there is a way to download files using this link. ![]() ![]() Here is how you can download the pCloud BIN file: Once downloading is complete, you can find the binary file in the default. In the same vein, we need to create an account on pCloud to access the files stored online. I was able to download the file using the filename, but that's not practical since the user could upload files with the same name. Before installing and configuring pCloud, we need to download the binary file and store it in our system. I was reading the python documentation for google cloud storage and was successfully able to create a method that uploads files, however, I am not able to find a way to download files using a blob's URL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |