To  jackyhx(飞不动的侠):这句我以前试过不行。在执行时有word界面出来,但没有文字内容出来。我现在有点怀疑是不是我将word文档存入数据库的语句出来错误呢?现将语句贴出请帮看看,谢谢!
   Dim upfile As HttpPostedFile
        upfile = up_file.PostedFile
        FileLength = upfile.ContentLength
        Dim FileByteArray(FileLength) As Byte
        Dim streamObject As Stream
        streamObject = upfile.InputStream
        streamObject.Read(FileByteArray, 0, FileLength)
        Dim connImg_temp As New SqlConnection()
        Dim strConn As String
        connImg_temp.ConnectionString = "data source=(local);initial catalog=dotNetItem_Lesson;password=lovesong;user id=sa;workstation id=HEQINCHEN;packet size=4096"
        strConn = "Insert Into img_temp(img) values(@Image)"
        Dim commImg_temp As New SqlCommand()
        commImg_temp.CommandText = strConn
        commImg_temp.Connection = connImg_temp
        commImg_temp.Parameters.Add("@Image", SqlDbType.Image, FileLength).Value() = FileByteArray 
       
        connImg_temp.Open()
        commImg_temp.ExecuteNonQuery()
        connImg_temp.Close()
        Response.Write("OK!")