<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: HTTPS Sender - How to access zip file sent as body  - in Groovy script ? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaa-p/12091641#M4517440</link>
    <description>&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;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.)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;byte [] bytes = message.getBody(byte[].class)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Nov 2019 11:07:04 GMT</pubDate>
    <dc:creator>r_herrmann</dc:creator>
    <dc:date>2019-11-22T11:07:04Z</dc:date>
    <item>
      <title>HTTPS Sender - How to access zip file sent as body  - in Groovy script ?</title>
      <link>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaq-p/12091640</link>
      <description>&lt;P&gt;HTTPS Sender Adapter &lt;/P&gt;
  &lt;P&gt;How to access the zip file sent in the body of HTTP (POST, GET or PUT) request in Groovy Script ?&lt;/P&gt;
  &lt;P&gt;I mean how to access zip file in Groovy Script ?&lt;/P&gt;
  &lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 10:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaq-p/12091640</guid>
      <dc:creator>jose_augastine3</dc:creator>
      <dc:date>2019-11-22T10:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPS Sender - How to access zip file sent as body  - in Groovy script ?</title>
      <link>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaa-p/12091641#M4517440</link>
      <description>&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;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.)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;byte [] bytes = message.getBody(byte[].class)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Nov 2019 11:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaa-p/12091641#M4517440</guid>
      <dc:creator>r_herrmann</dc:creator>
      <dc:date>2019-11-22T11:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPS Sender - How to access zip file sent as body  - in Groovy script ?</title>
      <link>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaa-p/12091642#M4517441</link>
      <description>&lt;P&gt;Hi Raffael,&lt;/P&gt;&lt;P&gt;I was able to unzip file. Not able to read the same. Could you please help ? &lt;/P&gt;&lt;P&gt;I am getting xml and pdf file in zip file, which is unzipped. &lt;/P&gt;&lt;P&gt;def byte[] bytes = message.getBody(byte[].class)&lt;/P&gt;&lt;P&gt;def zipEntries = extractZipEntries(bytes)&lt;/P&gt;&lt;P&gt;Now how to read both files ?
&lt;/P&gt;&lt;P&gt;How to pass entry name to readEntryFromZipAsString(...) ?&lt;/P&gt;&lt;P&gt;Thanks in adavance,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2019 09:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaa-p/12091642#M4517441</guid>
      <dc:creator>jose_augastine3</dc:creator>
      <dc:date>2019-11-24T09:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPS Sender - How to access zip file sent as body  - in Groovy script ?</title>
      <link>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaa-p/12091643#M4517442</link>
      <description>&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;I answered your below your other question. Because this question was about getting the payload as bytes and not about unzipping. If my answer helped to solve your problem, don't forget the answer as "accepted answer". &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2019 14:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/https-sender-how-to-access-zip-file-sent-as-body-in-groovy-script/qaa-p/12091643#M4517442</guid>
      <dc:creator>r_herrmann</dc:creator>
      <dc:date>2019-11-24T14:29:34Z</dc:date>
    </item>
  </channel>
</rss>

