Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serving blob from app-engine endpoint

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.

like image 980
learner Avatar asked Nov 03 '22 00:11

learner


1 Answers

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.

like image 120
Rajeev Dayal Avatar answered Nov 15 '22 07:11

Rajeev Dayal