Moeen Chat Service - v1.0.0
    Preparing search index...
    • Converts a file from a URL to base64 format

      Parameters

      • url: string

        The URL of the file to convert

      Returns Promise<{ base64: string; mimeType: string }>

      Promise that resolves to the base64 string and the mime type of the file

      const { base64 } = await fileUrlToBase64('https://example.com/document.pdf');
      console.log(base64);