<?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: Writing content from binary in server side javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304693#M257823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, thanks for the reply and sorry for not being clear in my explanation. So I got string from JSON that represents binary data. Now I should probably convert it to Base64 and write it to the content of the node. I'm afraid my explanation is still quite obscure. I just don't know how to explain it better. However, I quite already gave up on that idea to use javascript. Instead I'm now implementing Java-Backed Web Script and my plan is to do the conversion with Java. I'm not yet closing the topic if someone can tell me how to do this in JavaScript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2015 10:13:16 GMT</pubDate>
    <dc:creator>sihnu</dc:creator>
    <dc:date>2015-03-27T10:13:16Z</dc:date>
    <item>
      <title>Writing content from binary in server side javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304690#M257820</link>
      <description>Hi,we have this kind of scenario. We got file data as binary from JSON and that binary should be converted to text and added as content to a document that is also created in the same web script. Now ScriptContent has following method "write" that takes another ScriptNode as a parameter, does the con</description>
      <pubDate>Thu, 26 Mar 2015 14:32:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304690#M257820</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2015-03-26T14:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Writing content from binary in server side javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304691#M257821</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 guess I could convert the string to Base64 and add it as a content like this content.content = content. I know I could use btoa() to convert the string but I can't access the function from server side javascript. Is there any way I can access native functions from server side?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 07:41:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304691#M257821</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2015-03-27T07:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Writing content from binary in server side javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304692#M257822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean by "raw binary data".&amp;nbsp;&amp;nbsp;&amp;nbsp; That's meaningless,&amp;nbsp; its data in some known format.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And you want it in another format.&amp;nbsp;&amp;nbsp; What exactly.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please reword your questions.&amp;nbsp; You may understand what you are asking in your postings.&amp;nbsp;&amp;nbsp; Others probably can't follow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:53:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304692#M257822</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-03-27T09:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Writing content from binary in server side javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304693#M257823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, thanks for the reply and sorry for not being clear in my explanation. So I got string from JSON that represents binary data. Now I should probably convert it to Base64 and write it to the content of the node. I'm afraid my explanation is still quite obscure. I just don't know how to explain it better. However, I quite already gave up on that idea to use javascript. Instead I'm now implementing Java-Backed Web Script and my plan is to do the conversion with Java. I'm not yet closing the topic if someone can tell me how to do this in JavaScript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 10:13:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304693#M257823</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2015-03-27T10:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Writing content from binary in server side javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304694#M257824</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;SPAN&gt;I am using CMIS api to create folder in alfresco i.e. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newFolderProps.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newFolderProps.put(PropertyIds.NAME, folderNAme);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;createdFolder = reqdFolder.createFolder(newFolderProps);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here I have one problem that I have to create 100 folders , but this method will create one folder at a time so in this scenerio it will call 100 times same function,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to create 100 or more than 100 folder in a single call of alfresco where I can give whole structure to create folder .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So it will increase the performance and send less call to alfresco server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please send me reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am using alfresco 4.2.c community edition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 10:33:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/writing-content-from-binary-in-server-side-javascript/m-p/304694#M257824</guid>
      <dc:creator>shantprai</dc:creator>
      <dc:date>2015-03-27T10:33:00Z</dc:date>
    </item>
  </channel>
</rss>

