Hi Dave,
Well according to the MetaWebLog API:
>bits is a base64-encoded binary value containing the content of the object.
So yes, struct["bits"] is a string containing a base64 encoding of the
binary file.
I have however tried sending the binary file as is by doing :
struct["bits"] = File.read("newpicture.jpg")
But got the same error.
How would I send a byte array using Ruby? Or any other language,
could you (or anyone else on the list) perhaps provide me with a
working sample in any language which will do an xmlrpc call to upload
a mediaobject.
Thanks alot.
Pieter Steyn
On 2/1/08, Dave <[EMAIL PROTECTED]> wrote:
> Looks like a are sending a String and Roller is expecting you to send a "[B"
> which mean a byte.
>
> So, I bet the problem is in the line that starts with struct["bits"]. Are
> you sure you need to use that Base64 call? Maybe you are supposed to set a
> byte array there and let the XMLRPC library do the encoding?
>
>
> - Dave
>