eramgarden Posted June 10, 2004 Posted June 10, 2004 I'm following an example to display images saved in the database.. Not sure why I get "invalid parameter used" on this line: bmpFile = New Bitmap(stmFile) --- Here's what i have..any ideas? Dim bmpFile As Bitmap Dim stmFile As New MemoryStream() Dim objWriter As New BinaryWriter(stmFile) ... cnn.Open() Dim dr5 As SqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection) While dr5.Read objWriter.Write(dr5("ole_data")) bmpFile = New Bitmap(stmFile) 'THIS LINE Response.ContentType = "application/msword" ..... Quote
eramgarden Posted June 11, 2004 Author Posted June 11, 2004 Found my answer I was using bitmap to read word doc Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.