POST api/Resource/UpLoadImgByBase64
图片上传
Request Information
URI Parameters
None.
Body Parameters
图片上传参数
ResourceUpLoadImgName | Description | Type | Additional information |
---|---|---|---|
scenicno |
景区编号 |
string |
None. |
filename |
图片名称 |
string |
None. |
files |
图片文件-不可用-废弃 |
Collection of HttpPostedFileBase |
None. |
base64s |
图片文件 |
Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "scenicno": "sample string 1", "filename": "sample string 2", "files": null, "base64s": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<ResourceUpLoadImg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.Resource"> <base64s xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </base64s> <filename>sample string 2</filename> <files xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" /> <scenicno>sample string 1</scenicno> </ResourceUpLoadImg>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
图片上传
CommonOperationResultWithTagOfListOfScenicareaImgsModelName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | Collection of ScenicareaImgsModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": [ { "filename": "sample string 1", "fileurl": "sample string 2" }, { "filename": "sample string 1", "fileurl": "sample string 2" } ] }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfArrayOfScenicareaImgsModelyARIwIRA xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.Resource"> <d2p1:ScenicareaImgsModel> <d2p1:filename>sample string 1</d2p1:filename> <d2p1:fileurl>sample string 2</d2p1:fileurl> </d2p1:ScenicareaImgsModel> <d2p1:ScenicareaImgsModel> <d2p1:filename>sample string 1</d2p1:filename> <d2p1:fileurl>sample string 2</d2p1:fileurl> </d2p1:ScenicareaImgsModel> </tag> </CommonOperationResultWithTagOfArrayOfScenicareaImgsModelyARIwIRA>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.