<?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 File blob not uploading from android to nuxeo server in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/file-blob-not-uploading-from-android-to-nuxeo-server/m-p/321016#M8017</link>
    <description>&lt;P&gt;Below is reference code : from &lt;A href="http://doc.nuxeo.com/display/NXDOC/Using+Nuxeo+Automation+Client" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC/Using+Nuxeo+Automation+Client&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;   // Get The Root
    Document root = (Document) session.newRequest("Document.Fetch").set(
            "value", "/").execute();
    // Create a File Document
    session.newRequest("Document.Create").setInput(root).set("type", "File").set(
            "name", "myfile").set("properties", "dc:title=My File").execute();

    // Upload The file
    File file = getTheFileToUpload();
    FileBlob fb = new FileBlob(file);
    fb.setMimeType("text/xml");
    // uploading a file will return null since we used HEADER_NX_VOIDOP
    session.newRequest("Blob.Attach").setHeader(
            Constants.HEADER_NX_VOIDOP, "true").setInput(fb)
            .set("document", "/myfile").execute();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;File content not creating in Nuxeo server
Error message:"Binary request not supported"&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2012 13:54:09 GMT</pubDate>
    <dc:creator>Bob_James</dc:creator>
    <dc:date>2012-05-03T13:54:09Z</dc:date>
    <item>
      <title>File blob not uploading from android to nuxeo server</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/file-blob-not-uploading-from-android-to-nuxeo-server/m-p/321016#M8017</link>
      <description>&lt;P&gt;Below is reference code : from &lt;A href="http://doc.nuxeo.com/display/NXDOC/Using+Nuxeo+Automation+Client" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC/Using+Nuxeo+Automation+Client&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;   // Get The Root
    Document root = (Document) session.newRequest("Document.Fetch").set(
            "value", "/").execute();
    // Create a File Document
    session.newRequest("Document.Create").setInput(root).set("type", "File").set(
            "name", "myfile").set("properties", "dc:title=My File").execute();

    // Upload The file
    File file = getTheFileToUpload();
    FileBlob fb = new FileBlob(file);
    fb.setMimeType("text/xml");
    // uploading a file will return null since we used HEADER_NX_VOIDOP
    session.newRequest("Blob.Attach").setHeader(
            Constants.HEADER_NX_VOIDOP, "true").setInput(fb)
            .set("document", "/myfile").execute();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;File content not creating in Nuxeo server
Error message:"Binary request not supported"&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2012 13:54:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/file-blob-not-uploading-from-android-to-nuxeo-server/m-p/321016#M8017</guid>
      <dc:creator>Bob_James</dc:creator>
      <dc:date>2012-05-03T13:54:09Z</dc:date>
    </item>
  </channel>
</rss>

