Q. binary text 를 다시 이미지로 바꾸고 싶다.
참고. image to binary text
https://simplain.tistory.com/482
1.
private void btnTxtToImg_Click(object sender, EventArgs e)
{
string base64String = rTxtBinayText.Text;
try
{
byte[] imgBytes = Convert.FromBase64String(base64String);
using (MemoryStream ms = new MemoryStream(imgBytes))
{
using (Image img = Image.FromStream(ms))
{
img.Save(txtFullFileName.Text, ImageFormat.Png);
}
}
MessageBox.Show("Success!");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
2. End