Good day!
I have soap response message that contatined binary zip file. It looks like: binary response
I try to parse zip-file:
byte[] bin = ExecutionUtil.getDynamicProcessProperty("binary").getBytes();
logger.warning("binary "+bin);
ZipInputStream zipStream = new ZipInputStream(new
ByteArrayInputStream(bin));
logger.warning("zipStream "+zipStream+" nextEntry "+zipStream.getNextEntry());
ExecutionUtil.getDynamicProcessProperty("binary").getBytes();
- this row make byte[] from string which contain binary from soap response.
When I try to test zipStream.getNextEntry()
always return null.
I try to make
byte [] byteZip= child.getText().getBytes("UTF-8");
ZipInputStream zipStream = new ZipInputStream(newByteArrayInputStream(byteZip) or .Charset.forName("UTF-8"))
but I always have same result.
How I can get Entries from zipFile?