Skip to content

Small Blobs silently stored as ShortBlobs - Need option to force full Blob #724

Description

@unitydynamics

Maybe there is an option but someone will have to point it out to me: how can I ensure that my Blobs are stored as full Blob objects and not ShortBlobs?

The issue for me is that I'm writing entities to the datastore using gcloud-java and then reading them with Objectify. When reading I see the error: Expected class com.google.appengine.api.datastore.Blob, got class com.google.appengine.api.datastore.ShortBlob: <ShortBlob: 247 bytes>

I'm inserting my Blobs like this:
entityBuilder.set("compressedText", BlobValue.builder(Blob.copyFrom(compressedtext)).build());
where compressedtext is a byte[]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions