on ‎2019 Nov 22 10:35 AM
HTTPS Sender Adapter
How to access the zip file sent in the body of HTTP (POST, GET or PUT) request in Groovy Script ?
I mean how to access zip file in Groovy Script ?
Thanks in advance
Request clarification before answering.
Hi Jose,
have you tried to read the body as byte array? (The success of this method depends of the way the sender sends/posts the data, but in general this should work.)
byte [] bytes = message.getBody(byte[].class)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raffael,
I was able to unzip file. Not able to read the same. Could you please help ?
I am getting xml and pdf file in zip file, which is unzipped.
def byte[] bytes = message.getBody(byte[].class)
def zipEntries = extractZipEntries(bytes)
Now how to read both files ?
How to pass entry name to readEntryFromZipAsString(...) ?
Thanks in adavance,
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.