Converts a file from a URL to base64 format
The URL of the file to convert
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); Copy
const { base64 } = await fileUrlToBase64('https://example.com/document.pdf');console.log(base64);
Converts a file from a URL to base64 format