<?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 Got this exception &amp;quot;org.nuxeo.runtime.transaction.TransactionRuntimeException&amp;quot; when trying to upload  around ~4mb file as blob. in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/got-this-exception-quot-org-nuxeo-runtime-transaction/m-p/326003#M13004</link>
    <description>&lt;PRE&gt;&lt;CODE&gt; DirectoryInfo di = new DirectoryInfo(@"E:\Temp\1\Patriotic_Menu_1Sided");
            FileInfo[] imageFiles = di.GetFiles("*.jpg");

            var imgFile = imageFiles.FirstOrDefault();
            Blob uploadedFileBlob = new Blob(imgFile.Name, imgFile);


            var document = (Document)client.Operation("FileManager.Import")
                                .SetInput(uploadedFileBlob)
                                .SetContext("currentDocument", "/default-domain/workspaces/POC/")
                                .Execute()
                                .Result;

            FileInfo[] otherFiles = di.GetFiles("*.*");
            otherFiles = otherFiles.Where(file =&amp;gt; file.Extension != ".jpg" &amp;amp;&amp;amp; file.Extension != ".zip").ToArray();
            if (otherFiles.Count() &amp;gt; 0)
            {
                BlobList blobs = new BlobList();
                foreach (var file in otherFiles)
                    blobs.Add(new Blob(file.Name, file));


                var attachedDocuments = client.Operation("Blob.Attach")
                                 .SetInput(blobs)
                                 .SetParameter("document", document.Path)
                                 .SetParameter("xpath", "files:files")
                                 .Execute()
                                 .Result; //exception occur here

                
            }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Aug 2017 09:03:49 GMT</pubDate>
    <dc:creator>Sagar_Patil</dc:creator>
    <dc:date>2017-08-29T09:03:49Z</dc:date>
    <item>
      <title>Got this exception "org.nuxeo.runtime.transaction.TransactionRuntimeException" when trying to upload  around ~4mb file as blob.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/got-this-exception-quot-org-nuxeo-runtime-transaction/m-p/326003#M13004</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; DirectoryInfo di = new DirectoryInfo(@"E:\Temp\1\Patriotic_Menu_1Sided");
            FileInfo[] imageFiles = di.GetFiles("*.jpg");

            var imgFile = imageFiles.FirstOrDefault();
            Blob uploadedFileBlob = new Blob(imgFile.Name, imgFile);


            var document = (Document)client.Operation("FileManager.Import")
                                .SetInput(uploadedFileBlob)
                                .SetContext("currentDocument", "/default-domain/workspaces/POC/")
                                .Execute()
                                .Result;

            FileInfo[] otherFiles = di.GetFiles("*.*");
            otherFiles = otherFiles.Where(file =&amp;gt; file.Extension != ".jpg" &amp;amp;&amp;amp; file.Extension != ".zip").ToArray();
            if (otherFiles.Count() &amp;gt; 0)
            {
                BlobList blobs = new BlobList();
                foreach (var file in otherFiles)
                    blobs.Add(new Blob(file.Name, file));


                var attachedDocuments = client.Operation("Blob.Attach")
                                 .SetInput(blobs)
                                 .SetParameter("document", document.Path)
                                 .SetParameter("xpath", "files:files")
                                 .Execute()
                                 .Result; //exception occur here

                
            }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Aug 2017 09:03:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/got-this-exception-quot-org-nuxeo-runtime-transaction/m-p/326003#M13004</guid>
      <dc:creator>Sagar_Patil</dc:creator>
      <dc:date>2017-08-29T09:03:49Z</dc:date>
    </item>
  </channel>
</rss>

