COMException
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
pretty new to .NET, i was just trying to read an image column (recordset) into a stream object before i flush the stream and dump everything to disk. Here's the code: mstream.Write rs.Fields("Photo").Value 'Exception thrown here! mstream.SaveToFile "c:\oolala.bmp" The exception thrown: MYQUOTE: "SystemRuntime.InteropServices.COMException 0x800A0C93 Operation is not allowed in this context at ADODB.StreamClass.Write( Object Buffer) ..." Any idea? I presume i cant just put this VB 6 code in VB.NET...? any pointer? Thanx! norman_lm_fung@hotmail.com norm