Open GoogleCodeExporter opened 9 years ago
I was not able to reproduce, but in case you are still getting NPE, you get
create a MediaHttpDownloader manually like the following:
MediaHttpDownloader downloader =
new MediaHttpDownloader(httpTransport, drive.getRequestFactory().getInitializer());
downloader.setProgressListener(new FileDownloadProgressListener());
downloader.download(new GenericUrl(uploadedFile.getDownloadUrl()), out);
See the drive sample for more details:
https://code.google.com/p/google-api-java-client/source/browse/drive-cmdline-sam
ple/src/main/java/com/google/api/services/samples/drive/cmdline/DriveSample.java
?repo=samples
Original comment by wonder...@google.com
on 29 Dec 2014 at 7:43
Original issue reported on code.google.com by
bogdan.b...@appsbroker.com
on 30 Sep 2014 at 10:50