I am trying to save an image to my database in byte array format, but when I look at the database I only see the bytes but not the image! How can I make it so I do not see the byte code but the image? Do I have to reverse the process on client side? Please help! Thank you!
Byte conversion function:
private byte[] String_To_Bytes2(string strInput)
{
int numBytes = (strInput.Length) / 2;
byte[] bytes = new byte[numBytes];
for (int x = 0; x < numBytes; ++x)
{
bytes[x] = Convert.ToByte(strInput.Substring(x * 2, 2), 16);
}
return bytes;
}