wodMailbox ActiveX Control - Base64Data Method
      
 

Description

Decodes byte array encoded with Base64Data encoding.


Return Type

None  


Syntax

object.Base64Data InData(), OutData()



The Base64Data Method syntax has these parts:

Part Description
object An expression evaluating to an object of type Decoder.
InData() Required. An byte array. Holds array of data that will be decoded.
OutData() Required. An empty byte array. Will be populated with new byte array with decoded data.

Remarks

Base64Data method will decode byte array (SAFEARRAY(unsigned char) for C++ users) specified in InData parameter and store it to new byte array specified in OutData parameter. BASE64 decoding will be used, no matter if InData is encoded using same algorithm or not. If InFile is invalid (for example different encoding), unexpected results may occur, but mostly invalid OutData will be created. If OutData parameter points to existing array, it will be destroyed.

No headers are read or used from current message object. If you want to save attachment, you should use Attachment.Save method instead.