Hi,
I am trying to send an image using xml-rpc. I need to set this image as a featured image of a post.
When I use the traditional NewMediaObject it returns only the url, I would like to write a custom method.
Some one suggested to use wp_handle_upload(). This accepts $_FILE object as an input. how do I achieve put in a bit array instead of a $_FILE?
$bit_array = get_file_bit_array();
wp_handle_upload( $bit_array, .., .. );
but this does not work.
Thanks in advance