com.google.appengine.api.blobstore.BlobKey

Here are the examples of the java api class com.google.appengine.api.blobstore.BlobKey taken from open source projects.

1. BlobEndpoint#getImageFromGcs()

Project: io2014-codelabs
File: BlobEndpoint.java
/**
   * Retrieves the Image from Google Cloud Storage.
   *
   * @param bucketName  the bucket name of the Google Cloud Storage.
   * @param objectName  the object path to the image in the Google Cloud Storage.
   * @return
   */
private Image getImageFromGcs(String bucketName, String objectName) {
    BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
    BlobKey blobKey = blobstoreService.createGsBlobKey("/gs/" + bucketName + "/" + objectName);
    return ImagesServiceFactory.makeImageFromBlob(blobKey);
}