PDA

Click to See Complete Forum and Search --> : Copy/Paste code posted here...


funch
Jun 21st, 2007, 12:53 PM
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

si_the_geek
Jun 21st, 2007, 01:40 PM
It's a problem with our recent upgrade that unfortunately hasn't been fixed yet... there are a few of methods of correcting it, see this thread for a program which does it.

funch
Jun 21st, 2007, 01:54 PM
Ahhh, I see... the Wordpad solution is fine for me... thank you for the quick Reply...

tnx
~j