Comments (5)
Cool, you're right! For me it was also surprise that file is zero. No problem, my fault. :) Thanks for help!
from easycompressor.
Hi @LexaGV,
No, it has nothing to do with .NET 4.8 and Nobody has said that .NET 4.8 is obsolete ;) (even Microsoft itself)
This package uses Brotli.NET as underlying, and as you can see from its Github repository it's discontinued and it will no longer be developed and maintained. (more than 3 years ago)
So I also decided not to develop and maintain EasyCompressor.BrotliNET
anymore.
from easycompressor.
- Untile now
EasyCompressor.BrotliNET
(v2.0.2) code base is the same as main line. EasyCompressor.BrotliNET
depends on these two packages:
Brotli.NET (>= 2.1.1) - (Github)
EasyCompressor (>= 2.0.2)
from easycompressor.
Thanks, Mohammad! Only now got full pic - Brotli.NET is needed (not explained in ReadMe). But after I assembled full app (including native lib brolib_x64.dll
), I got even worse result:
System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Argument bytes must be not empty.
Parameter name: bytes
at EasyCompressor.Guard.ThrowIfNullOrEmpty[T](IEnumerable`1 enumerable, String paramName) in /_/src/EasyCompressor/Utilities/Guard.cs:line 68
at EasyCompressor.BaseCompressor.Compress(Byte[] bytes) in /_/src/EasyCompressor/Compressors/Base/BaseCompressor.cs:line 72
I guess this error happen even before running into Brotli.NET. Can you please look at it? I try to use Brotli compressor (as one of the fastest), but fail so far. :(
My demo code is simple:
var compressor = BrotliNETCompressor.Shared;
Parallel.ForEach(... on each file in folder...)
{
smth = compressor.Compress(data);// data is byte[]
}
BrotliNETCompressor.Shared
declared as thread safe, but... can I use one instance for all threads?! (theoretically I should!)
from easycompressor.
Yes, the Shared
instance is thread-safe and you can use this among all your threads.
About the error, as it explains your byte array is empty, I guess one of your files is empty. (size of zero bytes)
Please make sure about it and if the error has remained create a reproducible sample and send it here.
from easycompressor.
Related Issues (9)
- EasyCompressor and EasyCaching HOT 1
- How to decompress a .tar.lz4
- Throttling Compression Operation? HOT 1
- Crash in compressor for larger objects? HOT 3
- Incompatibility Issue Between EasyCompressor Versions 1.4.0 and 2.0.2 Resulting in Corrupted Pickle (LZ4) HOT 2
- Arithmetic operation resulted in an overflow. HOT 6
- Possibly add ZPAQ or other compressors? HOT 4
- Brotli,Deflate,GZIP closes stream too early. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easycompressor.