[wp-xmlrpc] New Media Object

Joseph Scott joseph at josephscott.org
Mon Apr 13 21:43:59 GMT 2009


On Apr 13, 2009, at 3:21 PM, David Weiss wrote:

> Yeah, I saw that function at php.net, and the user feedback just  
> makes what seems like a simple function call completely confusing.
>
> I'll monkey around with it a bit and see what I can accomplish.  I  
> was hoping to avoid a day or two of fiddling with this by just  
> seeing if anyone has actually used this API and made it work using  
> PHP.


I can confirm that it does work with PHP :-)

Using the IXR library that WordPress ships with you need to make sure  
that the field is correctly marked up as base64:

$file_data = new IXR_Base64( $data );

The IXR_Base64 class takes care of calling the base64_encode()  
function for you.


>
> BTW, I'm on a Mac.  I totally made the switch.  The only thing I use  
> my PC for is IE7 testing, because I don't want to run Parallels or  
> anything like that on my souped up MacBook Pro.  I'll check out  
> MarsEdit.


--
Joseph Scott
joseph at josephscott.org
http://josephscott.org/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-xmlrpc/attachments/20090413/b4cd78db/attachment.htm


More information about the wp-xmlrpc mailing list