I have an endpoint that must send an image in the response. The original image is a file in the server that I open with python (open().read()) and save it in the NDB as BlobProperty (ndb.BlobProperty()).
My protoRPC message is a BytesField.
If I go in the apis-explorer the picture comes with the correct value, but it doesn't work in my JS Client. I've been trying to just read the file, encode and decode base64 but the JS is still not recognizing it. Does anyone have an idea how to solve it? How can I send the base64 image via Endpoints?
Thank you!