Method GetTempFile
GetTempFile(String, String, String)
Download temporary file as stream
Declaration
Stream GetTempFile(string connectionId, string fileId, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | fileId | The file id |
System.String | contentType | The content type to return. Default value: application/octet-stream |
Returns
Type | Description |
---|---|
System.IO.Stream | Temporary file stream |
Remarks
Used for direct HTTP download. Cannot be called directly via the API because no valid XML / JSON ticket is sent back here. Only support from IE 9.0 and newer.
Examples
Example for download temporary file as stream.
GET http://YourServerName/InfoShare/Json/File/GetTempFile?connectionId=4134c72d-939a-4f08-976c-58450254b5e7&fileId=4134c72d-939a-4f08-976c-58450254b5e7&contentType=application/octet-stream
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) |