GSObject objectComplete = gsService.getObject(bucketname, id);
InputStream in = objectComplete.getDataInputStream();
byte[] array = null;
array = getBytesFromInputStream(in);
if(array == null){
throw new StorageCloudException("GoogleStorageException:: download data");
}
return array;
} catch (ServiceException e) {
throw new StorageCloudException("GoogleStorageException::" + e.getMessage());
} catch (IOException e) {
throw new StorageCloudException("GoogleStorageException::" + e.getMessage());
}
}