SMALL
C#에서 JAVA 이미지 전송
C#에서 JAVA Binary 전송
C 프로그램에서 JAVA로 이미지 전송시 이미지 디코드
C# 에서 정의
if (method == "POST")
{
// Convert POST data to a byte array.
Byte[] byteArray = Encoding.UTF8.GetBytes(content);
request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8;
request.ContentLength = byteArray.Length;
Stream dataStream = request.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);
dataStream.Close();
}
JAVA 받을때
byte[] decode = null;
if(imgBlob != null && !"".equals(imgBlob)){
imgBlob = imgBlob.replaceAll(" ", "+");
decode = Base64.decodeBase64(imgBlob);
}
LIST
'IT > java' 카테고리의 다른 글
JAVA Compile create jar manifest (0) | 2024.08.02 |
---|---|
CMD jar 생성 (0) | 2023.12.22 |
Java toByteArray (0) | 2018.11.16 |
NEW URL (0) | 2018.11.16 |
java thread 모음 (0) | 2018.05.02 |