[google-appengine] Re: How to store image files from android app using mobile backend starter?

2014-05-09 Thread anshul goel

Hi
I have already generated the client library and trying the get upload url 
like this: 

try {
BlobEndpoint blobEndpoint = new BlobEndpoint();
String url = blobEndpoint.getUploadUrl(profileImages,images,
PRIVATE).execute().getShortLivedUrl();
} catch (IOException e) {
e.printStackTrace();
}

But its giving this error:
No enclosing instance of type Mobilebackend is accessible. Must qualify the 
allocation with an enclosing instance of type Mobilebackend (e.g. x.new A() 
where x is an instance of Mobilebackend).

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: How to store image files from android app using mobile backend starter?

2014-05-09 Thread Vinny P
On Sat, Apr 26, 2014 at 8:09 PM, anshul goel anshul.g...@gmail.com wrote:

 I have already generated the client library and trying the get upload url
 like this:

 try { BlobEndpoint blobEndpoint = new BlobEndpoint();
 String url = blobEndpoint.getUploadUrl(profileImages,
 images,PRIVATE).execute().getShortLivedUrl(); } catch (IOException e)
 { e.printStackTrace(); }

 But its giving this error: No enclosing instance of type Mobilebackend is
 accessible. Must qualify the allocation with an enclosing instance of type
 Mobilebackend (e.g. x.new A() where x is an instance of Mobilebackend).




Did you get this code snippet from
http://googlecloudplatform.blogspot.com/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html?
If so, did you copy the original example endpoint code at
https://github.com/GoogleCloudPlatform/solutions-mobile-backend-starter-java/blob/master/src/com/google/cloud/backend/spi/BlobEndpoint.javaor
did you write your own endpoint?



-
-Vinny P
Technology  Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.