All Components

encodeBase64

Encodes the provided string as Base64-encoded data.

import { encodeBase64 } from '@progress/kendo-file-saver';

console.log(encodeBase64("Hello World!"));

Parameters

plainText string

The plain text to encode. Might contain UTF-8 symbols.

Returns

string—The Base64-encoded string.

In this article