如何将MP3声音文件存入数据库?谢谢

解决方案 »

  1.   

    ORACLE下声音文件的使用方法:
    declare
      a_blob  BLOB;
      a_bfile BFILE := BFILENAME('UTLLOBDIR',‘a.wav’);
    begin
      insert into bfile_tab values (a_bfile)
        returning bfile_column into a_bfile;
      insert into utl_lob_test values (empty_blob())
        returning blob_column into a_blob;
      dbms_lob.fileopen(a_bfile);
      dbms_lob.loadfromfile(a_blob, a_bfile, dbms_lob.getlength(a_bfile));
      dbms_lob.fileclose(a_bfile);
      commit;
    end;
    /
      

  2.   

    上面的 老大 谢谢了,一定分给你,请问Access如何使用啊?
      

  3.   

    不管哪种类型的文件,用Tstream及其派生类就能搞定了,