Last piece for the showcase.
const [fileHandle] = await showOpenFilePicker()
const file = await fileHandle.getFile()
const compressed = file.stream().pipeThrough(new CompressionStream('gzip'))
await fetch('http://localhost:3002/upload', {
method: 'POST',
body: compressed,
})