Creating tar in buffer through libarchive and streaming it .
Hi,
I want to create tar stream in buffer one by one and stream it as soon as some bytes are available to send.Whether libarchive support this.
For example I cannot create full tar file in disk or ram.
I need to open a tar stream due to this.
I have buffer of size 1024 bytes and I have 4 file of 2048 bytes.
I want to create a tar stream but at a time my buffer can hold only 1024 bytes so i will read that much byte and flush it again next.
Can any body help on this?
|