How to download a file from google drive using drive api java?

后端 未结 2 2094
半阙折子戏
半阙折子戏 2020-12-20 18:35

I have tried some functions of Google drive, but I couldn\'t able to download the file from Drive.

Here is the code which I used

private static Inpu         


        
2条回答
  •  长情又很酷
    2020-12-20 18:59

    Documents in Google Docs native formats won't have a downloadUrl field, instead you can export them using the exportLinks collection:

    https://developers.google.com/drive/manage-downloads#downloading_google_documents

提交回复
热议问题