I am trying to save an image in an azure worker roles' file system.
This is my code :
BlobStream inputImage = inputBlob.OpenRead();
Stream inputStream = inputImage;
string inputPath = "F:\\approot\\input\\" + imageId; //Image id is 582
inputStream.Position = 0;
//save image to physicall file
var img = Image.FromStream(inputStream);
string imagePath = pInputPath + "\\" + pImageId + ".png";
img.Save(imagePath, ImageFormat.Png);
var xml = "";
This problem came all of the sudden, my application was working but suddenly it started crashing at this point.