.NET Components
Chilkat .NET Components for Email, Zip Compression, Encryption, XML, S/MIME, and Character Encoding Conversion

Back to Xml Class Summary

Xml::SetBinaryContent

Sets the node's content to a block of binary data with optional Zip compression and/or AES encryption. The binary data is automatically converted to base64 format whenever XML text is generated. If the zipFlag is True, the data is first compressed. If the encryptFlag is True, the data is AES encrypted using the Rijndael 128-bit symmetric-encryption algorithm.

  Declarations  
    [Visual Basic]
Public Function SetBinaryContent(ByVal contentData() As Byte , ByVal Boolean zipFlag , ByVal Boolean encryptFlag , ByVal String password) As Boolean

[C#]
public bool SetBinaryContent(byte[] contentData , bool zipFlag , bool encryptFlag , string password);

[C++]
public bool SetBinaryContent(unsigned char __gc[] contentData , bool zipFlag , bool encryptFlag , String *password);

[JScript]
public function SetBinaryContent(Byte[] contentData , Boolean zipFlag , Boolean encryptFlag , String password) : Boolean
 
  Parameters  
   
contentData
A byte array containing data that will be the XML node's content.
zipFlag
Set to True if the data should be Zip compressed
encryptFlag
Set to True if the data should be AES encrypted
password
If encryptFlag is true, this must be provided as the password for the AES encryption.
 

Copyright 2002, Chilkat Software, Inc. All Rights Reserved.