[turba] how to save a photo through the api --> rpc request
jan at horde.org
Mon Oct 27 17:15:14 UTC 2008
Zitat von roman stachura <stachrom at gmail.com>:
> Jan Schneider schrieb:
>> Zitat von Michael Rubinsky <mrubinsk at horde.org>:
>>> Quoting roman stachura <stachrom at gmail.com>:
>>>> I wonder how can I save binary data like a photo through a rpc
>>>> request under the turba api from a external server.
>>>> How should I compose the $rpc_parameters_turba_import array ?
>>> After a quick glance at the code, it doesn't look like this is
>>> currently possible. The binary data will need to be encoded
>>> before it is sent over jsonrpc, but the _turba_import method
>>> doesn't currently check for this and decode it. We'll have to add
>>> support for encoded binary data to the import method, and a way to
>>> hint at what the encoding type is. How to do that in a BC way
> Tanks for the quick answer.
>> It doesn't work with xmlrpc or jsonrpc, but it should,
>> theoretically, work with SOAP.
> Is there a SOAP example around for a php client? (in general not
> specificly for turba.)
> So I can give SOAP a try.
You probably have to explicitly pass the binary data as a SOAP_Value object:
Do you need professional PHP or Horde consulting?
More information about the turba