MCPcopy Index your code
hub / github.com/mudler/LocalAI / filesToBase64Array

Function filesToBase64Array

core/http/static/image.js:16–23  ·  view source on GitHub ↗
(fileList)

Source from the content-addressed store, hash-verified

14
15// Helper function to read multiple files
16async function filesToBase64Array(fileList) {
17 const base64Array = [];
18 for (let i = 0; i < fileList.length; i++) {
19 const base64 = await fileToBase64(fileList[i]);
20 base64Array.push(base64);
21 }
22 return base64Array;
23}
24
25function genImage(event) {
26 event.preventDefault();

Callers 1

promptDallEFunction · 0.85

Calls 2

fileToBase64Function · 0.70
pushMethod · 0.45

Tested by

no test coverage detected