<?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: How to download a file using web api. in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88089#M38703</link>
    <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I was able to save the files with the updated HTTP VBO and it worked fine.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!!​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manish Rawat&lt;BR /&gt;Project Manager&lt;BR /&gt;Mercer&lt;BR /&gt;New Delhi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 25 Feb 2022 15:14:00 GMT</pubDate>
    <dc:creator>ManishRaw</dc:creator>
    <dc:date>2022-02-25T15:14:00Z</dc:date>
    <item>
      <title>How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88082#M38696</link>
      <description>I want to download a file using Web API. After making request we are getting File data as text in the response content data item.&lt;BR /&gt;&lt;BR /&gt;For your reference I am getting the response as below as text type.&lt;BR /&gt;&lt;BR /&gt;%PDF-1.4 %����&lt;BR /&gt;68 0 obj &amp;lt;&amp;lt;/Linearized 1/L 1850803/O 70/E 262535/N 13/T 1849323/H [ 916 320]&amp;gt;&amp;gt; endobj &lt;BR /&gt;xref&lt;BR /&gt;68 31&lt;BR /&gt;0000000016 00000 n&lt;BR /&gt;0000001236 00000 n&lt;BR /&gt;0000001456 00000 n&lt;BR /&gt;0000001821 00000 n&lt;BR /&gt;0000001957 00000 n&lt;BR /&gt;0000002087 00000 n&lt;BR /&gt;0000002229 00000 n&lt;BR /&gt;0000002972 00000 n&lt;BR /&gt;0000003602 00000 n&lt;BR /&gt;0000004428 00000 n&lt;BR /&gt;0000005000 00000 n&lt;BR /&gt;0000005715 00000 n&lt;BR /&gt;&lt;BR /&gt;I am not adding all the content here.&lt;BR /&gt;&lt;BR /&gt;How can we save this content as a original file.&lt;BR /&gt;&lt;BR /&gt;Please help, its an urgent.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;K&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;A Z&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Apr 2020 17:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88082#M38696</guid>
      <dc:creator>AZ</dc:creator>
      <dc:date>2020-04-25T17:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88083#M38697</link>
      <description>Hi, K,&lt;BR /&gt;&lt;BR /&gt;you are gonna get the response in Response Content data item. Then you can use Utility - File Management and Write Binary Action to write this data item into a file. If you are lucky then your stream is correctly saved as PDF file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zdeněk Kabátek&lt;BR /&gt;Head of Professional Services&lt;BR /&gt;NEOOPS&lt;BR /&gt;&lt;A href="http://www.neoops.com/" target="test_blank"&gt;http://www.neoops.com/&lt;/A&gt;&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Apr 2020 07:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88083#M38697</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2020-04-27T07:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88084#M38698</link>
      <description>Thanks for reply.&lt;BR /&gt;&lt;BR /&gt;Response content is text type, how can we write text to binary.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;K&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;A Z&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Apr 2020 09:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88084#M38698</guid>
      <dc:creator>AZ</dc:creator>
      <dc:date>2020-04-27T09:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88085#M38699</link>
      <description>Hi A Z,&lt;BR /&gt;&lt;BR /&gt;Is this resolved, if yes can you please let me know how, I am facing a similar issue.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manish Rawat&lt;BR /&gt;Project Manager&lt;BR /&gt;Mercer&lt;BR /&gt;New Delhi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88085#M38699</guid>
      <dc:creator>ManishRaw</dc:creator>
      <dc:date>2022-02-25T13:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88086#M38700</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="d666ed23-eedd-4996-bd6b-3bed96e53a93" data-tag-text="@Manish Rawat" href="https://community.blueprism.com/network/profile?UserKey=d666ed23-eedd-4996-bd6b-3bed96e53a93" data-itemmentionkey="1db48bbb-6cca-460a-a210-9c9f604f3527"&gt;@Manish Rawat&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;The issue here is that the Web API feature doesn't return the raw stream when the response data is a binary stream. Instead, it converts it to text. When that happens there are a few bytes that are lost, as I recall. Because of this, simply writing the text-based Response Content value to disk doesn't work.&lt;BR /&gt;&lt;BR /&gt;What I would suggest is that you use the &lt;STRONG&gt;Utility - HTTP&lt;/STRONG&gt; VBO for whatever action it is that you're trying to retrieve the file with. To be clear, if the file were a straight TXT file, the Web API feature would work fine. It's only with binary files (ex. PDF, Zip, etc) that you run into this issue.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88086#M38700</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-02-25T13:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88087#M38701</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response. The problem with &lt;STRONG&gt;Utility - HTTP VBO&lt;/STRONG&gt; remains the same as the output of both the VBO and Interface provides Result in Text only.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23880.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24014i34C64EAB8B997FAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="23880.png" alt="23880.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Will there be a way to download binary files in any way with BP?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manish Rawat&lt;BR /&gt;Project Manager&lt;BR /&gt;Mercer&lt;BR /&gt;New Delhi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88087#M38701</guid>
      <dc:creator>ManishRaw</dc:creator>
      <dc:date>2022-02-25T13:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88088#M38702</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="d666ed23-eedd-4996-bd6b-3bed96e53a93" data-tag-text="@Manish Rawat" href="https://community.blueprism.com/network/profile?UserKey=d666ed23-eedd-4996-bd6b-3bed96e53a93" data-itemmentionkey="cd6c0b3b-da4a-4e94-bfee-6d2272274e6b"&gt;@Manish Rawat&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;There was an update to the HTTP VBO a while back that introduced an action called &lt;STRONG&gt;HTTP Request File&lt;/STRONG&gt;.​ This action takes a filename and path as input so that it can write the raw file out to disk after it's been downloaded.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---http" target="_blank" rel="noopener"&gt;https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---http&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88088#M38702</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-02-25T13:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88089#M38703</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I was able to save the files with the updated HTTP VBO and it worked fine.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!!​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manish Rawat&lt;BR /&gt;Project Manager&lt;BR /&gt;Mercer&lt;BR /&gt;New Delhi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Feb 2022 15:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88089#M38703</guid>
      <dc:creator>ManishRaw</dc:creator>
      <dc:date>2022-02-25T15:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88090#M38704</link>
      <description>&lt;P&gt;Hello Eric,&lt;/P&gt;
&lt;P&gt;I appreciate your feedback.&lt;/P&gt;
&lt;P&gt;I have come across the same situation where I am receiving a binary response for a PDF file as text via Web Api and I need to download/store this pdf in local system. Following your advice, I attempted to resolve the issue, but I encountered an error. Interestingly, I received a binary response in Postman and a binary as text response in WEB API using the same input configuration, indicating that there is no authentication issue. I have included screenshots for your reference.&lt;/P&gt;
&lt;P&gt;I would greatly appreciate your assistance and guidance in resolving this issue.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23885.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24019iFEFD5DC4A5D2FF87/image-size/large?v=v2&amp;amp;px=999" role="button" title="23885.png" alt="23885.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23886.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/24021i8498EC7C66147573/image-size/large?v=v2&amp;amp;px=999" role="button" title="23886.png" alt="23886.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amrutha Sivarajan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Mar 2023 05:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88090#M38704</guid>
      <dc:creator>Amruthasimplify</dc:creator>
      <dc:date>2023-03-13T05:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to download a file using web api.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88091#M38705</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="c3dc92f6-1f5e-42e9-bc81-9224c9d0c7a6" data-tag-text="@Amrutha Sivarajan" href="https://community.blueprism.com/network/profile?UserKey=c3dc92f6-1f5e-42e9-bc81-9224c9d0c7a6" data-itemmentionkey="a7846250-e991-4505-bf03-49c0015c788e"&gt;@Amrutha Sivarajan&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;An HTTP 500 is a server side error. So there's something about your request that the server doesn't like. It doesn't look like you're including anything in the way of custom headers using the Headers input Collection or setting the Accept header value. If you're able to make this work in Postman, you should check the Postman console to see what the raw request looks like that Postman is sending. You should be able to see any specific HTTP headers that are being set and determine if you need to include those in your request.&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Mar 2023 18:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/88091#M38705</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-03-13T18:24:00Z</dc:date>
    </item>
  </channel>
</rss>

