C# Class WizardWrx.Core.ByteArrayBase64Converters

This static class exposes methods that efficiently encode binary data as Base64 byte arrays and converts such byte arrays into binary data in the form of a new byte array or binary data written into a disk file.
Mostrar archivo Open project: txwizard/WizardWrx_NET_API

Public Methods

Method Description
Base64DecodeByteArray ( Array pabytBase64Characters ) : byte[]

Decode a byte array that represents a set of Base64 encoded characters, returning a new byte array containing their decoded representation.

Base64DecodeByteArray2File ( string pstrFileName, Array pabytBase64Characters ) : void

Decode byte array pabytBase64Characters and write the decoded bytes into file pstrFileName.

Base64EncodeBinaryFile ( string pstrInputFileName ) : byte[]

Read an input file into a byte array of Base64 encoded characters that represents its contents in a form that can be included in a MIME encoded email message.

Method Details

Base64DecodeByteArray() public static method

Decode a byte array that represents a set of Base64 encoded characters, returning a new byte array containing their decoded representation.
public static Base64DecodeByteArray ( Array pabytBase64Characters ) : byte[]
pabytBase64Characters Array /// Pass in a reference to the array of Base64 encoded bytes to be /// decoded and returned. ///
return byte[]

Base64DecodeByteArray2File() public static method

Decode byte array pabytBase64Characters and write the decoded bytes into file pstrFileName.
public static Base64DecodeByteArray2File ( string pstrFileName, Array pabytBase64Characters ) : void
pstrFileName string /// Specify the name (absolute or relative to the current working /// directory) of the file into which to write the decoded bytes /// represented by . ///
pabytBase64Characters Array /// Pass in a reference to the array of Base64 encoded bytes to be /// decoded and saved into file . ///
return void

Base64EncodeBinaryFile() public static method

Read an input file into a byte array of Base64 encoded characters that represents its contents in a form that can be included in a MIME encoded email message.
public static Base64EncodeBinaryFile ( string pstrInputFileName ) : byte[]
pstrInputFileName string /// Pass in the absolute or relative (to the Current Working Directory) /// name of the file to read and encode into a byte array that represents /// the Base64 encoded characters. ///
return byte[]