title: Get BlobKey type from JSON Object
body: <p>We're trying to build application which will store images to blobstore.</p>
  
  <p>I used the code from <a href="https://stackoverflow.com/questions/22168930/store-image-to-blobstore-from-android-client-and-retrieve-blobkey-and-upload-url/22189239#22189239">here</a> and added it to endpoint project.
  Now the /uploaded servlet returns to client JSONObject like this:</p>
  
  <pre><code>    json.put("servingUrl", servingUrl);
      json.put("blobKey", blobKey);
  </code></pre>
  
  <p>There is a PictureEntity class. Where the field blobKey is of the type BlobKey and I can send another HttpPost request with all needed data to server, get the needed String from html entity and apply 
  <code>picture.setBlobKey(blobKey);</code> on server side.</p>
  
  <p>But since I use EndPoints I don't want to transfer all the data again to another servlet on the server. I want to use endpoints. And it seems that they should somehow support BlobKey type.
  At least GAE creates model for them but when I try to do the same on client side I always get an error: </p>
  
  <blockquote>
    <p>The method setBlobKey(BlobKey) in the type PictureEntity is not
    applicable for the arguments (String)</p>
  </blockquote>
  
  <p>Any help would be appreciated. Thanks!</p>