<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Access file content as stream from a client js method</title><link>https://www.aras.com/community/f/development/3821/access-file-content-as-stream-from-a-client-js-method</link><description>Hi,

I have a json file in Vault that is linked to a property of an Item. How can I access json file stream from client side JS onload-event method ?

I have tried with fetchFileProperty, which prompts user for download of the json file, but what I need</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Access file content as stream from a client js method</title><link>https://www.aras.com/community/thread/1810?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 14:37:43 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:43412d92-d8d1-4f77-b234-5d2407c39195</guid><dc:creator>Eli Donahue</dc:creator><description>Hi ke,

Can you describe the use case you&amp;#39;re trying to implement? I haven&amp;#39;t found a way to stream file contents with a javascript IOM function yet, but there may be another way to accomplish your goal.

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access file content as stream from a client js method</title><link>https://www.aras.com/community/thread/1809?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 11:06:40 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:291ed243-b14b-4690-b2c1-cd6f17e5b467</guid><dc:creator>Former Member</dc:creator><description>Thank you so much, Angela and Eli.

Eli, yes I would need to use JS IOM to get file contents. Please note that I was not looking for Download of file contents, but the file contents as a stream and be able to convert json to a javascript object.

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access file content as stream from a client js method</title><link>https://www.aras.com/community/thread/1808?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 15:40:39 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:70078c4f-d805-4b26-8018-8413c801541e</guid><dc:creator>Eli Donahue</dc:creator><description>Hi ke,

If you would like to use the Aras RESTful API to get the contents of a vaulted file, you can do so by adding &amp;quot;$value&amp;quot; to the end of a query that returns a file item. The following sample query shows how to get the contents of a file related to a Document:
&lt;pre&gt;localhost/.../Document File(&amp;#39;64B4841FBB42421890FB998CAE615C62&amp;#39;)/related_id/$value&lt;/pre&gt;
The blog post Angela provided will give you all the other details you need to get started.

If you need to use the JavaScript IOM to get the file contents, let me know and I&amp;#39;ll see if I can hunt down that answer.

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access file content as stream from a client js method</title><link>https://www.aras.com/community/thread/1807?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 07:09:00 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6c9cc979-6ca2-48c2-9a2c-1c1d75c469e1</guid><dc:creator>AngelaIp</dc:creator><description>Hi,

maybe this blog article may help you:
&lt;a href="http://community.aras.com/en/calling-rest-web-service-aras-method/"&gt;http://community.aras.com/en/calling-rest-web-service-aras-method/&lt;/a&gt;

This sample e.g. shows how to use the content of a returned JSON file.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>