The url from which to fetch the file.
Headers are key value pairs spread to override headers sent in request.
The file as a Base64 string.
const file = await getDataFromFile('https://example.com/file.zip');
const file = await getDataFromFile('https://example.com/file.zip', {
authorization: 'Bearer AbCdEf123456',
});
const contents = await downloadFile(file);
Generated using TypeDoc
Fetchs a URL and returns the response body as a base64 string.