Question

I want to serve a blob from my google endpoint server to an android app; not a link to the blob, the actual blob. Do I have to encode the blob in Base64 to send it from the endpoint or is that handled by app-engine?

Please do not confuse this question with the reverse path of sending image from front-end to backend. I want to send from the SERVER to the CLIENT. Do I need to encode the blob or does app-engine handle that? Oh, and I am using Java.

Was it helpful?

Solution

No, you don't have to encode the blob in Base64. You can have a field in an Object that you're returning that contains an array of bytes. Marshalling will be handled by the Cloud Endpoints layer for you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top