1

Download thumbnail of file from Google Drive

view story
linux-howto

http://stackoverflow.com – I can download the original file from Google Drive by using the following code : public static InputStream downloadFile(Drive service, File file) throws IOException { if (file.getDownloadUrl() != null && file.getDownloadUrl().length() > 0) { try { HttpResponse resp = service.getRequestFactory() .buildGetRequest(new GenericUrl(file.getDownloadUrl())) .execute(); return resp.getContent(); } catch (IOException e) { // An error occurred. (HowTos)