How I can convert FieldValue to Stream and Stream to FieldValue?
Like this:
Fields.SaveToStream
Fields.LoadFromStream
for any Field type (string, numbers, date, blob, xml), not only for blob.
Convert FieldValue to Stream and Stream to FieldValue
Re: Convert FieldValue to Stream and Stream to FieldValue
Hello,
You can use the GetData(Buffer: Pointer) method of the TField for retrieving data and subsequent recording them to Stream with the help of the Write(Buffer: Pointer; Count: Longint) method, processing every field depending on its type
You can use the GetData(Buffer: Pointer) method of the TField for retrieving data and subsequent recording them to Stream with the help of the Write(Buffer: Pointer; Count: Longint) method, processing every field depending on its type