<?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 Get file size in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218843#M171973</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 need to obtain the file size and file type of for example an image. The file type is not problem, is the extension and with a switch or if instruction I can put the information but I don't know how I can obtain the size, the weight of the file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I prefer this option instead of obtaining the size dinamically into jsp pages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need it for information pages, example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PDF (image) &lt;/SPAN&gt;&lt;EM&gt;name_file&lt;/EM&gt;&lt;SPAN&gt; [1.230 kb]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody knows how can I do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Dec 2009 09:48:48 GMT</pubDate>
    <dc:creator>dvc</dc:creator>
    <dc:date>2009-12-18T09:48:48Z</dc:date>
    <item>
      <title>Get file size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218843#M171973</link>
      <description>Hello!!I need to obtain the file size and file type of for example an image. The file type is not problem, is the extension and with a switch or if instruction I can put the information but I don't know how I can obtain the size, the weight of the file. I prefer this option instead of obtaining the</description>
      <pubDate>Fri, 18 Dec 2009 09:48:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218843#M171973</guid>
      <dc:creator>dvc</dc:creator>
      <dc:date>2009-12-18T09:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get file size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218844#M171974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dvc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a similar problem. Did you manage to solve it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Allan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2010 11:28:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218844#M171974</guid>
      <dc:creator>v912485</dc:creator>
      <dc:date>2010-02-07T11:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get file size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218845#M171975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The file size is one of the attributes of the ContentData structure returned from the ContentService.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2010 12:56:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218845#M171975</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-02-07T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get file size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218846#M171976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick reply, but how would I access the ContentService from a (WCM) freemarker template?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To give you a bit more context, this template generates a jsp from a webform which contains links. The text for the links should contain file size of the files they point to, just as described in the first post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2010 13:18:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-file-size/m-p/218846#M171976</guid>
      <dc:creator>v912485</dc:creator>
      <dc:date>2010-02-07T13:18:36Z</dc:date>
    </item>
  </channel>
</rss>

