Returns binary data from images or word documents.
Syntax
Smartsite SXML | Copy Code |
---|---|
<se:binary /> |
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
ContentDisposition | Enum | - | Gets or sets the ContentDisposition mode that is set on the output stream. |
Data | DataTable |
Default
|
Sets the data. |
Field | String |
Trim
|
Sets the name of the field to load. |
FileName | String | - | Sets the file name that will be set as the content disposition filename. |
Item | Locator | - | Sets the item in which the binary data is located. |
MimeType | String | - | Sets the mime type that will be set for the response. |
Streaming | Boolean | - | Sets if this macro should stream the binary data to the output stream (which is faster and consumes less memory) or use the default SXML flow (which is slower). |
WriteResponseHeaders | Boolean | - | Sets a value indicating whether to write response headers. |
Shared Parameters
Local Viper Methods
Viper | Extension | Description |
---|---|---|
This.ClearForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
This.SetForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |