Created a new DB and did this with no problem.
Created a record and saved it.

READ WRITE([Table_1])
ALL RECORDS([Table_1])
FIRST RECORD([Table_1]) // only one
$TemplateFilePath_t:=Select document("";"";"Select a document:";0)
If (OK=1)
SET BLOB SIZE([Table_1]Field_1;0)// don't really need this but it doesn't
hurt
$TemplateFilePath_t:=document
DOCUMENT TO BLOB($TemplateFilePath_t;[Table_1]Field_1)// the field now
contains the 76Kb doc
SAVE RECORD([Table_1])// you didn't show this but you have it I'm sure
End if 

Calling the record again the field contains 76kb

I suspect the record is not being saved. Do you have  On Error running and
it is maybe trapping the 4D error and you are not displaying it? Been there.

Cheers

Jim Labos - infobase



-----
Jim Labos - infobase
--
View this message in context: 
http://4d.1045681.n5.nabble.com/Problem-saving-blob-to-a-record-tp5748862p5748880.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**********************************************************************
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]
**********************************************************************

Reply via email to