Hi,
No problem to return a string or an object from a resolver, but when I try to return something different, like a Blob, I receive nothing.
// resolvers/index.js
const resolver = new Resolver();
resolver.define('getBlob', async (req) => {
const data = new Blob(['Test']);
return data;
});
resolver.define('getObject', (req) => {
const data = { test: 'what' };
return data;
});
// frontend/index.jsx
const myBlob = await invoke('getBlob')
console.log(myBlob);
const myObject = await invoke('getObject')
console.log(myObject);
In the console, myBlob is empty and myObject is okay:
Any idea of what I am doing wrong?
Thanks for your help!