본문 바로가기

VB Visual Basic

c# string 문자열 byte[] 배열

728x90
반응형
private string ByteToString(byte[] strByte) 
{ 
    string str = Encoding.Default.GetString(StrByte); 
    return str; 
}

private byte[] StringToByte(string str)
{
    byte[] StrByte = Encoding.UTF8.GetBytes(str); 
    return StrByte; 
}


출처: https://zephie.tistory.com/11 

728x90
반응형

'VB Visual Basic' 카테고리의 다른 글

VB 파일 Put #  (0) 2022.04.12
VB VisualStudio 비주얼스튜디오 .Action = 0 이란  (0) 2022.02.14