vc 如何向ACCESS 插入图片 ?

解决方案 »

  1.   

    char* buffer =new char[number];
    CString sql;
    sql.Foramt("Update table set  image='%s' where id =1",buffer);
    //execute  sql但插入ACCESS 数据后读出的长度只有10   不知道是怎么回事啊,是不是不是这样修改的
      

  2.   

    不知道你用的什么访问方式?ADO?
      

  3.   

    //rs  数据库为ACCESS 写图象进入时候  sql="select * from table where id=1"
    //byte* pByte
    //得到了RS 
    CComVariant  buf= pByte;
    //第6为一OLE 对象类型
    rs->PutCollent((long)6,buf);/////////这里出错了
    rs->Update();
    请人指点啊 
      

  4.   

    http://community.csdn.net/Expert/topic/4412/4412206.xml?temp=8.996218E-02