<?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: Reading document content in smaller chunks. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201498#M154628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You would normally use content streaming for reading the large files.&amp;nbsp;&amp;nbsp; So you read a chunk of data into your buffer and then repeat until the end of the stream.&amp;nbsp;&amp;nbsp;&amp;nbsp; What language and environment are you operating in?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2008 16:04:56 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2008-12-29T16:04:56Z</dc:date>
    <item>
      <title>Reading document content in smaller chunks.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201497#M154627</link>
      <description>Hello friends,I want to get contents from repository in smaller chucks, so that it can easily accommodate in a byte array. As reading a document of huge size say 2-3GB and getting all content out of it at a short doesn’t seems to be possible. Do you have sample code with regards to this? Kind if you</description>
      <pubDate>Mon, 29 Dec 2008 13:18:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201497#M154627</guid>
      <dc:creator>amit_wmw</dc:creator>
      <dc:date>2008-12-29T13:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reading document content in smaller chunks.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201498#M154628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You would normally use content streaming for reading the large files.&amp;nbsp;&amp;nbsp; So you read a chunk of data into your buffer and then repeat until the end of the stream.&amp;nbsp;&amp;nbsp;&amp;nbsp; What language and environment are you operating in?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 16:04:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201498#M154628</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2008-12-29T16:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reading document content in smaller chunks.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201499#M154629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Rogers! I am working in Java language, in Windows environment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently in my code I am getting the content by reading file via contentService.getReader()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#################################################################################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ContentReader contentReader1 = contentService.getReader(fileRef, ContentModel.PROP_CONTENT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.out.println("Reading content" + contentReader1.getContentString());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#################################################################################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if have to use content streaming instead(as you suggested), what all things I need to do? Please suggest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2008 06:15:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201499#M154629</guid>
      <dc:creator>amit_wmw</dc:creator>
      <dc:date>2008-12-30T06:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reading document content in smaller chunks.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201500#M154630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any answers, anybody? Or can anyone at least share piece of sample code of how to use content streaming for reading the large files?&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;Amit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 05:33:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201500#M154630</guid>
      <dc:creator>amit_wmw</dc:creator>
      <dc:date>2009-01-19T05:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reading document content in smaller chunks.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201501#M154631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The contentReader has a getContentInputStream()&amp;nbsp; method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pretty much any Java text book will explain how to use InputStreams &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's something I found on the web &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.rinet.ru/JWP/ch11.htm#InputStream" rel="nofollow noopener noreferrer"&gt;http://docs.rinet.ru/JWP/ch11.htm#InputStream&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 23:02:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201501#M154631</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-01-19T23:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading document content in smaller chunks.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201502#M154632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Rogers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well instead, how about using "DownloadContentServlet" class of Alfresco API? Mean its mentioned (in comments)over there as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#FF0000;"&gt;"get the content and stream directly to the response output stream, assuming the repo is capable of streaming in chunks, this should allow large files to be streamed directly to the browser response stream."&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question now is, should I use this class considering alfresco to be capable of streaming data in chunks providing output? Please suggest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 12:02:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/reading-document-content-in-smaller-chunks/m-p/201502#M154632</guid>
      <dc:creator>amit_wmw</dc:creator>
      <dc:date>2009-01-21T12:02:18Z</dc:date>
    </item>
  </channel>
</rss>

