On Feb 3, 2008 7:13 AM, Pieter Steyn <[EMAIL PROTECTED]> wrote:
> 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.
I'm no Ruby guy, but I according to the pickaexe book, Ruby's
FIle.read() returns a string. What you need is a way to turn a file
into a byte array. Here's a complete Java example:
http://tinyurl.com/2nv8ya
- Dave