Tag: 配额

Google App Engine中blobstore对象的1MB配额限制?

我正在使用App Engine(版本1.4.3)直接编写blobstore以保存图像。 当我尝试存储大于1MB的图像时,我得到以下exception 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(); }