You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Well, it does, and then it compares it to the output of the regular archiver
So what's the problem?
If the ZIP createdby CryptEncode() is decoded, isn't it clear what the problem is?
MQ has its own format!
Everything works if you create an archive from MQL5
But this archive is not unpackable with standard ZIP!!!
MQ has its own format!
Everything works if you create an archive from MQL5
But this archive is not unpacked with standard ZIP!!!
Michael, read Aleksander's post carefully:
ZIP archive is a whole structure, the function archives/unarchives an array, i.e. you should only put there an array that is ready to be de-archived.
Roughly speaking, it unarchives only the output of the archiving function.
I.e. there is no native format from MQ. Just what the CryptEncode function gives you is just a part of the zip archive, the rest you have to create yourself. But the problem is that not even parts of archives between standard zip archiver and CryptEncode match.
Anyway, waiting for Monday. Only MQ can give us the information we are missing.
Mikhail, read Alexander's post carefully:
So there is no proprietary format from MQ. Just what the CryptEncode function gives you is just a part of the zip archive, the rest you have to create yourself. But the problem is that not even parts of archives between standard zip archiver and CryptEncode match.
Anyway, we are waiting for Monday. Only MQ can give us the information we are missing.
So skip the Header and read only the data!
Google it = PKWare data compression library header
So what's the problem?
If the ZIP createdby CryptEncode() decodes, isn't it clear what the problem is?
here are some experiments I've done:
in the file: The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog
in file: The quick brown fox jumps over the lazy dog
on file: sdfgghghjdfggfghjghghghjk,g
Vasiliy!
MQL5 creates a ZIP without a header!
Consequently, it does not skip it when reading.
Googling = PKWare data compression library header
http://en.wikipedia.org/wiki/Zip_(file_format)
MQ has only one compression method, so
if a ZIP is using a different compression method, you will not be able to decompress it.
I.e. not all ZIP archives will be available to you!
MQ has its own output structure.
It cannot be "its own", otherwise it has nothing to do with ZIP at all.
The structures of the packed data will differ depending on the compression ratio, they cannot NOT differ. Consequently, CryptDecode must be somehow managed by a key which describes the particular compression ratio and other necessary parameters. Only MQ knows how to properly configure the key.
Vasiliy!
MQL5 creates a ZIP without a header!
Mikhail, you need to understand what you are talking about. The problem is not with the header or the file format. Carefully read this article.
It cannot be "its own", otherwise it has nothing to do with ZIP at all.
The structures of the packed data will differ depending on the compression ratio, they cannot NOT differ. Consequently, CryptDecode must be somehow managed by a key which describes the specific compression ratio and other parameters. Only MQ knows how to properly configure the key.
Mikhail, you need to understand what the problem is. The problem is not with the header or the file format. Read the thread carefully.
Then correctly state what you want.
At the beginning of your thread you have the code.
You read the archive in its entirety and you are trying to decode it along with the header!
Any ZIP archive, created with a standard packer, has a HEADER!
MQL5 unpacker does NOT skip header.
Therefore, you cannot unpack data.
So, explain:
Initially, what do you want?