Net Encryption Library
BytesToQuotedPrintable Method
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class : BytesToQuotedPrintable Method
The bytes to encode
Encode bytes to a quoted printable string
Syntax
'Declaration
 
Public Function BytesToQuotedPrintable( _
   ByVal bytes() As System.Byte _
) As System.String
'Usage
 
Dim instance As Encryption
Dim bytes() As System.Byte
Dim value As System.String
 
value = instance.BytesToQuotedPrintable(bytes)
public System.string BytesToQuotedPrintable( 
   System.byte[] bytes
)
public function BytesToQuotedPrintable( 
    bytes: System.Bytearray of
): System.String; 
public function BytesToQuotedPrintable( 
   bytes : System.byte[]
) : System.String;
public: System.string* BytesToQuotedPrintable( 
   System.byte[]* bytes
) 
public:
System.String^ BytesToQuotedPrintable( 
   System.array<byte>^ bytes
) 

Parameters

bytes
The bytes to encode

Return Value

Quoted Printable String OR string.emtpy on error
Example
Encryption encryption = new Encryption(); //Trial Mode
//Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
 
byte[] bytes = new byte[255];
 
for (int i = 0; i < 255; i++)
    bytes[i] = (byte) i;
 
string quotedPrintable = encryption.BytesToQuotedPrintable(bytes);
 
Console.WriteLine(quotedPrintable);
Dim encryption As New Encryption() 'Trial Mode
'Dim encryption As New Encryption("place user name here", "place license key here") 'License Mode
 
Dim bytes(254) As Byte
 
For i As Integer = 0 To 254
    bytes(i) = CByte(i)
Next i
 
Dim quotedPrintable As String = encryption.BytesToQuotedPrintable(bytes)
 
Console.WriteLine(quotedPrintable)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Encryption Class
Encryption Members