<?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: Java-backed webscript to return a file (comes in byte[] format) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-to-return-a-file-comes-in-byte-format/m-p/296725#M249855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes you could do that.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you could write your content to the webscript response, either in binary or appropriately encoded.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you want JSON as the result of your webscript or the byte[] stream?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 16:26:28 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2014-01-30T16:26:28Z</dc:date>
    <item>
      <title>Java-backed webscript to return a file (comes in byte[] format)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-to-return-a-file-comes-in-byte-format/m-p/296724#M249854</link>
      <description>Hi Everyone,My scenario is that I have a Java-backed webscript which interacts with third-party library and as a result, a file is returned (in byte[] type). My question is how can I convert this byte[] into a file and pass it back in the webscript response (I only knew how to create a JSON response</description>
      <pubDate>Thu, 30 Jan 2014 16:17:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-to-return-a-file-comes-in-byte-format/m-p/296724#M249854</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-01-30T16:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Java-backed webscript to return a file (comes in byte[] format)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-to-return-a-file-comes-in-byte-format/m-p/296725#M249855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes you could do that.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you could write your content to the webscript response, either in binary or appropriately encoded.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you want JSON as the result of your webscript or the byte[] stream?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:26:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-to-return-a-file-comes-in-byte-format/m-p/296725#M249855</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-01-30T16:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Java-backed webscript to return a file (comes in byte[] format)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-to-return-a-file-comes-in-byte-format/m-p/296726#M249856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm now using the webscript provide by default. I put the following url in an html &amp;lt;a&amp;gt; tag:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Host/api/node/content/workspace/SpacesStore/{nodeRef}/filename.ext?a=true, and the user can download the file by click the link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm extends the "AbscractWebscript" class to handle the webscript and it can only write JSON response (or I only know this way).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you please provide more information of how I can do it via the approaches you mentioned? &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;Sun&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 13:42:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscript-to-return-a-file-comes-in-byte-format/m-p/296726#M249856</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-02-14T13:42:00Z</dc:date>
    </item>
  </channel>
</rss>

