POST api/Platform/Broadcast/Image/Add

上传一个公告影印图片。

Request Information

URI Parameters

None.

Body Parameters

PlatformBroadcastImageUploadParm
NameDescriptionTypeAdditional information
BroadcastId

公告的ID。

integer

Required

PageIndex

页的序号。同时也是浏览的顺序。

integer

Required

ScanImage

图片文件内容,最大不能超过2M。

Collection of byte

Required

Max length: 2097152

Request Formats

application/json, text/json

Sample:
{
  "BroadcastId": 1,
  "PageIndex": 2,
  "ScanImage": "QEA="
}

application/xml, text/xml

Sample:
<PlatformBroadcastImageUploadParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter">
  <BroadcastId>1</BroadcastId>
  <PageIndex>2</PageIndex>
  <ScanImage>QEA=</ScanImage>
</PlatformBroadcastImageUploadParm>

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

上传一个公告影印图片。

CommonOperationResultWithTagOfInt64
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

string

None.

tag

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": 3
}

application/xml, text/xml

Sample:
<CommonOperationResultWithTagOflong 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>3</tag>
</CommonOperationResultWithTagOflong>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.