I have a REST service that reads a file and sends it to another console application after converting it to Byte array and then to Base64 string. This part works, but when th
Just in case you don't know the type of uploaded image, and you just you need to remove its base64 header:
var imageParts = model.ImageAsString.Split(',').ToList();
//Exclude the header from base64 by taking second element in List.
byte[] Image = Convert.FromBase64String(imageParts[1]);