Transfer files from dropbox/drive to Google cloud storage

前端 未结 3 1997
清歌不尽
清歌不尽 2021-02-05 12:26

We are planning to implement a feature to let customers browse their images in their own google drive or dropbox accounts (within our app), and select ones they wanna use in our

相关标签:
3条回答
  • 2021-02-05 12:38

    Well you could stream the files so at least you wouldn't have to save them to local disk, but other than that I think your solution is the way to go.

    It depends on your language how streaming works exactly, but basically you download the file and upload it to GCS right away without ever writing any bytes to local disk.

    0 讨论(0)
  • 2021-02-05 12:46

    I ran into your question during my search of finding a way to transfer data from G-drive to Google Cloud Storage. Since they are both under Google umbrella, so I guess they should be able to seamlessly upload/download. So far in my search, without programming, the answer is NO.

    I don't have a exactly solution for your question, because it really depend on how much data you have and how often of the uploading/downloading. Unfortunately, there is not straight shot (even for the Gdrive!). But maybe thinking of trying the RESTful API calling to Google and make the connection with Dropbox API. Hoping this could help.

    0 讨论(0)
  • 2021-02-05 12:52

    With this recipe, you can use Google Colab to mount Google Drive folder, and then copy from the mounted folder to the storage bucket using gsutil, avoiding the need to first save the data to local disk.

    0 讨论(0)
提交回复
热议问题