I changed the code based on SonarQube suggestion. but still showing vulnerability. someone please help us.
byte[] blobData = blob.Buffer;
strTempPath = strTempPath + @"\jpeg";
string strNewFilePath = string.Empty;
strNewFilePath = Path.GetFullPath(System.IO.Path.Combine(strTempPath, savedFilePath.Substring(savedFilePath.LastIndexOf(@"\") + 1)));
string fullDestDirPath = Path.GetFullPath(strTempPath + Path.DirectorySeparatorChar);
if (strNewFilePath.StartsWith(fullDestDirPath, StringComparison.Ordinal)) {
blobData = File.ReadAllBytes(strNewFilePath);
} else
{
throw new IOException("Attempting to read bytes");
}