|
-
Jun 21st, 2007, 12:53 PM
#1
Thread Starter
New Member
Copy/Paste code posted here...
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
-
Jun 21st, 2007, 01:40 PM
#2
Re: Copy/Paste code posted here...
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.
-
Jun 21st, 2007, 01:54 PM
#3
Thread Starter
New Member
Re: Copy/Paste code posted here...
Ahhh, I see... the Wordpad solution is fine for me... thank you for the quick Reply...
tnx
~j
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|