<?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/87307#M38038</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it is not clear what you are getting then. If you take the content of your Response open data item in Blue Prism containing the text and save it in clipboard and paste in notepad what the result is? The information you have provided is not sufficient to give you more hints.&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:17:00 GMT</pubDate>
    <dc:creator>zdenek.kabatek</dc:creator>
    <dc:date>2020-04-27T07:17: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/87302#M38033</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:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87302#M38033</guid>
      <dc:creator>AZ</dc:creator>
      <dc:date>2020-04-25T17:23: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/87303#M38034</link>
      <description>Try the Utility - File management - Append to Text File. ...maybe will work..not sure&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amador Yranon&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Apr 2020 17:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87303#M38034</guid>
      <dc:creator>AmadorYranon</dc:creator>
      <dc:date>2020-04-25T17:56: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/87304#M38035</link>
      <description>No, it doesn't work.&lt;BR /&gt;The actual file is a binary file(pdf, excel,ppt,word), not a text file.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;A Z&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Apr 2020 18:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87304#M38035</guid>
      <dc:creator>AZ</dc:creator>
      <dc:date>2020-04-25T18:06: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/87305#M38036</link>
      <description>Sorry, I have not dissected properly your post.&lt;BR /&gt;&lt;BR /&gt;-&amp;nbsp; VBO Rest API return collection&lt;BR /&gt;- VBO HTTP return text&lt;BR /&gt;&lt;BR /&gt;Since end point return binary file e.g. pdf, excel, the only solution that i can think is using Code Stage write code like sample below:&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11899.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12069i4FFE075B0B38F026/image-size/large?v=v2&amp;amp;px=999" role="button" title="11899.png" alt="11899.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amador Yranon&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Apr 2020 18:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87305#M38036</guid>
      <dc:creator>AmadorYranon</dc:creator>
      <dc:date>2020-04-25T18:46: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/87306#M38037</link>
      <description>No, our endpoint taking specific file Id and returning file data as in type text and text mentioned above.&lt;BR /&gt;My query is, after receiving file data as text in response data item, how to convert the text into original file.&lt;BR /&gt;Can anyone please help.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;A Z&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Apr 2020 03:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87306#M38037</guid>
      <dc:creator>AZ</dc:creator>
      <dc:date>2020-04-26T03: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/87307#M38038</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it is not clear what you are getting then. If you take the content of your Response open data item in Blue Prism containing the text and save it in clipboard and paste in notepad what the result is? The information you have provided is not sufficient to give you more hints.&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:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87307#M38038</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2020-04-27T07:17: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/87308#M38039</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Please find the below image for your reference.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11903.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12075iF1E30CE0A6A9D48D/image-size/large?v=v2&amp;amp;px=999" role="button" title="11903.png" alt="11903.png" /&gt;&lt;/span&gt;In the above image, left side data is original Content of Excel File Opened in Notepad, Right side data is from the Web api response content(text) output.&lt;BR /&gt;&lt;BR /&gt;How can I convert the right side data (Response Content) as original Excel File.&lt;BR /&gt;&lt;BR /&gt;Please let me know if any info required.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;K&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;A Z&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Apr 2020 10:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87308#M38039</guid>
      <dc:creator>AZ</dc:creator>
      <dc:date>2020-04-27T10:37: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/87309#M38040</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;hmm, it seems that you will really need to call the WebApi through HTTP Client code (VB or C# code) to get the true binary stream not converted to text.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;a skeleton can look like this (taken from SO)&lt;BR /&gt;&lt;BR /&gt;byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(postString);&lt;BR /&gt;request.ContentLength = postBytes.Length;&lt;BR /&gt;Stream stream = request.GetRequestStream();&lt;BR /&gt;stream.Write(postBytes, 0, postBytes.Length);&lt;BR /&gt;stream.Close();&lt;BR /&gt;&lt;BR /&gt;response = (HttpWebResponse)request.GetResponse();&lt;BR /&gt;Stream ReceiveStream = response.GetResponseStream();&lt;BR /&gt;string filename = "C:\\responseGot.txt";&lt;BR /&gt;&lt;BR /&gt;byte[] buffer = new byte[1024];&lt;BR /&gt;FileStream outFile = new FileStream(filename, FileMode.Create);&lt;BR /&gt;int bytesRead;&lt;BR /&gt;while ((bytesRead = ReceiveStream.Read(buffer, 0, buffer.Length)) != 0) &lt;BR /&gt; outFile.Write(buffer, 0, bytesRead);&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 10:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87309#M38040</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2020-04-27T10:57: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/87310#M38041</link>
      <description>Thanks for the quick reply.&lt;BR /&gt;&lt;BR /&gt;Will let you know after check with this code.&lt;BR /&gt;&lt;BR /&gt;Thanks Again.&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 11:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87310#M38041</guid>
      <dc:creator>AZ</dc:creator>
      <dc:date>2020-04-27T11:08: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/87311#M38042</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="c3f94fc3-a1b1-45f5-91fe-a43419488745" data-tag-text="@A Z" href="https://community.blueprism.com/network/profile?UserKey=c3f94fc3-a1b1-45f5-91fe-a43419488745" data-itemmentionkey="8b605e43-7d5e-468a-b0ff-61062c1d118b"&gt;@A Z&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Could you please let me know if you were able to download the file from WebApi.&lt;BR /&gt;If so could you please share your logic.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sheela Parthasarathy&lt;BR /&gt;Assistant Consultant&lt;BR /&gt;TCS&lt;BR /&gt;Pacific/Apia&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 01 May 2021 21:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87311#M38042</guid>
      <dc:creator>Sheela</dc:creator>
      <dc:date>2021-05-01T21:25: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/87312#M38043</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="f880d67a-8738-424c-b7a0-efc78ee0a2a0" data-tag-text="@Sheela Parthasarathy" href="https://community.blueprism.com/network/profile?UserKey=f880d67a-8738-424c-b7a0-efc78ee0a2a0" data-itemmentionkey="16317f84-abc6-48c3-b95c-2b8dd91092fe"&gt;@Sheela Parthasarathy&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;The Web API service feature does not currently support downloading binary data. It only supports textual data. To download a binary file (ex. PDF, ZIP, etc) you can use the latest Utility -HTTP VBO (available on the DX) or write your own ​code stage.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 02 May 2021 03:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87312#M38043</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-05-02T03:21: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/87313#M38044</link>
      <description>@Eric&amp;nbsp;Wilson&lt;BR /&gt;&lt;BR /&gt;I read the guide for HTTP VBO and Im not able to find any reference to get output as Binary, I can see all the request output types are set as Type only.&lt;BR /&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---http" target="test_blank"&gt;https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---http&lt;/A&gt;&lt;BR /&gt;Could you please let me know if this is the VBO you referred.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sheela&lt;BR /&gt;&lt;BR /&gt;​​​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sheela Parthasarathy&lt;BR /&gt;Assistant Consultant&lt;BR /&gt;TCS&lt;BR /&gt;Pacific/Apia&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jul 2021 15:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87313#M38044</guid>
      <dc:creator>Sheela</dc:creator>
      <dc:date>2021-07-23T15:18: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/87314#M38045</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="f880d67a-8738-424c-b7a0-efc78ee0a2a0" data-tag-text="@Sheela Parthasarathy" href="https://community.blueprism.com/network/profile?UserKey=f880d67a-8738-424c-b7a0-efc78ee0a2a0" data-itemmentionkey="fa51b0e8-2786-4514-8b0d-e6b322f15395"&gt;@Sheela Parthasarathy&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;That is the correct VBO. There is an action on it called &lt;STRONG&gt;HTTP Request File&lt;/STRONG&gt; which can be used to download a binary file.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11915.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12085i1EB6537D5B8F5194/image-size/large?v=v2&amp;amp;px=999" role="button" title="11915.png" alt="11915.png" /&gt;&lt;/span&gt;&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, 23 Jul 2021 15:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-download-a-file-using-web-api/m-p/87314#M38045</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-07-23T15:32:00Z</dc:date>
    </item>
  </channel>
</rss>

