简体   繁体   中英

How to change the content-type of the files in Azure blob Storage using Azure Data Factory?

I have a container set with sub folders and images in the Azure Blob Storage. When I try to use these files it says the content type is miss-matched and when I check the content-Type it says application/octet-stream .

I want to change the content type from application/octet-stream to image/jpeg by using Azure Data Factory.

Is there any way to change the content type of all the files present in all containers and subfolders in containers using Azure Data Factory?

If there is any way to change the content type by using Azure Data Factory please let me know.

As per community information using azure data factory. Unfortunately is not provided in this service The file is displayed if the setting is text/html. It is downloaded if the option is set to application/octet-stream at present you can't alter.

Please check this Reference by MartinJaffer-MSFT

Alternatively, you can change content type from application/octet-stream to image/jpeg by using Azure blob storage. Microsoft Storage Explorer, or any other product on the market, does not offer this feature. This feature also having some kind of dependency and limitation excluding limitation this can be possible in these steps.

在此处输入图像描述

select set-properties

在此处输入图像描述

In properties -> select content type should be Assign Content Type based on Blob Extension-> task -> submit

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM