<?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: Problem with contentService.write in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238394#M191524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;to get the disk filename you have to get the contetn property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Reference r = new Reference(STORE, uuid, null);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node[] a = repositoryService.get(new Predicate(new Reference[]{r}, STORE, null));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i=0;i&amp;lt;a[0].getProperties().length;i++){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(a[0].getProperties(i).getName().equalsIgnoreCase("{&lt;A href="http://www.alfresco.org/model/content/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content&lt;/A&gt;")){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url=a[0].getProperties(i).getValue();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;then if you want the file path you just have to get the substring from "//" till "|" and concat it to the repository path&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2009 07:00:37 GMT</pubDate>
    <dc:creator>igdolmo</dc:creator>
    <dc:date>2009-09-17T07:00:37Z</dc:date>
    <item>
      <title>Problem with contentService.write</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238390#M191520</link>
      <description>Hello guys. I am having some problems with this method. When i make:Content content = contentService.write(ref, Constants.PROP_CONTENT, aux, contentFormat);i get this exception:628791AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode:  faultString:</description>
      <pubDate>Wed, 22 Jul 2009 15:04:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238390#M191520</guid>
      <dc:creator>igdolmo</dc:creator>
      <dc:date>2009-07-22T15:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with contentService.write</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238391#M191521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using a real DBMS?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually this appears on Apache Derby or HSQL database settings.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 17:37:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238391#M191521</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2009-07-23T17:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with contentService.write</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238392#M191522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m using the mysql embedded database. in earlier version i did this operation easy, but with 3.2 i´m having problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another issue, how can i get the real name of the file at disk. i.e. i have a file with uuid = 87564994-4b97-42e4-b629-b22d347b32c1 and at disk its name is: 11c4148e-2767-42b0-9e7d-8691ec9e20da.bin . i earlier versions the disk name was the same as the uuid, but now no. what can i do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 10:22:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238392#M191522</guid>
      <dc:creator>igdolmo</dc:creator>
      <dc:date>2009-07-24T10:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with contentService.write</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238393#M191523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all and igdolmo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find the solution how to get the real name of the file on the disk? yes uuid in db is different and in disk is different I found it with by facing very much difficulty. But file index get store in alf_node_properties &amp;gt; string_value field and in disk with same index name so easily can find buttttttt as you asked can we get real file name on disk? if you got the solution then please help me out too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sham&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 04:36:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238393#M191523</guid>
      <dc:creator>shamabbas</dc:creator>
      <dc:date>2009-09-03T04:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with contentService.write</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238394#M191524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;to get the disk filename you have to get the contetn property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Reference r = new Reference(STORE, uuid, null);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node[] a = repositoryService.get(new Predicate(new Reference[]{r}, STORE, null));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i=0;i&amp;lt;a[0].getProperties().length;i++){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(a[0].getProperties(i).getName().equalsIgnoreCase("{&lt;A href="http://www.alfresco.org/model/content/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content&lt;/A&gt;")){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url=a[0].getProperties(i).getValue();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;then if you want the file path you just have to get the substring from "//" till "|" and concat it to the repository path&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 07:00:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238394#M191524</guid>
      <dc:creator>igdolmo</dc:creator>
      <dc:date>2009-09-17T07:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with contentService.write</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238395#M191525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi igdolmo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for replying. I have already fixed this problem. And now my application is working perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks once again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sham&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 12:00:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-contentservice-write/m-p/238395#M191525</guid>
      <dc:creator>shamabbas</dc:creator>
      <dc:date>2009-09-17T12:00:16Z</dc:date>
    </item>
  </channel>
</rss>

