<?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>topic RE: HTTP request (GET) with zip / binary response in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/HTTP-request-GET-with-zip-binary-response/m-p/51472#M6523</link>
    <description>Good question. I have the same issue when I get a response with a PDF in it. Look like the code handles only text streams. Would love to see code for binary too.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Anonymous Noname&lt;BR /&gt;Employee&lt;BR /&gt;Privet&lt;BR /&gt;America/Edmonton&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Sep 2019 23:07:00 GMT</pubDate>
    <dc:creator>vchwiero</dc:creator>
    <dc:date>2019-09-11T23:07:00Z</dc:date>
    <item>
      <title>HTTP request (GET) with zip / binary response</title>
      <link>https://community.blueprism.com/t5/Product-Forum/HTTP-request-GET-with-zip-binary-response/m-p/51471#M6522</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I use "HTTP Request" action from standard "Utility - HTTP" object. It works correctly, I get responses. The problem is a response type which is a zip file.&lt;BR /&gt;&lt;BR /&gt;Could you give me some advices how to modify this code to get resultData in binary format (if my understanding is correct this is a valid format if reponse is the zip file)?&lt;BR /&gt;&lt;BR /&gt; Using response As WebResponse = request.GetResponse()&lt;BR /&gt;resultHeadersJson = JsonConvert.SerializeObject(ToDictionary(response))&lt;BR /&gt;Dim responseStream As IO.Stream = response.GetResponseStream()&lt;BR /&gt;Dim sr As New IO.StreamReader(responseStream)&lt;BR /&gt;resultData = sr.ReadToEnd()&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;End Using&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mateusz&lt;BR /&gt;RPA Developer&lt;BR /&gt;Warsaw&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Aug 2019 15:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/HTTP-request-GET-with-zip-binary-response/m-p/51471#M6522</guid>
      <dc:creator>matbla91</dc:creator>
      <dc:date>2019-08-29T15:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: HTTP request (GET) with zip / binary response</title>
      <link>https://community.blueprism.com/t5/Product-Forum/HTTP-request-GET-with-zip-binary-response/m-p/51472#M6523</link>
      <description>Good question. I have the same issue when I get a response with a PDF in it. Look like the code handles only text streams. Would love to see code for binary too.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Anonymous Noname&lt;BR /&gt;Employee&lt;BR /&gt;Privet&lt;BR /&gt;America/Edmonton&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Sep 2019 23:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/HTTP-request-GET-with-zip-binary-response/m-p/51472#M6523</guid>
      <dc:creator>vchwiero</dc:creator>
      <dc:date>2019-09-11T23:07:00Z</dc:date>
    </item>
  </channel>
</rss>

