• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Base64

Provides Base64 encoding and decoding (RFC 2045 §6.8). The decode method is tolerant of embedded whitespace (CRLF, spaces) as permitted in MIME bodies.

Inheritance
object
Base64
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Rfc.Shared
Assembly: DRIT.Mail.dll
Syntax
public static class Base64

Methods

View Source

Decode(string)

Decodes a Base64 string to binary data. Whitespace characters (space, tab, CR, LF) within the input are silently skipped, as permitted by RFC 2045 §6.8. Malformed input is handled gracefully.

Declaration
public static byte[] Decode(string text)
Parameters
Type Name Description
string text

Specifies the text value.

Returns
Type Description
byte[]
View Source

Encode(byte[])

Encodes binary data to a Base64 string without line wrapping.

Declaration
public static string Encode(byte[] data)
Parameters
Type Name Description
byte[] data

The data to process.

Returns
Type Description
string
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX