request.setStartIndex(startIndex);
request.setEndIndex(endIndex);
byte[] responseBytes;
try {
responseBytes = ApiProxy.makeSyncCall(PACKAGE, "FetchData", request.toByteArray());
} catch (ApiProxy.ApplicationException ex) {
switch (BlobstoreServiceError.ErrorCode.valueOf(ex.getApplicationError())) {
case PERMISSION_DENIED:
throw new SecurityException("This application does not have access to that blob.");
case BLOB_NOT_FOUND: