L limanxian Unregistered / Unconfirmed GUEST, unregistred user! 2008-03-19 #1 请高手指点:我用delphi的image在sql中存放了一些图片,如.jpg,.gif等,并用dbgrid显示数据内容,当点击这些数据时,在edit中能显示出数据,但是在image中不能显示出图片来,请问如何解决,谢谢!
请高手指点:我用delphi的image在sql中存放了一些图片,如.jpg,.gif等,并用dbgrid显示数据内容,当点击这些数据时,在edit中能显示出数据,但是在image中不能显示出图片来,请问如何解决,谢谢!
B bsense Unregistered / Unconfirmed GUEST, unregistred user! 2008-03-19 #2 var stream:tmemorystream; begin try stream := tmemorystream.create; tblobfield(zQry.fieldbyname('picture')).savetostream(stream) image1.graphics.bitmap.loadfromstream(stream); finally stream.free; end;
var stream:tmemorystream; begin try stream := tmemorystream.create; tblobfield(zQry.fieldbyname('picture')).savetostream(stream) image1.graphics.bitmap.loadfromstream(stream); finally stream.free; end;
L limanxian Unregistered / Unconfirmed GUEST, unregistred user! 2008-03-21 #4 我还是不明白啊,看来也没有别的回答了,还是给分吧