[wp-xmlrpc] New Media Object
jalkut at red-sweater.com
Mon Apr 13 15:20:58 GMT 2009
Hi Dave - you have to Base64 the data yourself. It's a means of
turning binary data into data that can be safely expressed in a pure-
I've never done this myself with PHP, but it looks like this function
is included in PHP 4 and 5:
You might benefit from looking at the network log from an app such as
my own MarsEdit (Mac), or another client if you're on a PC. You'll
see exactly how the newMediaObject data is transmitted from the app to
On Apr 13, 2009, at 9:25 AM, David Weiss wrote:
> First, thanks to those who helped me with my other issues - all is
> cool so far!
> But being a noob (soon to be not a noob), I am now tripped up by the
> call to new media object.
> Specifically, I am kind of clueless how the Base64 file
> representation is supposed to work. Do I have to convert the file
> myself, or is that something that happens inside the Incutio
> client? I've dug through the code, but I'm just not sure how this
> works. Also, I can't find a single example of how to do this out on
> the net. Weird.
> I'm sure this should just be a handful of lines of PHP, but I'm just
> not getting it right.
> Any help would be greatly appreciated.
> wp-xmlrpc mailing list
> wp-xmlrpc at lists.automattic.com
More information about the wp-xmlrpc