将Byte()转换为Stream

                        Dim fs As New IO.FileStream(OpenFileDialog1.FileName, IO.FileMode.Open)
                        Dim b As Byte()
                        ReDim b(CInt(fs.Length))
                        fs.Read(b, 0, CInt(fs.Length))
                        Dim s As New IO.MemoryStream(b)
                        Paint1.Picture = s
                        s.Close()
                        fs.Close()
posted @ 2004-10-22 11:35  萧萧  阅读(122)  评论(0)    收藏  举报