Title: XMLRPC Image Upload
Last modified: August 21, 2016

---

# XMLRPC Image Upload

 *  [Hassan Akhtar](https://wordpress.org/support/users/khaxan/)
 * (@khaxan)
 * [12 years ago](https://wordpress.org/support/topic/xmlrpc-image-upload/)
 * Hi.
 * I am trying to upload images to WordPress via XMLRpc. A new image is generated
   each time I run my code but I see an empty image in my Media Library. I have 
   tried to use a bit string (1010101), base64 encoded string and bitmap but nothing
   seems to work. In the XML-RPC documentation ([http://codex.wordpress.org/XML-RPC_WordPress_API/Media#wp.uploadFile](http://codex.wordpress.org/XML-RPC_WordPress_API/Media#wp.uploadFile))
   the format of the “bits” field isn’t clear. It just says “bit data”.
 * Thanks in advance.

The topic ‘XMLRPC Image Upload’ is closed to new replies.

## Tags

 * [media](https://wordpress.org/support/topic-tag/media/)
 * [upload media](https://wordpress.org/support/topic-tag/upload-media/)
 * [XML-RPC](https://wordpress.org/support/topic-tag/xml-rpc/)
 * [xmlrpc](https://wordpress.org/support/topic-tag/xmlrpc/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Hassan Akhtar](https://wordpress.org/support/users/khaxan/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/xmlrpc-image-upload/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
