contract/lib/CryptoKeyUtil.js
/**
   * Function to encode file content data to base64 encoded string.
   * Convert binary data to base64 encoded string.
   * https://stackabuse.com/encoding-and-decoding-base64-strings-in-node-js/
   * @param {*} bitmap 
   */
Function to encode file content data to base64 encoded string.
Convert binary data to base64 encoded string.
Function to encode file content data to base64 encoded string . Convert binary data to base64 encoded string .
static base64Encode(bitmap) {
    let buff = Buffer.from(bitmap);
    return buff.toString(BASE64);
  }
static base64Encode ( bitmap ) { let buff = Buffer . from ( bitmap ) ; return buff . toString ( BASE64 ) ; }
Function to encode file content data to base64 encoded string.
Function to encode file content data to base64 encoded string .