<?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 Re: How to use blob.attach operation with CURL ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318495#M5496</link>
    <description>&lt;P&gt;Here's a working curl command against 5.7.3:&lt;/P&gt;
&lt;P&gt;curl   -X POST -F request="{"params":{"document":"/default-domain/workspaces/mydoc"},"context":{}}" -F input=@myblob.bin &lt;A href="http://localhost:8080/nuxeo/site/automation/Blob.Attach" target="test_blank"&gt;http://localhost:8080/nuxeo/site/automation/Blob.Attach&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Notes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;POST method&lt;/LI&gt;
&lt;LI&gt;-F option tells curl to use multi-part/formdata encoding&lt;/LI&gt;
&lt;LI&gt;note the JSON 'request' parameter, the 'document' element refers to an &lt;EM&gt;existing&lt;/EM&gt; document that is of "File" doctype.&lt;/LI&gt;
&lt;LI&gt;@myblob.bin tells curl to send the contents of the file 'myblob.bin'&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2013 18:16:49 GMT</pubDate>
    <dc:creator>russtrotter_</dc:creator>
    <dc:date>2013-11-01T18:16:49Z</dc:date>
    <item>
      <title>How to use blob.attach operation with CURL ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318492#M5493</link>
      <description>&lt;P&gt;Hi I'm trying to attach a blob to a file in nuxeo with the linux command curl but i can't find the right syntax to make the operation. I have allready read the documetation from : &lt;A href="http://doc.nuxeo.com/display/NXDOC/REST+API" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC/REST+API&lt;/A&gt; and &lt;A href="http://doc.nuxeo.com/display/NXDOC55/Using+cURL" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC55/Using+cURL&lt;/A&gt;, but I still don't know how to manage blob.attach with CURL.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your advice.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:14:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318492#M5493</guid>
      <dc:creator>j0seph_</dc:creator>
      <dc:date>2012-07-24T16:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use blob.attach operation with CURL ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318493#M5494</link>
      <description>&lt;P&gt;same question, does anybody have a solution?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2013 18:01:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318493#M5494</guid>
      <dc:creator>promanov_</dc:creator>
      <dc:date>2013-01-23T18:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use blob.attach operation with CURL ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318494#M5495</link>
      <description>&lt;P&gt;same question. In general the documentation on REST APIs is really inadequate. Hopefully some more examples will be provided?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 07:07:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318494#M5495</guid>
      <dc:creator>mikejt4_</dc:creator>
      <dc:date>2013-11-01T07:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use blob.attach operation with CURL ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318495#M5496</link>
      <description>&lt;P&gt;Here's a working curl command against 5.7.3:&lt;/P&gt;
&lt;P&gt;curl   -X POST -F request="{"params":{"document":"/default-domain/workspaces/mydoc"},"context":{}}" -F input=@myblob.bin &lt;A href="http://localhost:8080/nuxeo/site/automation/Blob.Attach" target="test_blank"&gt;http://localhost:8080/nuxeo/site/automation/Blob.Attach&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Notes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;POST method&lt;/LI&gt;
&lt;LI&gt;-F option tells curl to use multi-part/formdata encoding&lt;/LI&gt;
&lt;LI&gt;note the JSON 'request' parameter, the 'document' element refers to an &lt;EM&gt;existing&lt;/EM&gt; document that is of "File" doctype.&lt;/LI&gt;
&lt;LI&gt;@myblob.bin tells curl to send the contents of the file 'myblob.bin'&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 18:16:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318495#M5496</guid>
      <dc:creator>russtrotter_</dc:creator>
      <dc:date>2013-11-01T18:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use blob.attach operation with CURL ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318496#M5497</link>
      <description>&lt;P&gt;Excellent that got me going, thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 01:06:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-blob-attach-operation-with-curl/m-p/318496#M5497</guid>
      <dc:creator>mikejt4_</dc:creator>
      <dc:date>2013-11-04T01:06:43Z</dc:date>
    </item>
  </channel>
</rss>

