views:

57

answers:

0

Hi,

I am making a call to a stored procedure which returns varbinary records which I want to store in a JSON object. When I do the same for other data types I use the following TField properties to extraxt the data from the data set: FStoredProc.FieldByName(ColumnName).AsInteger (or .AsString etc)

I thought I would be able to use FStoredProc.FieldByName(ColumnName).AsBytes but the property AsBytes is not present in the Borland.Vcl.Db namespace.

I am a bit stuck so any help would be much appreciated.

Thank you.