<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic blob will not save in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/blob-will-not-save/m-p/327778#M14779</link>
    <description>&lt;P&gt;I'm attempting to attach a Blob to a document.:&lt;BR /&gt;
&lt;CODE&gt;File tmpFile = Framework.createTempFile("...", ".csv"); ... write to the file Blob blob = Blobs.createBlob(tmpFile); myDocument.setPropertyValue("file:content", (Serializable) blob);&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2017 13:36:09 GMT</pubDate>
    <dc:creator>Eric_Ace</dc:creator>
    <dc:date>2017-12-21T13:36:09Z</dc:date>
    <item>
      <title>blob will not save</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/blob-will-not-save/m-p/327778#M14779</link>
      <description>&lt;P&gt;I'm attempting to attach a Blob to a document.:&lt;BR /&gt;
&lt;CODE&gt;File tmpFile = Framework.createTempFile("...", ".csv"); ... write to the file Blob blob = Blobs.createBlob(tmpFile); myDocument.setPropertyValue("file:content", (Serializable) blob);&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:36:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/blob-will-not-save/m-p/327778#M14779</guid>
      <dc:creator>Eric_Ace</dc:creator>
      <dc:date>2017-12-21T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: blob will not save</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/blob-will-not-save/m-p/327779#M14780</link>
      <description>&lt;P&gt;After &lt;CODE&gt;setPropertyValue&lt;/CODE&gt; are you saving the document and then the session?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 17:08:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/blob-will-not-save/m-p/327779#M14780</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-12-21T17:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: blob will not save</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/blob-will-not-save/m-p/327780#M14781</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 11:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/blob-will-not-save/m-p/327780#M14781</guid>
      <dc:creator>Eric_Ace</dc:creator>
      <dc:date>2017-12-22T11:34:38Z</dc:date>
    </item>
  </channel>
</rss>

