[wp-xmlrpc] New Media Object
Daniel Jalkut
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-
text medium.
I've never done this myself with PHP, but it looks like this function
is included in PHP 4 and 5:
http://us2.php.net/base64_encode
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
the blog.
Daniel
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.
>
>
> Dave
> _______________________________________________
> wp-xmlrpc mailing list
> wp-xmlrpc at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-xmlrpc
More information about the wp-xmlrpc
mailing list