WriteTo Procedure
Writes the data to HttpContent.
Overloads
Name | Description |
---|---|
WriteTo(HttpContent) | Writes the data to HttpContent. |
WriteTo(JsonArray) | Gets the data as a JsonArray. |
WriteTo(JsonObject) | Gets the data as a JsonObject. |
WriteTo(JsonToken) | Gets the data as a JsonToken. |
WriteTo(OutStream) | Writes the data to OutStream. |
WriteTo(Text) | Gets the data as plain text. |
WriteTo(Text; Integer) | Gets the data as plain text, with a provided maximum length. |
WriteTo(Text; TextEncoding) | Gets the data as plain text, encoded with a provided encoding. |
WriteTo(Text; TextEncoding; Integer) | Gets the data as plain text, encoded with a provided encoding and maximum length. |
WriteTo(HttpContent) Procedure
Writes the data to HttpContent.
Signature
[NonDebuggable]
WriteTo(var Content: HttpContent)
Parameters
var Content
HttpContent
The HttpContent where the data will be saved.
WriteTo(JsonArray) Procedure
Gets the data as a JsonArray.
Signature
[NonDebuggable]
WriteTo(var Arr: JsonArray)
Parameters
var Arr
JsonArray
The JsonArray that will be filled with the BLOB Data.
WriteTo(JsonObject) Procedure
Gets the data as a JsonObject.
Signature
[NonDebuggable]
WriteTo(var Object: JsonObject)
Parameters
var Object
JsonObject
The JsonObject that will be filled with the BLOB Data.
WriteTo(JsonToken) Procedure
Gets the data as a JsonToken.
Signature
[NonDebuggable]
WriteTo(var Token: JsonToken)
Parameters
var Token
JsonToken
The JsonToken that will be filled with the BLOB Data.
WriteTo(OutStream) Procedure
Writes the data to OutStream.
Signature
WriteTo(var OS: OutStream)
Parameters
var OS
OutStream
Tha OutStream that the data will be saved to.
WriteTo(Text) Procedure
Gets the data as plain text.
Signature
[NonDebuggable]
WriteTo(var String: Text)
Parameters
var String
Text
The Text variable that will be filled with the BLOB Data.
WriteTo(Text; Integer) Procedure
Gets the data as plain text, with a provided maximum length.
Signature
[NonDebuggable]
WriteTo(var String: Text; MaxLength: Integer)
Parameters
var String
Text
The Text variable that will be filled with the BLOB Data, with the provided maximum length.
MaxLength
Integer
The maximum text length to return.
WriteTo(Text; TextEncoding) Procedure
Gets the data as plain text, encoded with a provided encoding.
Signature
[NonDebuggable]
WriteTo(var String: Text; Encoding: TextEncoding)
Parameters
var String
Text
The Text variable that will be filled with the BLOB Data, encoded with the provided encoding.
Encoding
TextEncoding
The encoding that will be used when the text is read from the Blob stream.
WriteTo(Text; TextEncoding; Integer) Procedure
Gets the data as plain text, encoded with a provided encoding and maximum length.
Signature
[NonDebuggable]
WriteTo(var String: Text; Encoding: TextEncoding; MaxLength: Integer)
Parameters
var String
Text
The Text variable that will be filled with the BLOB Data, encoded with the provided encoding and maximum length.
Encoding
TextEncoding
The encoding that will be used when the text is read from the Blob stream.
MaxLength
Integer
The maximum text length to return.
Remarks
Due to a bug in runtime (in the InStream.Read(<text>,<integer>)
function) it is only possible to
read up to the first 1000000 characters if the text is encoded as UTF8 or UTF16.
As a workaround, in these circumstances this function reverts to reading all characters and then just returns the first selected characters. This might have a negative performance impact.
This documentation is generated from Smart Toolbox v27.0