想把发邮件的附件存在数据库中等待审核,那么表中的数据类型应该是什么?谁有把附件存在数据库中的思路请指点一下

解决方案 »

  1.   

    序列化,然后存到byte[]类型字段
      

  2.   


    attchId int identity(1,1) , --ID
    attchName varchar(128) not null, --名称
    attchUrl varchar(256) not null, --地址
    attchType varchar(8) not null, --类型
    attchSize int ,--大小
    attchIsCret bit not null, --是否审核
      

  3.   

    接分~   用image类型 转化为2进制,就可以。
      

  4.   

    用bigint类型还是用image类型?
      

  5.   

    在SQL Server中保存和输出任意类型的文件
    http://leafweb.cn/article.asp?ID=1706&pages=1
    刚找的,一起学习下