如何创建一个字段来保存图片?
如题,请给详细讲讲!谢谢!
------解决方案--------------------1、可以用ADO流将图片存入OLE字段中; 
 2、建议在字段中保存路径及文件名,使用时再调入图片。
------解决方案--------------------示例: 
 ADO流对象的作用:ADO流对象实现了对大文本、各种模式的图相的方便的读存方法。   
 先进入VB6菜单:工程---引用  勾选:Microsoft ActiveX Data Objects Library 2.5 这个版本的ADO对象定义了ADO流对象   
 ADO流对象的使用范例: 
 1、  利用ADO流对象把图相存入与ADODC相连接的类型为Binary的字段的记录中 
     Dim myStream As New ADODB.Stream 
     myStream.Type = adTypeBinary 
     myStream.Open      
     CommonDialog1.FileName =  " " 
     CommonDialog1.Filter =  "Bmp(*.bmp)|*.bmp " 
     CommonDialog1.ShowOpen      
    If CommonDialog1.FileName  <>   " " Then 
        myStream.LoadFromFile CommonDialog1.FileName 
        Adodc2.Recordset.Fields( "相片 ").Value = myStream.Read 
        Adodc2.Recordset.Update 
     End If
------解决方案--------------------ADO的好处是各种语言中均可使用,具体程序实现请到相应的语言版块去问吧
------解决方案--------------------转: 
 orm1.ADODataSet1.Close;   
       form1.ADODataSet1.CommandText:= ' ';   
       form1.ADODataSet1.CommandText:= 'select   image   from   table1 ';   
       form1.ADODataSet1.Open;   
       form1.ADODataSet1.Append;   
       TBlobfield(form1.ADODataSet1.FieldByName( 'image ')).LoadFromFile(form1.OpenPictureDialog1.FileName);        
       form1.ADODataSet1.Post;        
   数据表中image为ole对象   
------解决方案--------------------用VB写程序加入进去.看看我的博客,里面有http://wt641.blog.163.com/ 
------解决方案--------------------可以。