I'm migrating my GAE app from the deprecated File API to Google Cloud Storage Client Library.
I used to persist the blobKey, but since there is partial support for it (as specified here) from now on I'll have to persist the object name.
Unfortunately the object name that comes from the GCS looks more or less like this
InputStream is = new BlobstoreInputStream(blobstoreService.createGsBlobKey("/gs/bucketName/akahsdjahslagfasgfjkasd"));
BlobstoreInputStream received an invalid blob key
If you have persisted and retrieved e.g the string
String objname worth e.g
"/gs/bucketname/819892hjd81dh19gf872g8211", you could split it on "/" (
String pieces = objname.split("/")) and use the pieces appropriately in the call to