Hi,

Maybe I'm just sloooowwww but how do I copy and paste the code when the poster used the Code Wrapper like here:

http://www.vbforums.com/showthread.php?t=469562

If I copy and paste it, it all ends up on one line:

Dim connection As New SqlConnection("connection string here")Dim command As New SqlCommand("SELECT Picture FROM MyTable WHERE ID = 1", connection) connection.Open() Dim pictureData As Byte() = DirectCast(command.ExecuteScalar(), Byte()) connection.Close() Dim picture As Image = Nothing Using stream As New IO.MemoryStream(pictureData) picture = Image.FromStream(stream)End Using

tnx
~j