2
我想从我的Google云端硬盘帐户下载文件并将其保存在我的电脑上。如何保存Google云端硬盘将outpustream下载到文件中?
String fileId = "0BwwA4oUTeiV1UVNwOHItT0xfa2M";
OutputStream outputStream = new ByteArrayOutputStream();
service.files().get(fileId).executeMediaAndDownloadTo(outputStream);
我不知道如何处理outpustream,所以我可以将它导出到一个文件。我使用的代码是从Google Drive APIs。
非常感谢!你再次拯救了这一天! – Undefined