eramgarden
Well-known member
- Joined
- Mar 8, 2004
- Messages
- 579
Im 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)
--- Heres 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"
.....
Not sure why I get "invalid parameter used" on this line:
bmpFile = New Bitmap(stmFile)
--- Heres 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"
.....