2
WinForms 응용 프로그램을 개발 중이고 이진 이미지 데이터를 웹 응용 프로그램으로 보내려합니다. 어떻게 작동합니까?데스크탑 응용 프로그램에서 ashx 처리기로 이진 이미지를 게시하고받는 방법?
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.AllowWriteStreamBuffering = true;
request.KeepAlive = true;
request.Credentials = System.Net.CredentialCache.DefaultCredentials;
var fc = GetFileContent(varsayilanResimGuid);
byte[] postBytes = fc.Dosya;
request.ContentLength = postBytes.LongLength;
Stream requestStream = request.GetRequestStream();
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
string content = new StreamReader(response.GetResponseStream()).ReadToEnd();
방법이 .ASHX 날에이 바이너리 이미지 컨텐츠를 수신하려면 :
나는이 코딩?
이 도움을합니까 :
어떻게 바이너리 이미지를받을 수? http://stackoverflow.com/questions/10213634/uploading-an-image-from-iphone-to-net-ashx-handler – Graymatter
:)) 질문과 대답 :) 이진 이미지를받는 방법; –