Closed markkko closed 3 years ago
It sounds like you are looking at a ZIP file which contains the xml file. The header PK 0x03 0x04
is the start of a zip file. How are you generating this file you are looking at?
I am calling
client.fetchFile(getOutputFile(outputFile), client.getDefaultUser(), product, orderType, false, null, null);
with C54 orderType.
And on response:
org.kopi.ebics.io.Joiner.writeTo(dest, response.getTransactionKey())
is called.
Should I first call:
Utils.unzip(transactionKey)
,
then
this.user.decrypt(this.buffer.toByteArray(), unzippedTransactionKey);
?
Can you try to rename the downloaded file to have a .zip
suffix and then open it as ZIP file? There should be one file entry inside the ZIP file.
You can also do this programatically then with java.util.zip.ZipFile
Yes, it works.
Big thanks.
Hi,
when I try to download C54 orederType, it is not serialised the right way.
This is how serialised file looks like:
But it should looks like
When I opet it with Sublime (UTF-8), after "PK" I got some adresses: <0x03><0x04>....and then 2021-06-10_C54_DE52701694100002965682_EUR_636794.xml Please check screenshot here https://ibb.co/gmmtmmH