@alextheman/utility - v4.3.5
    Preparing search index...

    Function convertFileToBase64

    • Asynchronously converts a file to a base 64 string

      Parameters

      • file: File

        The file to convert.

      Returns Promise<string>

      A promise that resolves to the encoded base 64 string.

      If the file reader gives an error.