I am trying to download the image from azure blob storage using the below code
String fullPath;
fullPath = path + names[0];
FileStream fileStreamInput = new FileStream(fullPath, FileMode.Open, FileAccess.Read);
FileStreamResult fileStreamResult = new FileStreamResult(fileStreamInput, "APPLICATION/octet-stream");
if (names == null || names.Length == 0)
fileStreamResult.FileDownloadName = fileStreamInput.Name;
else fileStreamResult.FileDownloadName = names[0];
return fileStreamResult;
Here, value for full path was received as https://mycustomazure.blob.core.windows.net/blob1/
names[0] is user.png
But i got the exception The given path's format is not supported
How to resolve this issue ?