Re: DOCUMENT TO BLOB stopped working

2018-03-23 Thread John Baughman via 4D_Tech
Thanks Miyako. It’s the Label Editor. I trusted that the Label Editor was working, but it is saving an empty file. And, I just posted this to TAOW. Thanks John > On Mar 23, 2018, at 4:53 AM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hello, > > have you tried > > - runn

Re: DOCUMENT TO BLOB stopped working

2018-03-23 Thread Keisuke Miyako via 4D_Tech
Hello, have you tried - running the same code in 64-bit - running the same code in a "fresh" database - running the same code on an older macOS does the file open in the label editor itself? silly question, but are you sure the file is not 0 bytes? 2018/03/22 19:34、John Baughman via 4D_Tech <4

Re: DOCUMENT TO BLOB stopped working

2018-03-22 Thread John Baughman via 4D_Tech
Turns out it’s the Label Editor document MyLabel.4lb. Isolating the Document to blob… C_BLOB($blob) $vhDocRef:=Open document("") If (ok=1) CLOSE DOCUMENT($vhDocRef) DOCUMENT TO BLOB(document;$blob) end if If I open MyLabel.4lb, I get zero octets. If I open a text document I get

Re: DOCUMENT TO BLOB stopped working

2018-03-22 Thread Keisuke Miyako via 4D_Tech
Hello, is the context relevant? I mean, if you simply run DOCUMENT TO BLOB in a single line, in a new method, with the path hard coded, does it still not work? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faq

Re: DOCUMENT TO BLOB stopped working

2018-03-22 Thread John Baughman via 4D_Tech
Let me correct something. My original code did not have the Open Document line. I put in in just to match the documentation while I was debugging. I should have look like this… ARRAY TEXT($aSelected;0) $document:=Select document("";"*";"Select the label document that was saved to disk...";0;$aS

DOCUMENT TO BLOB stopped working

2018-03-22 Thread John Baughman via 4D_Tech
I wrote this in 2009 and it has worked for many years. I am not sure exactly when it broke, but I think within the last year. The following code loads a saved Label Editor document to the database. ARRAY TEXT($aSelected;0) $document:=Select document("";"*";"Select the label document that was sav