'How to get Mediumblob image and display it in picturebox? c#
I tried this one but it's not working
conn.connect();
conn.cn.Open();
command = new MySqlCommand("call getDoc_cSharp("+id+")", conn.cn);
dr = command.ExecuteReader();
while (dr.Read())
{
byte[] raw = (byte[])dr[0];
MemoryStream ms = new MemoryStream(raw);
docu_image.Image = Image.FromStream(ms);
}
command.Dispose();
conn.cn.Close();
I searched, tried, all possible solutions but it always says "Parameter is not valid" and other error messages also when i tried other solution. I've been stuck in here since yesterday, I can't get to display my mediumblob image to picturebox.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

