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
Is it somehow possible to load .wasm and .data file from URL.createObjectURL? I'm working on the offline app and I need to store wasm and data file as base64 file locally.
If it's not possible, would it be possible to support it? For instance SQL.js supports a locate function.
const SQL = await initSqlJs({
// Required to load the wasm binary asynchronously. Of course, you can host it wherever you want
// You can omit locateFile completely when running in node
locateFile: file => `https://sql.js.org/dist/${file}`
});
// and you can turn it into
const SQL = await initSqlJs({
locateFile: file => URL.createObjectURL(blob)
});
// which works well.
Thank you in advance.
Best, Martin
The text was updated successfully, but these errors were encountered:
Hi :)
Is it somehow possible to load
.wasm
and.data
file fromURL.createObjectURL
? I'm working on the offline app and I need to store wasm and data file as base64 file locally.I've edited your example a bit:
but I'm getting XMLHttpRequest errors.
If it's not possible, would it be possible to support it? For instance SQL.js supports a locate function.
Thank you in advance.
Best, Martin
The text was updated successfully, but these errors were encountered: