|Azure Blob Cloud Storage Virus Scan with Complex File Names|
|7/1/2022 - Cloudmersive Support|
When using the Cloudmersive Cloud Storage Scan APIs to scan Azure Blob resource paths, special characters may be included in the file name. This can cause a 400 Bad Request error because the file name is passed in through an HTTP Header, and HTTP Headers do not allow certain special characters to be used.
To address this, you can base64 encode the input file path when calling the Cloudmersive Cloud Storage Scan API for Azure Blob. The API will automatically detect base64 encoded input and decode it as needed, and then perform the scan normally. All major programming languages support base64 encoding.
As a simple example, here is a line of code in C# that will base64 encode the input file name:
In Power Automate and Azure Logic Apps you can base64 encode a value by using the