In a Windows 7 v15 database I need to save an existing Excel workbook as a
blob in a 4D record. I created a blob field and selected the "In record"
option for storage.
I ran this code:
$TemplateFilePath_t:=Select document("";"";"Select a document:";0)
If (OK=1)
SET BLOB SIZE([Constants]D_And_B_Excel_Template;0)
$TemplateFilePath_t:=document
DOCUMENT TO BLOB($TemplateFilePath_t;[Constants]D_And_B_Excel_Template)
End if
After this is run the OK variable is 1 and the size of the blob field is 19
Ko. When I save the record, unload it, then go back into it the blob size is
0.
Why?
David
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************