user956033
user956033

Reputation: 5

How to set filename property in BlobStore (Java)?

It is possible to rename a file stored in Blobstore? but if this is not possible, how could clone a saved file with another filename?

thanks.

Upvotes: 0

Views: 147

Answers (1)

Peter Knego
Peter Knego

Reputation: 80340

Blobstore entities are immutable - once created, they cannot be changed.

You would need to create a new entity and copy the data. Since programmatic access to Blobstore has been deprecated, you should save blobs to Cloud Storage and then access them via Blobstore API: when saving data to Cloud Storage, save the key you get and simply use it with Blobstorage APIs.

Upvotes: 1

Related Questions