-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error when reading LZ4 compressed files from R #25
Comments
I believe LZ4 and LZ4_HC formats are supported through Blosc.jl. We can consider adding support for those formats here as future work if there is demand for it. |
Just tested it. It doesn't work. Not straight out of the box anyway. https://discourse.julialang.org/t/can-blosc-jl-only-decompress-content-that-it-has-compressed/31141 |
I might be able to find some time next week to look into implementing the other formats here. I'll get back to you then. |
Sorry I didn't get back to you sooner. I've resurrected the header files from an earlier version of this package, but I still need to test them and get them wrapped up as TranscodingStreams. Hopefully I'll have a working version up in the next week or so. |
I've got a couple of the other functions working #26. If I've read the R code correctly, Let me know if that works for you. |
I still the same error. To produce
xc = sample(10:20, 1e6, replace = TRUE)
x <- writeBin(xc, raw())
xc1= qs::lz4_compress_raw(x, 1)
writeBin(xc1, "c:/data/ok.io")
# R works
qs::lz4_decompress_raw(xc1) and then in 2) Julia do and all of the options I tried failed a = open("c:/data/ok.io", "r")
ar = read(a)
hehe = transcode(LZ4FrameDecompressor, ar) # fails
hehe = transcode(LZ4SafeDecompressor, ar) # fails
hehe = lz4_decompress(ar) #fails Any ideas? |
I use R's fst to compress vectors into LZ4.
But I get the below when I try to
fnl_res = transcode(LZ4Decompressor, compressed_chunk)
reading the README and this thread python-lz4/python-lz4#143 indicates that CodecLz4.jl uses the Frame format but not the standard LZ4 or LZ4_HC formats.Is there any possibility of adding support for them?
The text was updated successfully, but these errors were encountered: