On 04/16/2015 05:36 PM, Juan Valles wrote:
>       What we're doing is converting the binary properties to bytearray
> Python objects at the mapistore_python.c layer. Then, when we're posting an
> attachment (rest.py layer), we loop over the properties and we encode the
> binary ones in base 64.

So, PidTagAttachDataBinary is base64 encoded binary data? There's also
PidTagAttachDataObject, but I don't know the difference. Should I
support both?

Does that mean that properties of type pTypBinary are always
base64-encoded in the API?

Base64 doesn't look optimal for general purpose REST API. I'd expect a
separate request for attachment body downloads, and multipart/form-data
for uploads.

-- 
Aleksander Machniak
Software Developer, Kolab Systems AG
-------------------------------------------------------
PGP:19359DC1  -  http://kolabsys.com  -  http://alec.pl
_______________________________________________
devel mailing list
devel@lists.openchange.org
http://mailman.openchange.org/listinfo/devel

Reply via email to