I want to download a file from my Google Drive Account and save it on my computer.
String fileId = "0BwwA4oUTeiV1UVNwOHItT0xfa2M";
OutputStream outputStream = new ByteArrayOutputStream();
service.files().get(fileId).executeMediaAndDownloadTo(outputStream);
I don't know how to handle the outpustream so I can export it to a file. The code I am using is from Google Drive APIs.