Encodes a Buffer into a URL-safe Base64 string.
This function uses a standard Base64 encoding and then replaces '+' with '-', '/' with '_', and removes trailing '=' padding to make the result safe for use in URLs and file names.
The Buffer to encode.
The URL-safe Base64 string.
Error If Base64 encoding fails.
Encodes a Buffer into a URL-safe Base64 string.
This function uses a standard Base64 encoding and then replaces '+' with '-', '/' with '_', and removes trailing '=' padding to make the result safe for use in URLs and file names.