You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to debug why my example stuck on processing and found this code in library sources:
/** * Retrieve the URL and type of a media source * @param {string|RawSource} source */constgetMetadata=async(page,id,source)=>{letdatalettypeif(typeofsource==='string'){// Source is a path. Read into a new buffer.data=fs.readFileSync(source,'base64')constextension=source.substring(source.indexOf('.')+1)type=mime.getType(extension)}else{// Source is an object of the form {type: string, data: Buffer}data=source.data.toString('base64')type=source.type}// Prepend base64 headerurl=`data:${type};base64,${data}`return{ url, type }}
As I can see files are just loaded as base64 strings to memory, correct? So it is not possible to use etro-node with large files or multiple input sources?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I was trying to debug why my example stuck on processing and found this code in library sources:
As I can see files are just loaded as base64 strings to memory, correct? So it is not possible to use etro-node with large files or multiple input sources?
Thanks in advance!
The text was updated successfully, but these errors were encountered: