<?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: Understanding alf_data/*.bin filenames? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12842#M5324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's a really, really bad idea to try and manipulate the database and the alf_data folder directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please use the public APIs instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2009 13:38:02 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2009-03-03T13:38:02Z</dc:date>
    <item>
      <title>Understanding alf_data/*.bin filenames?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12839#M5321</link>
      <description>The repository content is stored in the alf_data folder, but every file is renamed to a .bin file, with a rather long, confusing filename. However, the filenames seem to be somewhat consistent, and I was wondering if there's some way to get the corresponding information from the database about what</description>
      <pubDate>Mon, 20 Feb 2006 18:12:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12839#M5321</guid>
      <dc:creator>sirsean</dc:creator>
      <dc:date>2006-02-20T18:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding alf_data/*.bin filenames?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12840#M5322</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;The filename you see is constructed from a GUID relating to the content property meta-data for the node that represents the document+metadata. The content is stored in the file system as you can see, and the meta-data for the node is stored in the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The database was created as part of the .sql file you executed during installation. The data schema will be called "alfresco" if you haven't changed anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have the GUID from the file you are interested in, you can query the database to directly access information from it's meta-data properties, such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;select * from node_properties where actual_type='CONTENT' and string_value like '%2e2f0da8-9cb5-11da-a453-590fe1e0c33e%';&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;You should be able to build reverse queries given the GUID or other node property can locate the folder the content is present in (examine the string_value field for that row).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To change any data programatically, you should use the Alfresco APIs as otherwise you may cause inconsistent data issues (especially if the server is running at the time!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given a Node GUID (from the 'guid' column), content can be easily retrieved programmatically through the ContentService APIs, as demonstrated in this class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;org.alfresco.example.SimpleExampleWithContent&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Content can also be streamed through the DownloadContentServlet which can be used by any external program that can open a URL. Examine the content URLs generated in the web-client for an example or see this page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/URL_Addressability#DownloadContentServlet" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/URL_Addressability#DownloadContentServlet&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 09:34:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12840#M5322</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-02-21T09:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding alf_data/*.bin filenames?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12841#M5323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear kevin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Alfresco2.1 community edition. Need few clarifications on what you explained above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I am not wrong GUID=UUID, so considering the same&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;select * from node_properties where actual_type='CONTENT' and string_value like '%2e2f0da8-9cb5-11da-a453-590fe1e0c33e%';&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;1st thing GUID or UUID present in alf_node table is not there in alf_node_properties table!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You should be able to build reverse queries given the GUID or other node property can locate the folder the content is present in (examine the string_value field for that row).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, how should I be able to relate database feilds with file system (alf_data)? So that if I have meta data information I can easily fild my content in alf_data. Mean do you have any example reverse query (as you mentioned above)or any hint regarding the same? Will be kind if you can share the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amit karhade.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 13:16:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12841#M5323</guid>
      <dc:creator>amit_wmw</dc:creator>
      <dc:date>2009-03-03T13:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding alf_data/*.bin filenames?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12842#M5324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's a really, really bad idea to try and manipulate the database and the alf_data folder directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please use the public APIs instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 13:38:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12842#M5324</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-03-03T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding alf_data/*.bin filenames?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12843#M5325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mike &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I do agree with you on what you wrote above. But my point is just to have a clear understanding of database. At least how DB's metadatas are relate to file system. As we use Alfresco and somebody question's us tomorow atleast we should be in a position to answer them &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, please if you can share your knowlege on the Alfresco DB &amp;amp; file system relation, it will be very kind of you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 05:30:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/understanding-alf-data-bin-filenames/m-p/12843#M5325</guid>
      <dc:creator>amit_wmw</dc:creator>
      <dc:date>2009-03-04T05:30:06Z</dc:date>
    </item>
  </channel>
</rss>

