-1
我想下載與谷歌驅動器API的文件。該代碼沒有提供任何錯誤,但我無法在任何地方找到該文件。 這是代碼使用Google Drive API下載文件。無法在任何地方找到它
String fileId = "...";
OutputStream outputStream = new ByteArrayOutputStream();
try {
service.files().export(fileId, "text/csv")
.executeMediaAndDownloadTo(outputStream);
} catch (IOException e) {
System.out.println("Ceva nu a mers bine");
e.printStackTrace();
}
System.out.println(outputStream == null);
任何ideea?