multilevel-http binary problem
✓ Published0🌍 Public
Aalessioalex
Last edited Nov 4, 2013
Created on Nov 4, 2013
This example demonstrates a binary data integrity test for a multilevel-http client-server setup, comparing SHA-1 hashes of content stored and retrieved through both the client and the local LevelDB database. It uses Node.js streams (fstream, tar.Pack, zlib.createGzip) to pack and compress a directory into a buffer, then stores the buffer via multilevel’s HTTP client and directly via the LevelDB `db.put` API. After retrieval, `crypto.createHash` computes and logs matching hashes, verifying binary round-trip fidelity across both access paths.
AI-generated description