cancel
Showing results for 
Search instead for 
Did you mean: 

blob will not save

Eric_Ace
Confirmed Champ
Confirmed Champ

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.

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

After setPropertyValue are you saving the document and then the session?

Eric_Ace
Confirmed Champ
Confirmed Champ

Yes - I wound up deleting the directory under the tmp data folder that held that file - "YY" in .../nxserver/data/binaries/data/XX/YY and after that it worked. (This was a test environment.) Thanks.

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.