To define a BLOB, create a PropertyDef object, and then do the following:
Set the SQLType property to SQL_LONGVARBINARY or SQL_LONGVARCHAR.
Set the SQLBlobSize property to a value greater than 64 KB.
When SQLType is set to either SQL_LONGVARBINARY or SQL_LONGVARCHAR, SQLBlobSize (rather than SQLSize) determines the maximum size.
To work with a BLOB, use the IReposPropertyLarge interface. This interface provides methods that support BLOB manipulation. Specifically, it can be used to read, write, move, and seek information about a BLOB.
to jerry529():数据库用的是SQLSERVER,它的UPDATETEXT,READTEXT等语句都支持块读IMAGE数据,我只是不知道怎么把它传到应用程序中去。上头要我存这么大的,我也没办法,而且存大文件进数据库也有它的好处吧,不然M$等的数据库为何要支持这种大数据存储呢?
to yansea(思宏) :用数据流耗内存太多,系统资源太吃紧。
在VB中是可以这样做的,用APPENDCHUNK和GETCHUNK,没理由DELPHI就不行吧
大家继续支持,我相信会有高手支招的!!UP都有分,我会继续加分。