Method DownloadTempFileBytes
DownloadTempFileBytes(String, String, Int64, Int32)
Download temporary file as byte array
Declaration
byte[] DownloadTempFileBytes(string connectionId, string fileId, long from, int count)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | fileId | The file id |
System.Int64 | from | Optional: Start byte for reading. -1: start from the beginning |
System.Int32 | count | Optional: Number of bytes to read. -1: read all bytes |
Returns
Type | Description |
---|---|
System.Byte[] | some bytes from temporaray file |
Examples
POST http://YourServerName/InfoShare/Json/File/DownloadTempFileBytes
Example for download temporary file as byte array.{
"connectionId": "7f216182-21c8-497e-a036-7d2bcb6a1b37",
"fileId": "335da2cf-3d0f-4614-8091-3dc0c7766492",
"from": -1,
"count": -1
}
Response:
data:application/json;base64,eyJEb3dubG9hZFRlbXBGaWxlQnl0ZXNSZXN1bHQiOlszNyw4MCw2OCw3MCw0NSw0OSw0Niw1MywxMywxMCwzNywxOTEsMjQ3
LDE2MiwyNTQsMTMsMTAsNTQsMzIsNDgsMzIsMTExLDk4LDEwNiwxMyw2MCw2MCw0Nyw3NiwxMDUsMTEwLDEwMSw5NywxMTQsMTA1LDEyMiwxMDEsMTAwLDMyLDQ5L
DQ3LDc2LDMyLDQ5LDUzLDU1LDQ5LDUyLDUwLD ....
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | File {0} not available (10143) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |