POST api/Images/InsertAsBase64
Used to Insert an Image into the Eskimo system
Request Information
URI Parameters
None.
Body Parameters
EskimoClassLibraries.ImageArgsName | Description | Type | Additional information |
---|---|---|---|
Base64String |
The actual image data |
string |
Required |
FileName |
The file name for the image. This is unique in the Eskimo system and an error will be thrown if you try to insert one that already exists. |
string |
Required String length: inclusive between 0 and 100 |
AlternateTag |
Alternate Text for an image as used here: http://www.w3schools.com/tags/att_img_alt.asp |
string |
String length: inclusive between 0 and 400 |
Request Formats
application/json, text/json
Sample:
{ "Base64String": "sample string 1", "FileName": "sample string 2", "AlternateTag": "sample string 3" }
application/xml, text/xml
Sample:
<ImageArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EskimoClassLibraries"> <AlternateTag>sample string 3</AlternateTag> <Base64String>sample string 1</Base64String> <FileName>sample string 2</FileName> </ImageArgs>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>