How to save ADF Web Activirity(Rest Api) PDF File response to Azure Blob.

ri,shoshun 431 Reputation points
2021-05-27T11:28:09.257+00:00

I want to download a pdf file from Salesforce using Pipeline image below and save it to Azure Blob.
The saved file is not a PDF file, the content is the text of the response image below.
How to convert the response content to PDF content(binary?)?

Please tell me. Thanks!

100282-qa1.png100291-qa2.png

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,415 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,487 questions
0 comments No comments
{count} vote

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 76,586 Reputation points Microsoft Employee
    2021-05-28T07:23:37.45+00:00

    Hello @ri,shoshun ,

    Thanks for the question and using MS Q&A platform.

    REST API endpoints that the web activity invokes must return a response of type JSON.

    I would suggest you use the HTTP connector.

    HTTP connector is generic to retrieve data from any HTTP endpoint, e.g. to download file.

    As per my repro, I used copy activity to copy PDF file from HTTP request to Blob storage.

    Source dataset details:

    100480-image.png

    Sink Dataset Details:

    100511-image.png

    100521-image.png

    100522-adf-httpendpoint.gif

    Hope this helps. Do let us know if you any further queries.

    ---------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful