Open davepar opened 3 weeks ago
Thanks for the report. This isn't a know limitation, and as far as I'm aware should work.
Reproduced with Node 18-22 and Bun
I resolved this issue by using new Blob([fileBuffer], { type: 'application/x-gzip' })
to set the Blob type.
In Node v22, when I try to load an in memory database with {loadDataDir:) where the file is a gzip file created from .dumpDataDir('gzip'), I get
Error: File is corrupted.
When I unzip the file on the command line into a directory, and then load that directory with loadDataDir, it works fine.
If that's a known limitation, it would be nice to have it documented. Thanks!
To reproduce:
And then: