cmd.CommandText = "select fjnr from L_fj where id = " & fjid
fjnr = Convert.FromBase64String(cmd.ExecuteScalar())
-----------------------------------------------------------------------------
是不是 FromBase64String 有问题?
-----------------------------------------------------------------------------
Dim sfj As New System.IO.MemoryStream(fjnr)
img = System.Drawing.Image.FromStream(sfj,True)
------------------------------------------------------------------------------
是不是该用 Dim sfj As New System.IO.MemoryStream(fjnr, 0, fjnr.length) ?
我用 c#,乍看上去可能是二进制流的读取问题,但因为不懂 vb,所以不能确定,呵呵。