blob will not save
I'm attempting to attach a Blob to a document.:
File tmpFile = Framework.createTempFile("...", ".csv"); ... write to the file Blob blob = Blobs.createBlob(tmpFile); myDocument.setPropertyValue("file:content", (Serializable) blob);
What's really odd is that we use this pattern all over the place. But in this case - it refuses to work. I can see the temp file in the tmp directory, and the GUI shows the matching temp file name on the web page. But when I download - the content never changes. And when I look in the “content” table in the Postgres database, the data value never changes - it's stuck at the same data folder name. Is there something obvious here I'm missing? Thanks.