하늘색 작업자 역할의 파일 시스템에 이미지를 저장하려고합니다. Azure Server의 파일 시스템에 이미지를 저장하는 동안 오류가 발생했습니다. GDI +에서 일반적인 오류가 발생했습니다.
이
내 코드입니다 :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 = "";
이 문제는 갑자기 와서 내 응용 프로그램이 작동했지만 갑자기이 시점에서 충돌하기 시작했다.
'pInputPath'의 가치는 무엇인가 :
는
approot
가에 당신의 어떤 드라이브 당신이 결정에 사용할 수있는 환경 변수,RoleRoot
을이 있어야한다? –