aluigi wrote:Maybe I will provide some examples when 0.8.5 is out.
That would be very nice... Thx let us know pls
aluigi wrote:Maybe I will provide some examples when 0.8.5 is out.
Code: Select all
POST http://localhost:12345/quickbms_compression?algo=zlib&decompressed_size=12345
aluigi wrote:Anyway I think the only way is releasing quickbms as a dll otherwise there is no practical way to use its functions.
And currently I don't plan to do that since it requires the release of another file (the big dll) and so on, I simply needed something that required zero effort from my side.
Exist also other possible IPC solutions that may be easier to implement and I'm interested in your feedback.
For example an option can be a TCP socket or (even better) a local webserver that can be used by any program for performing the work likeCode: Select all
POST http://localhost:12345/quickbms_compression?algo=zlib&decompressed_size=12345
input provided as binary content of the POST request and the decompressed data as content of the answer.
the decompressed size is necessary for most of the compression algorithms, "decompressed_size" is just an example of name, "size" or "output_size" would be good too (maybe all of them, since input size is implicit in POST).
That would be 100% independent by programming language, OS and even system since 127.0.0.1 can be replaced by all the interfaces.
Is it easy for you to call web API from .NET?
aluigi wrote:Just to confirm that the web IPC is slow indeed and also prone to timeouts due to the time necessary to perform some compressions.
Anyway now it's there and it's something funny that may be useful for the future.
Currently it implements compression, encryption and execution/testing of both an input script and input file.
Error: the script uses more array indexes (7000) than supported (7000)