It’s fairly easy to write a method that loops through all the fields of the 
record and puts them into a blob. (variable to blob)

Then, on the other end, use same method but ‘BLOB to variable’

Works really well.


Rudy Mortier
Two Way Communications bvba 



> On 31 Jul 2018, at 16:11, Chip Scheide via 4D_Tech <[email protected]> 
> wrote:
> 
> 
> I considered this approach -
> but the need is for data passing between processes, so writing to disk 
> is not really 'efficient'.
> 
> I went/am going with a simple convert it all to text approach.  The 
> data will not need to deal with blobs, or pictures so this will do for 
> now.
> 
> 
> 
> On Tue, 31 Jul 2018 09:54:44 +0200, Koen Van Hooreweghe via 4D_Tech 
> wrote:
>> Hi Chip,
>> 
>> No native command as you might have learned from the answers on your post.
>> Not too difficult to implement yourself. Below is what I've been 
>> using for a long time.
>> I just noticed that I did not delete the intermediate disk document, 
>> but if untouched, the files in the temporary folder are automatically 
>> removed by the OS after three days (at least on macOS).
>> 
>> HTH
>> Koen
>> 
>> C_POINTER($1;$tablePtr)
>> C_BLOB($0)
>> 
>> $tablePtr:=$1
>> 
>> C_TEXT($path)
>> 
>> If (Records in selection($tablePtr->)#0)
>> $path:=Temporary folder+Generate UUID
>> SET CHANNEL(10;$path)
>> SEND RECORD($tablePtr->)
>> SET CHANNEL(11)
>> 
>> DOCUMENT TO BLOB($path;$0)
>> 
>> DELETE DOCUMENT($path) //added upon sharing code
>> Else 
>> TRACE
>> End if 
>> 
>> 
>>> Op 30 jul. 2018, om 20:48 heeft Chip Scheide via 4D_Tech 
>>> <[email protected]> het volgende geschreven:
>>> 
>>> I do not see a command that allows this action (directly)
>>> am I missing something, or do I need to write something?
>> 
>> 
>> 
>> --------------------
>> Compass bvba
>> Koen Van Hooreweghe
>> Kloosterstraat 65
>> 9910 Knesselare
>> Belgium
>> tel +32 495 511.653
>> 
>> **********************************************************************
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:[email protected]
>> **********************************************************************
> ---------------
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to