如没有图片的话...
则下面的语句出错...
ww:=tmemorystream.Create;
image1.Picture.Graphic.SaveToStream(ww); //这一句出错.
ww.Position:=0;
parameters.ParamByName('c33').LoadFromStream(ww,ftgraphic);
则下面的语句出错...
ww:=tmemorystream.Create;
image1.Picture.Graphic.SaveToStream(ww); //这一句出错.
ww.Position:=0;
parameters.ParamByName('c33').LoadFromStream(ww,ftgraphic);
解决方案 »
- 怎么用SPSS或其它工具对均匀设计的数据作线性回归
- 请问batteryinfo是怎么获得信息的?
- 请教高手:动态创建的窗体之间互相访问引起内存错误怎么解决?
- 在DBGRID 控件中锁定某列
- 關於鍵盤控制的問題?
- 200分求DELPHI讲义(初中高级)。[email protected]
- 在FASTREPORT怎样显示EDIT的值
- 在delphi中,商业组件是如何收费的?
- 新手问一个关于事务操作的问题,还望高手指教
- 求救: 需要ROSE DELPHI LINK
- 我是用新的单元写不面过程,请问TFileStream是否要在接口引用VCL库的某个单元??
- 图片保存问题..... 急救...........
image1.Picture.Graphic.SaveToStream(ww);
前下次我试了一下不行用下面的
begin
try
if not image1.Picture.Graphic.Empty then
showMessage(' 有图片');
image1.Picture.Graphic.SaveToStream(ww);
except
showmessage('没有图片')
end;