POST api/UploadImage

Request Information

URI Parameters

None.

Body Parameters

Imagemodel
NameDescriptionTypeAdditional information
UId

integer

None.

ImageUpload

Collection of byte

None.

photo1

HttpPostedFileBase

None.

flag

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UId": 1,
  "ImageUpload": "QEA=",
  "photo1": null,
  "flag": "sample string 2"
}

application/xml, text/xml

Sample:
<Imagemodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <ImageUpload>QEA=</ImageUpload>
  <UId>1</UId>
  <flag>sample string 2</flag>
  <photo1 xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
</Imagemodel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Imagemodel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.