我用CFile类的open()打开一个图片,用read()将其读入缓存buffer数组里然后用什么办法能实现vc中的变量中的植送入BLOB字段中去?我想一定有哪位师兄做过,小弟请教!!

解决方案 »

  1.   

    vc中的变量和oracle中的变量是如何交互的?
      

  2.   

    CLongBinary to store binary stream!
      

  3.   

    you produce a CRecordSet by Class Wizard from ODBC,it will produce a CByteArray or CLongBinary with the BLOB field!!
      

  4.   

    1.Ctrl + W,
    2.Add Class-->New
    3.Select Base Class as CRecordSet,name the class,Click OK Button.
    4.Select DataSource-->ODBC, Select an ODBC,Click OK Button.
    5.Select an table, ok!it will produce a class.