Unable to download file from google drive

view full story

http://stackoverflow.com – i have been trying to download a file from Google drive that i uploaded..i am able to get the metadata associated with the file..but i am unable to download it using the function given in the documentation which is.. private static InputStream downloadFile(Drive service, File file) { if (file.getDownloadUrl() != null && file.getDownloadUrl().length() > 0) { try { HttpResponse resp = service.getRequestFactory().buildGetRequest(newGenericUrl(file.getDownloadUrl())) .execute(); return resp.getContent(); } (HowTos)