GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Small Blobs silently stored as ShortBlobs - Need option to force full Blob · Issue #724 · googleapis/google-cloud-java

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Small Blobs silently stored as ShortBlobs - Need option to force full Blob#724
Copy link
Assignees
aozarov
Labels
api: datastoreIssues related to the Datastore API.

Description

@unitydynamics
unitydynamics
opened on Mar 7, 2016
Issue body actions

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

Next
  1. unitydynamics commented on Mar 7, 2016

    @unitydynamics
    unitydynamics
    on Mar 7, 2016
    Author
    More actions

    Also just FYI I've posed this as a potential Objectify change: objectify/objectify#284

  2. aozarov commented on Mar 7, 2016

    @aozarov
    aozarov
    on Mar 7, 2016
    Contributor
    More actions

    From the Google Cloud Datastore perspective there is only one type of Blob which is a Byte String.

    I think Objectify need to map/handle ShortBlob in a similar way they do for Blob.
    BTW, a similar concept should apply to Text and String (Google Cloud Datastore has only one
    field for it, stringValue).

  3. aozarov
    added
    api: datastoreIssues related to the Datastore API.
    on Mar 7, 2016
  4. unitydynamics commented on Mar 7, 2016

    @unitydynamics
    unitydynamics
    on Mar 7, 2016
    Author
    More actions

    Thanks I suppose I just assumed that ShortBlob was a datastore primitive (this page). Jeff has very graciously agreed to fix this in Objectify. I think we can close this out.

  5. aozarov
    closed this as completedon Mar 7, 2016
  6. JustinBeckwith
    assigned
    aozarov
    on Feb 1, 2021
  7. github-actions
    added 2 commits that reference this issue on Jun 29, 2022

    build(deps): update dependency org.apache.maven.plugins:maven-project…

    c0343d3

    chore: update dependencies for regapic (googleapis#1467) (googleapis#724

    cdce993
  8. github-actions
    added 3 commits that reference this issue on Jul 27, 2022

    chore(bazel): update protobuf to v3.21.3 (#724)

    f3dac87

    feat: Add service_account_id output field to CloudSQL properties (#724)

    e648ac4

    chore(main): release 2.3.3 (#724)

    0b0bb22
  9. github-actions
    added 2 commits that reference this issue on Aug 9, 2022

    chore(deps): update dependency com.google.cloud:google-cloud-websecur…

    2e9cd54

    chore(main): release 2.5.0 (#730)

    cd6a8d3
  10. github-actions
    added 2 commits that reference this issue on Sep 15, 2022

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    8addf4f

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    374a16b
  11. 11 remaining items

  12. suztomo
    added 3 commits that reference this issue on Feb 1, 2023

    deps: update google.common-protos.version to v2.9.1 (#724)

    62cd59a

    chore(main): release 2.0.0 (#739)

    ea9f421

    chore(main): release 3.0.0 (#740)

    f0625b0
  13. meltsufin
    added a commit that references this issue on Dec 22, 2025

    fix(java): java 17 dependency arguments (#1266) (#724)

    5a8cedf
  14. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(main): release 0.122.17 (#724)

    92490a6
  15. suztomo
    added a commit that references this issue on Mar 11, 2026

    fix(java): java 17 dependency arguments (googleapis#1266) (googleapis…

    3b242fb
  16. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    deps: update actions/github-script action to v5 (googleapis#724)

    14c11a8

    chore(main): release 2.5.9 (googleapis#721)

    7dfbd4e
  17. suztomo
    added a commit that references this issue on Mar 30, 2026

    build: add jdk 17 to java units and dependency builds (#1216) (#724)

    65b89a7
  18. lqiu96
    added a commit that references this issue on Apr 1, 2026

    build: add jdk 17 to java units and dependency builds (#1216) (#724)

    0d0b1db
  19. meltsufin
    added 4 commits that reference this issue on Apr 29, 2026

    fix: Add `shopt -s nullglob` to dependencies script (#724)

    25840d6

    chore: release 1.113.5 (#728)

    250d86f

    fix: Add `shopt -s nullglob` to dependencies script (#724)

    e1a9f03

    chore: release 1.113.5 (#728)

    71d4826
  20. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: regenerate README (googleapis#724)

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

Metadata

Metadata

Assignees

  • @aozarov
    aozarov

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.