Displaying a picture
-
-
Hi there. I have loaded a picture into a DB. Now when i take it out again, I save it as a Byte[] variable. What i want to do, is to use that Byte[] variable with the information and display it in an imageBox. Can anyone help me with this? Thanks
Save the byte array to a stream.Then use Image.FromStream(ms) to create a Image object. MemoryStream ms=new MemoryStream(bytes); Image img=Image.FromStream(ms);
:^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)
-
Save the byte array to a stream.Then use Image.FromStream(ms) to create a Image object. MemoryStream ms=new MemoryStream(bytes); Image img=Image.FromStream(ms);
:^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)