Table of Contents

ToUrlEncodedBase64String Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/ByteExtensions.cs

ToUrlEncodedBase64String(byte[])

Encodes a byte array into its equivalent string representation using base 64 digits, which is usable for transmission on the URL.

public static string ToUrlEncodedBase64String(this byte[] bytes)

Parameters

bytes byte[]

The byte array to extend.

Returns

string

The string containing the encoded token if the byte array length is greater than one; otherwise, an empty string ("").