cancel
Showing results for 
Search instead for 
Did you mean: 

WebAPI: Save contents of a file as an original file which is extracted from Web API call.

ManishRaw
Level 7
I have a requirement where we need to download the file(could be PDF,txt,xlsx etc) from one system and put it in a shared drive.

BOTs can get the contents of the file from the system using Web API call, however after making request we are getting file data as text in the response content data item.


For your reference I am getting the response as below as text type.

%PDF-1.4 %����
68 0 obj <</Linearized 1/L 1850803/O 70/E 262535/N 13/T 1849323/H [ 916 320]>> endobj
xref
68 31
0000000016 00000 n
0000001236 00000 n
0000001456 00000 n
0000001821 0000

Not adding all the content here.


How can we save this content as an original file

------------------------------
Manish Rawat
Project Manager
Mercer
New Delhi
------------------------------
1 BEST ANSWER

Helpful Answers

ManishRaw
Level 7
Please refer to the thread below for resolution: How to download a file using web api.

------------------------------
Manish Rawat
Project Manager
Mercer
New Delhi
------------------------------

View answer in original post

4 REPLIES 4

ManishRaw
Level 7
Please refer to the thread below for resolution: How to download a file using web api.

------------------------------
Manish Rawat
Project Manager
Mercer
New Delhi
------------------------------

@Manish Rawat,

May I ask that you create an Idea on the product Ideas page for this capability to be added to the Web API feature? I thought there was already a submission, but I can't seem to find it. Having an entry in the Ideas page can help get this prioritized for development if enough people vote for it. 😁

https://community.blueprism.com/participate/ideation-home

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi @ewilson,

Apologies for late response.

Here is the idea: Add feature in Web API Interface to download file using an REST API Call
​​

------------------------------
Manish Rawat
Project Manager
Mercer
New Delhi
------------------------------

Thanks @Manish Rawat!

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------