求Delphi 读写Oracle Blob 大类型数据,的程序
求Delphi 读写Oracle Blob 大类型数据,的程序

解决方案 »

  1.   

      Provider=OraOLEDB.Oracle.1;Password=manager;Persist Security Info=True;User ID=system;Data Source=orcl
      //--写
      with self.ADODataSet1 do
      begin
        close;
        commandText:='select * from test1 where rownum=0';
        open;
        append;
        FieldByName('id').AsString:='1';
        TBlobField(FieldByName('img')).LoadFromFile('c:\Windows Server 2003.bmp');
        post;
      end;  //--读
      with self.ADODataSet1 do
      begin
        close;
        commandText:='select * from test1 where id=1';
        open;
      end;
      

  2.   

    create table test1(id varchar2(100),img blob);
      

  3.   

    访问oracle,建议使用ODAC,不需要安装oracle客户端
      

  4.   

    delphi支持oracle并不好,不建议用,之前我用过,Blob类型很难操作.
      

  5.   

    没有玩过ORACLE,应该和连接MSSQL一样吧!学习。。