-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?