Open ecc521 opened 3 years ago
I'm in 2024, and have the same question. I tried "reader.readAsArrayBuffer" and also "reader.readAsDataURL" as base64, but none worked.
Did you had any success?
Made this one and worked!
window.resolveLocalFileSystemURL(fullPath, function(entry) { var contentType = getContentType(fullPath); webserver.sendResponse( request.requestId, { status: 200, path: entry.toURL().replace(/^file:\/\//, ''), // REMOVING FILE:// FROM PATH! headers: { 'Content-Type': contentType } } ); }
Is there any way to send binary data (like images) using this plugin? It appears that only text is supported (sending an arrayBuffer resulted in sigterm)