Help - Search - Members - Calendar
Full Version: LoadFromBlobField
Fast Reports forum > Fast Reports Products > FastReport 3.0
felix_at_home
Hi,

In 2.5 LoadFromBlobfield was available, it isn't in anymore in 3.0. Am I supposed to write myself the blob to stream function or is it forgotten by accident?
gordk
create a memory stream save to stream then assign the stream to the blob
field.
stream := TMemoryStream.Create;
TfrxReport.SaveToStream(stream);
stream.Position := 0;
(dataset.fieldByName('my_blob') as TBlobField).LoadFromStream(stream);

reverse the process for loading
wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.