Hi everyone. I am trying to download file with Drive Api and get some trouble. I read this guide
String fileId = "0BwwA4oUTeiV1UVNwOHItT0xfa2M";OutputStream outputStream = new ByteArrayOutputStream();
driveService.files().get(fileId)
.executeMediaAndDownloadTo(outputStream);
Every time I am getting this error
com.google.api.client.http.HttpResponseException: 400 Bad Request
{
"error": {
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message": "Bad Request"
}
],
"code": 400,
"message": "Bad Request"
}
}