存储word,excel都可以的,我在oracle里试过。
sql server只做过存储图片的,应该也没问题,都用image字段。

解决方案 »

  1.   

    上面的兄弟,我也看到了有image的数据类型,但我不知道怎么存进去啊,因为我准备编辑的时候,好象不能输入啊?如果你知道的话,还希望指点一二。
      

  2.   

    上上面的兄弟,我的程序很逊啊,你可不可以说清楚点啊?还有我是用SQL SERVER做数据的,不胜感激?
      

  3.   

    采用二进制就可以存了!!!!!!''StrPath为取图片的路径
    'Str 为标号,比如你查找的内容“姓名之类的”
    Public Sub SaveToImage(strPath As String, Str As String, Index As Integer)
    Dim rstab As New ADODB.Recordset
    Dim bytBLOB() As Byte
    Dim intFile As Integer
    Dim strImagePath As StringstrImagePath = Trim$(strPath)
    rstab.Open "select zp,HH from fddbrllb where 标号='" & Str & "'", ConnSrv, adOpenKeyset, adLockOptimistic
    With rstab
       If strImagePath <> "" Then
          intFile = FreeFile
          Open strImagePath For Binary As #intFile
          ReDim bytBLOB(FileLen(strImagePath))
          Get #intFile, , bytBLOB
          Close #1
         If Index = 1 Then
            .Fields("zp").AppendChunk bytBLOB
           Else
            .Fields("HH").AppendChunk bytBLOB
         End If
       End If
    End With
    rstab.Update
    rstab.Close
    Set rstab = Nothing
    End Sub
    程序中可以直接调用, 
    zpPath =dlgDialog .FileName
    call SaveToImage(zpPath, 张三, 1)