I have a binary stream (generated HTML UTF-8 file of potentially large size adapted from a generator), and I was looking for the best way to send that from the renderer process to the parent process. Currently, I’m considering using IPC, but considering it’s just a raw binary data stream, that would be highly inefficient, and I’d prefer to avoid native modules to accomplish this.
Since its an HTML file I presume you can’t process it until the whole thing is generated right? In that case write it out to disk and send the path via IPC.
After it’s generated, it’s being sent directly to a ZIP file among other things that the renderer already knows, because no further processing is needed. I was hoping to avoid the overhead of either serialization or double processing, but alas, I may need to just use a temp file for that.