直接这样试试
Tblobfield(query1.FieldByName(str1)).loadfromfile(DlgOpPic.FileName)

解决方案 »

  1.   

    是啊, 我以前也遇过啊. 是ACCESS库吧, 好像没有办法..如果要修改的话, 先将其删除,再增加, 我就是用这样的土办法.
      

  2.   

    如果还不行,建议重装ODBC驱动程序。
      

  3.   

    我使用的Sql Server 做数据库的,有没有其他的办法呢??
    应该怎样去解决呢?、
      

  4.   

    Imgpic.Picture <> nil  
    这样不能确定image是否为空
    try this
     if  image1.picture.graphics=nil  then
       begin
       end;
      

  5.   

    这个Graphics属性是对于Jpeg图象,但是对于Bmp图象呢??
    我想问一下,在提交数据库字段的时候需要注意什么?需不需要先将图象字段内容晴空??