Hi,
Just incase someone has the same problem I had, this is the ruby solution:
image = {
'name' => "img.jpg",
'type' => "image/jpeg",
'bits' => XMLRPC::Base64.new(File.read('/tmp/img.jpg'))
}
Instead of
'bits' => Base64.b64encode(File.read("/tmp/img.jpg"))
Resolved!
Cheers,
Pieter Steyn
> Now if only I could get it working in Ruby, but understand that I
> should probably ask elsewhere regarding that. Thanks again for the
> help, and *if* anyone here knows Ruby and is willing to show me a way
> to do so in Ruby that would be great.