Seller_31wtEhKrhEJsZ
SP-API / /reports/2020-09-04/documents /compressionAlgorithm /GZIP
I’m trying to read the response file with /reports/2020-09-04/documents/ReportDocumentID123.
At response “compressionAlgorithm”: “GZIP” part comes.
Response like this.
{“payload”:{
“reportDocumentId”:“reportdoucmentidvalue”,
“compressionAlgorithm”:“GZIP”,
“encryptionDetails”:{
“standard”:“AES”,
“initializationVector”:“vectorvalue”,
“key”:“keyvalue”},
“url”:“fileurlvalue”}}
Then i try to download file from url.
As far as I see in java code, it decrypt response first and then decompress it.
inputStream = cryptoStreamFactory.newDecryptStream(inputStream);
closeThis = inputStream;
if (compressionAlgorithm != null) {
switch (compressionAlgorithm) {
case GZIP:
inputStream = new GZIPInputStream(inputStream);
closeThis = inputStream;
}
}
But when I try to do this with c #, I get an “Found invalid data while” error.
Can you help me about this?
Tags:Reporting
00
0 replies
Follow this discussion to be notified of new activity