CreaSign

XmlData.SetEmbeddedData Method 

Stores the provided data in the XmlData object.

[Visual Basic]
Public Sub SetEmbeddedData( _
   ByVal EmbeddedData As Object, _
   ByVal MimeType As String, _
   ByVal Encoding As String _
)

Parameters

EmbeddedData
The data that should be stored into the data object.
MimeType
The mime type of the data that is being added to the object. See the Remarks section.
Encoding
The encoding type of the data that is being added to the object. See the Remarks section.

Remarks

The following types of source data are supported.
EncodingMimeTypeDescription
base64(any value)The data is base64 encoded. The following types of data are supported: a byte array, a Data object or a custom object that implements the IStream interface.
(not specified)text/xml or any other XML mime typeThe data should be an XML document or node. The following types of data are supported: a Data object, an IXmlDomElement, a string, a byte array or a custom object that implements the IStream interface.
(not specified)text/plainThe type of data should be a string.
(not specified)(not specified)See the table below.

 

When MimeType and Encoding are not specified data is handled as shown in the next table.

Source data typeDescription
A string The data is handled as a plain text.
An XML elementThe data is handled as an XML (IXMLDomElement).
A byte arrayThe data is handled as a stream of bytes. It is base64 encoded before it is added to the XML.
A Data objectThe data is handled as a Data object.
A custom object that implements the IStream interfaceThe data is handled as a custom object.

Some of the objects that implement the IStream  interface:  ASP Request object, ASP Response object, ADO stream. 

This methods sets the DataType to DataTypeEmbedded.

Requirements

Requires CreaSign Pro (not supported by CreaSign Lite).

See Also

XmlData Class | CreaSign Namespace


Send comments on this topic.

(c) CREA 2002-2007 www.creasign.si