Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Working with TFDDATSROW and blob fields


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Apr 3, 2018 5:22 AM Last Post By: Mark Williams Threads: [ Previous | Next ]
Mark Williams

Posts: 120
Registered: 5/8/10
Working with TFDDATSROW and blob fields  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 2, 2018 11:30 AM
I am struggling to work out how to save an array of integer as a blob to the database using TFDDATSROW.

CreateBlobStream works well when accessing a blob field.

As far as I can work out there is now way of doing this with TFDDATSROW's getdata function which returns a variant and likewise setData which passes a variant.

I have tried DynArrayToVariant and DynArrayFromVariant, but these are celarly not the types of variant GetData and SetData are looking for.
Mark Williams

Posts: 120
Registered: 5/8/10
Re: Working with TFDDATSROW and blob fields  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 3, 2018 5:22 AM   in response to: Mark Williams in response to: Mark Williams
I have discovered that there are overridden versions of GetData which accept and return pointers.

I can't work out how to get from a pointer type to a dynamic array, but that question is probably best posted elsewhere.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02