문제

I am developing an app-engine connected android project using the eclipse plugin. When I upload an image to the blobstore, how do I make it callback an endpoint method? I find great posts here that can be used as reference to understand my question better (if you need to).

using blobstore with google cloud endpoint and android

Saving blobs with Google Endpoint

So really, I want to know how to make the callback url an endpoint method such as saveAnimalData below (I stole from referenced link)

@ApiMethod(name = "saveAnimalData", httpMethod = HttpMethod.POST)
        public String saveAnimalData(AnimalData request) throws Exception {
}

올바른 솔루션이 없습니다

다른 팁

You should be able to use

https://appid.appspot.com/_ah/api/apiname/version/saveAnimalData

As your final destination url when calling. blobstoreService.createUrl(destination) .

Just bear in mind that the request here is not your original submission. GAE will first call an internal URL (the one created by the blobstoreservice), store the blob and then call your destination URL so whatever info you send will be lost before reaching your endpoint (eg AnimalData will be null)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top