| |||||
API Home >> Writer >> API Reference >> POST Method APIs
To upload an image in your Zoho Writer account.
| Field | Description |
| content | Encode the image content using base64encoding before uploading to Zoho Writer. |
| format | Specify the type of the image to uploaded (ex - jpg, gif). |
<form method="POST" action="http://export.writer.zoho.com/api/private/xml/image/upload?apikey=[APIKEY]&ticket=[Ticket]">
<input type="hidden" name="content" value="[base64 encoded image]">
<input type="hidden" name="format" value="jpg">
<input type="submit" value="UploadImage" class="divbutton" name="submit">
</form>
| Field | Description |
| url | Gets the image location from where it is to be uploaded to Zoho Writer. |
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/image/upload">
<result>
<url>http://writer.zoho.com/ImageDisplay.im?name=testimage.jpg&accId=60000000145</url>
</result>
</response>
{
"response":
{
"uri": "/api/private/json/image/upload",
"result":
{
"url":"http://writer.zoho.com/ImageDisplay.im?name=testimage.jpg&accId=60000000145
}
}
}