<?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: How to transfer a file to ALFRESCO from a java application in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-transfer-a-file-to-alfresco-from-a-java-application/m-p/297318#M250448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Pavan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;web script is the easiest way through which you can upload a document to alfresco from external application. I did the same in my previous project. You will need to create a POST web script which will accept file as form-field parameter. Also you can send metadata(custom properties related to file) in request. In web script implementation class, you will need to get file object from request with as form-field data, get its &amp;lt;java&amp;gt;InputStream&amp;lt;/java&amp;gt;, create a node, write the file &amp;lt;java&amp;gt;InputStream&amp;lt;/java&amp;gt; to this node with the help of &amp;lt;java&amp;gt;ContentWriter&amp;lt;/java&amp;gt; which you will get from &amp;lt;java&amp;gt;ContentService&amp;lt;/java&amp;gt;. As you are adding something into alfresco, you will need to provide authentication. This can be done by attaching ticket with request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 10:36:06 GMT</pubDate>
    <dc:creator>hardik_t_mistry</dc:creator>
    <dc:date>2013-04-11T10:36:06Z</dc:date>
    <item>
      <title>How to transfer a file to ALFRESCO from a java application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-transfer-a-file-to-alfresco-from-a-java-application/m-p/297316#M250446</link>
      <description>Hello Experts,&amp;nbsp;&amp;nbsp;&amp;nbsp; I am fairly new to ALFRESCO and wanted to know how I can transfer data..say a file to ALFRESCO system from a java application. I just wanted to have some heads up on this one as there is lot of information in docs.&amp;nbsp;&amp;nbsp;&amp;nbsp; So, I kindly request you to show me a starting point where I can</description>
      <pubDate>Sun, 07 Apr 2013 19:26:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-transfer-a-file-to-alfresco-from-a-java-application/m-p/297316#M250446</guid>
      <dc:creator>pavan</dc:creator>
      <dc:date>2013-04-07T19:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a file to ALFRESCO from a java application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-transfer-a-file-to-alfresco-from-a-java-application/m-p/297317#M250447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Pavan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes there are various ways to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Webscript (REST based webservices) is probably one the simplest way I found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts_Examples" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts_Examples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can even check for the SDK examples for achieving the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_SDK" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_SDK&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 02:31:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-transfer-a-file-to-alfresco-from-a-java-application/m-p/297317#M250447</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-04-08T02:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a file to ALFRESCO from a java application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-transfer-a-file-to-alfresco-from-a-java-application/m-p/297318#M250448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Pavan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;web script is the easiest way through which you can upload a document to alfresco from external application. I did the same in my previous project. You will need to create a POST web script which will accept file as form-field parameter. Also you can send metadata(custom properties related to file) in request. In web script implementation class, you will need to get file object from request with as form-field data, get its &amp;lt;java&amp;gt;InputStream&amp;lt;/java&amp;gt;, create a node, write the file &amp;lt;java&amp;gt;InputStream&amp;lt;/java&amp;gt; to this node with the help of &amp;lt;java&amp;gt;ContentWriter&amp;lt;/java&amp;gt; which you will get from &amp;lt;java&amp;gt;ContentService&amp;lt;/java&amp;gt;. As you are adding something into alfresco, you will need to provide authentication. This can be done by attaching ticket with request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 10:36:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-transfer-a-file-to-alfresco-from-a-java-application/m-p/297318#M250448</guid>
      <dc:creator>hardik_t_mistry</dc:creator>
      <dc:date>2013-04-11T10:36:06Z</dc:date>
    </item>
  </channel>
</rss>

