<?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 PHP Automation Client office 2010 file issue in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/php-automation-client-office-2010-file-issue/m-p/313631#M632</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;We're using PHP Automation Client to upload documents on Nuxeo repository. Everything works fine except when we upload an Office 2010 file (having extensions such as .docx), when trying to open the uploaded file from Nuxeo, we receive error that the file is corrupted.&lt;/P&gt;
&lt;P&gt;Here's a snippet of the code for a docx type of file...&lt;/P&gt;
&lt;P&gt;$answer = $session-&amp;gt;newRequest('Blob.Attach')
-&amp;gt;set('params', 'document', $doc_id)
-&amp;gt;set('params', 'xpath', 'file:content')
-&amp;gt;loadBlob('/path/to/file/filename.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') // file location, mime type
-&amp;gt;sendRequest();&lt;/P&gt;
&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2013 10:51:53 GMT</pubDate>
    <dc:creator>Megha_</dc:creator>
    <dc:date>2013-02-12T10:51:53Z</dc:date>
    <item>
      <title>PHP Automation Client office 2010 file issue</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/php-automation-client-office-2010-file-issue/m-p/313631#M632</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;We're using PHP Automation Client to upload documents on Nuxeo repository. Everything works fine except when we upload an Office 2010 file (having extensions such as .docx), when trying to open the uploaded file from Nuxeo, we receive error that the file is corrupted.&lt;/P&gt;
&lt;P&gt;Here's a snippet of the code for a docx type of file...&lt;/P&gt;
&lt;P&gt;$answer = $session-&amp;gt;newRequest('Blob.Attach')
-&amp;gt;set('params', 'document', $doc_id)
-&amp;gt;set('params', 'xpath', 'file:content')
-&amp;gt;loadBlob('/path/to/file/filename.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') // file location, mime type
-&amp;gt;sendRequest();&lt;/P&gt;
&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 10:51:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/php-automation-client-office-2010-file-issue/m-p/313631#M632</guid>
      <dc:creator>Megha_</dc:creator>
      <dc:date>2013-02-12T10:51:53Z</dc:date>
    </item>
  </channel>
</rss>

