Blob SAS URI character decoded when passed as Query parameter to Azure Function app

Ashish 96 Reputation points

I wanted to pass the SAS URI of a image file to Azure Functions as query parameters.
But when I pass the below URL, some characters from 'sig' part get decoded

The above URL becomes

%2F to /
%2B to +
%3D to =

Because of this when I try to access the blob, I get error:
System.Private.CoreLib: Exception while executing function: <FUNCTIONNAME>. System.Net.Requests: The remote server returned an error: (403) Server failed to authenticate the request. Make sure
the value of Authorization header is formed correctly including the signature..

I am accessing the URI using below code

string image = req.Query["image"];

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,016 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful