[Freeassociation-devel] Attachments

Antony Bowesman adb at thorntothehorn.org
Thu Oct 6 17:23:00 PDT 2011


Looking at the API and checking the code in icalattach.c I realised that

icalattach_new_from_data (const char *data...)

requires a 'String', i.e. it calls

     if ((data_copy = strdup (data)) == NULL) {

so cannot handle binary data.  Looking more closely, it seems that it up to the 
caller to first base64 encode the data and then set all the appropriate 
parameters, e.g. ENCODING=BASE64

is this the case?  I can't see anything in the docs about that, but that's how 
it seems.

Antony




More information about the libical-devel mailing list