Hi!
Can multiple files be compressed into one gzip? How can I do it? I've tried several things, for example:
With that I get 0 byte file.
I've also tried OpenInput for the file to compress (it has more sense to me since I'm not writing there) but I got errors (wrapinputstream returns an inputstream, thing I don't get it because I need an outputstream to write the file, right?)
Thank you!
PS: gzip or any format would do it.
Can multiple files be compressed into one gzip? How can I do it? I've tried several things, for example:
B4X:
Dim compress As CompressedStreams
.
.
.
out1=File.OpenOutput("",sFile,False)
out = File.Openoutput("", sc, True)
out=compress.WrapoutputStream(out1,"gzip")
WriteStringToStream(out, s)
With that I get 0 byte file.
I've also tried OpenInput for the file to compress (it has more sense to me since I'm not writing there) but I got errors (wrapinputstream returns an inputstream, thing I don't get it because I need an outputstream to write the file, right?)
Thank you!
PS: gzip or any format would do it.