menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Encoder - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Encoder

    Class to encode/decode messages in qouted printable and base64 formats.

    Inheritance
    System.Object
    Encoder
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.MIME.Base.Utilities
    Assembly: Syncfusion.MIME.Base.dll
    Syntax
    public class Encoder

    Constructors

    Encoder()

    Declaration
    public Encoder()

    Properties

    Charset

    Name of Charset for quoted printable encoding.

    Declaration
    public static string Charset { get; set; }
    Property Value
    Type
    System.String

    Methods

    DecodeBase64(String)

    decodes incomming string from base64 format.

    Declaration
    public static string DecodeBase64(string message)
    Parameters
    Type Name Description
    System.String message

    message to decode

    Returns
    Type Description
    System.String

    decoded string

    DecodeBinHex(Stream, Stream)

    method to decode BinHex data.

    Declaration
    public static int DecodeBinHex(Stream reader, Stream writer)
    Parameters
    Type Name Description
    System.IO.Stream reader

    data to decode.

    System.IO.Stream writer

    stream to write decoded data.

    Returns
    Type Description
    System.Int32

    number of decoded bytes.

    DecodeQP(String)

    Decodes message from quoted printable format.

    Declaration
    public static string DecodeQP(string message)
    Parameters
    Type Name Description
    System.String message

    message to decode

    Returns
    Type Description
    System.String

    decoded string

    DecodeQP(String, String)

    decodes message in quoted printable format with define dcharset

    Declaration
    public static string DecodeQP(string message, string charset)
    Parameters
    Type Name Description
    System.String message

    message to dencode

    System.String charset

    charset to use in decoding

    Returns
    Type Description
    System.String

    decoded string

    EncodeBase64(Stream)

    encodes stream to base64 string

    Declaration
    public static string EncodeBase64(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    stream to encode

    Returns
    Type Description
    System.String

    encoded stream

    EncodeBase64(String)

    encodes string to base64 strin

    Declaration
    public static string EncodeBase64(string message)
    Parameters
    Type Name Description
    System.String message

    message to encode

    Returns
    Type Description
    System.String

    encoded string

    EncodeBinHex(Stream, Stream)

    method to encode data to BinHex format and write it to stream.

    Declaration
    public static int EncodeBinHex(Stream stream, Stream toWrite)
    Parameters
    Type Name Description
    System.IO.Stream stream

    stream contains data data to encode.

    System.IO.Stream toWrite

    stream to write to.

    Returns
    Type Description
    System.Int32

    number of written bytes.

    EncodeQP(String)

    encodes message to quoted printable format

    Declaration
    public static string EncodeQP(string message)
    Parameters
    Type Name Description
    System.String message

    message to encode

    Returns
    Type Description
    System.String

    quoted printable string

    EncodeQP(String, String)

    encodes message in defined charset to quoted printable format

    Declaration
    public static string EncodeQP(string message, string charset)
    Parameters
    Type Name Description
    System.String message

    massage to encode

    System.String charset

    charset of message

    Returns
    Type Description
    System.String

    quoted printable string

    ToBase64(Stream, Int32, Stream)

    Save data in b64 encoding.

    Declaration
    public static void ToBase64(Stream stream, int bufferEnlarge, Stream data)
    Parameters
    Type Name Description
    System.IO.Stream stream

    stream to write to

    System.Int32 bufferEnlarge

    number to enlarge reading buffer to.

    System.IO.Stream data

    data to save.

    UUDecode(Stream, Stream)

    method to decode UU encodd file.

    Declaration
    public static int UUDecode(Stream reader, Stream writer)
    Parameters
    Type Name Description
    System.IO.Stream reader

    stream to decode data from.

    System.IO.Stream writer

    stream to write.

    Returns
    Type Description
    System.Int32

    name of decoded file

    UUEncode(String, Stream, Stream)

    method to encode data to UU encoding and write it to stream.

    Declaration
    public static void UUEncode(string fileName, Stream stream, Stream streamToWrite)
    Parameters
    Type Name Description
    System.String fileName

    name of file to encode.

    System.IO.Stream stream

    file

    System.IO.Stream streamToWrite

    stream to write to.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved