如果存的是AutoCad格式的文件,dbimage就无法打开了。
解决方案 »
- 引用系统函数Delete进行操作在声明部分引用之后运行暴出以下错误,请高手指教,急!!!![Error] windows1.pas(7): Identifier redeclar
- 怎么在RICHEDIT控件中加一个背景图,并且背景图相对于窗体的位置是固定?指点!
- TShellListView如何取得选中文件的文件名?
- 建议
- 关于OpenProcess调用不成功求助----急,谢谢!
- 关于listView的疑难问题。高手请进。100分。
- 求助:如何自动运行导出Excel后另存新档?
- DataSetProvider是否不能和ADO数据集连接
- Delphi学习模式论,欢迎讨论!
- 高手来看看!!!!!!!!!
- 还在坚持的兄弟们,新年快乐!!!!!!!发分
- mdac2.6和Delphi6.0的ADO不兼容,怎么办?
i have received following message for this kind of question, he has used TFileStream to load any picture.这可以处理多种格式的图象文件
procedure TFrmblobexample.Button1Click(Sender: TObject);
begin
if(opendialog1.execute)then
begin
sfilename:=opendialog1.filename;
adoquery1.Append;
adoquery1.FieldByName('name').asstring:=sfilename;
adoquery1.fieldbyname('blobs').asstring:=blobcontenttostring(sfilename);
adoquery1.post;
end;
end; function TFrmblobexample.blobcontenttostring(
const filename: string): string;
begin
with tfilestream.create(filename,fmopenwrite)do
try
setlength(result,size);
read(pointer(result)^,size);
finally
free;
end;
end;My question:
when i save image to SQL SERVER image field, My Delphi BDE always returns "BDEDatabaseerror for INVALID BLOB SIZE",i do not know whether it is the mistake of my Delphi 5.5 or the Mistake of SQL SERVER.