It's my understanding that the last parameter, <Data> should be the
base64 encoded data of the picture, but I have no idea on how to pass
it properly to the "call xmlrpc" command.
Where pic, the last parameter, is either the result of:
set pic to alias "Gladis HD:Users:federico:Desktop:test.jpg"
Or:
set pic to read alias "Gladis HD:Users:federico:Desktop:test.jpg" as
data
-- "as data" was a guess I tried when I saw that base64-encoded data
from a server's reply was returned as «data ...»
I get an error from Zoto's XML-RPC server.
I hacked up a PHP script to dump the raw XML data sent by
AppleScript. It seems that while the parameter's type is guessed
correctly, AppleScript "forgets" to fill its content, so that the
<param> tag for the last parameter looks like this:
<param>
<value>
<base64>
</base64>
</value>
</param>
There is an empty line inside <base64>.
So, how can I send base64-encoded data to an XML-RPC server?