Search code examples
azureazure-data-factoryoctet-stream

Copy response body which has content type as octet-stream using ADF


I am working with an API that sends the response as octet-stream. I am calling the API using Web activity in ADF. Now this response has to be saved in the ADLS file, could be either in csv or json format. Is there any possible way to do this.

I am not at all familiar with this octet-stream types, so any help regarding this would be appreciated.


Solution

  • I solved this myself, I figured out that the response was octet-stream because it was sending a zip file. So I saved the response using copy activity with HTTP linked service to ADLS as .zip output file and later used a copy activity again to extract that zip file into the ADLS store again using the compression type as zipdeflate, like how its usually done in ADF to extract.

    Source Dataset Settings