Skip to main content
Skip table of contents

Base64

Base64 Public class

Description

A utility class to perform base64 encoding and decoding as specified in RFC-1521. See also RFC 1421.

        @version     $Revision: 1.4 $

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.xmp.impl
  iTextSharp.xmp.impl.Base64[[Base64]]
  end

Members

Methods

Public Static methods
ReturnsName
byte``[]Decode(...)
Decode the given byte[].
byte``[]Encode(...)
Encode the given byte[].

Details

Summary

A utility class to perform base64 encoding and decoding as specified in RFC-1521. See also RFC 1421.

        @version     $Revision: 1.4 $

Constructors

Base64
public Base64()

Methods

Encode [1/3]

Source code

public static byte Encode(byte[] src)
Arguments
TypeNameDescription
byte``[]srcthe source string.
Summary

Encode the given byte[].

Returns

the base64-encoded data.

Encode [2/3]

Source code

public static byte Encode(byte[] src, int lineFeed)
Arguments
TypeNameDescription
byte``[]srcthe source string.
intlineFeeda linefeed is added after ...
Summary

Encode the given byte[].

Returns

the base64-encoded data.

Encode [3/3]

Source code

public static string Encode(string src)
Arguments
TypeNameDescription
stringsrcthe source string.
Summary

Encode the given string.

Returns

the base64-encoded string.

Decode [1/2]

Source code

public static byte Decode(byte[] src)
Arguments
TypeNameDescription
byte``[]srcthe base64-encoded data.
Summary

Decode the given byte[].

Returns

the decoded data.

Decode [2/2]

Source code

public static string Decode(string src)
Arguments
TypeNameDescription
stringsrcthe base64-encoded string.
Summary

Decode the given string.

Returns

the decoded string.

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.