Google App Engine中blobstore对象的1MB配额限制?
我正在使用App Engine(版本1.4.3)直接写blobstore以保存图像。
当我尝试存储大于1MB的图像时,我得到以下异常
com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request to API call datastore_v3.Put() was too large.
我认为每个对象的限制是2GB
这是存储图像的Java代码
private void putInBlobStore(final String mimeType, final byte[] data) throws IOException {
final FileService fileService = FileServiceFactory.getFileService();
final AppEngineFile file = fileService.createNewBlobFile(mimeType);
final FileWriteChannel writeChannel = fileService.openWriteChannel(file, true);
writeChannel.write(ByteBuffer.wrap(data));
writeChannel.closeFinally();
}
没有找到相关结果
已邀请:
3 个回复
摊揉售
烫珊
臀夯脖锑