<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Saving assets via API]]></title><description><![CDATA[<p>Is it possible to send an asset (image) via the API.<br />
I have 1 report that can use different logos for companies. I would like to save the companies logo to JSReport so I can dynamically render their logo by convention.</p>
<p><code>&lt;img src=&quot;{#asset {{:Organisation.FranchiseId}}-Logo.jpg @encoding=dataURI}&quot; /&gt;</code></p>
<p>At the moment I am having to upload manually.</p>
]]></description><link>https://forum.jsreport.net/topic/790/saving-assets-via-api</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 19:43:03 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/790.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Oct 2018 05:36:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Saving assets via API on Invalid Date]]></title><description><![CDATA[<p>Is it possible to send an asset (image) via the API.<br />
I have 1 report that can use different logos for companies. I would like to save the companies logo to JSReport so I can dynamically render their logo by convention.</p>
<p><code>&lt;img src=&quot;{#asset {{:Organisation.FranchiseId}}-Logo.jpg @encoding=dataURI}&quot; /&gt;</code></p>
<p>At the moment I am having to upload manually.</p>
]]></description><link>https://forum.jsreport.net/post/3866</link><guid isPermaLink="true">https://forum.jsreport.net/post/3866</guid><dc:creator><![CDATA[Carl Blanchard]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Saving assets via API on Sun, 21 Oct 2018 23:53:54 GMT]]></title><description><![CDATA[<p>Yes, using odata API. See it described in the docs.<br />
<a href="https://jsreport.net/learn/api" rel="nofollow">https://jsreport.net/learn/api</a></p>
<p>I also recommend to open browser F12 tools and try to upload an asset using jsreport studio. You should see the creation request example. In this case you need to send content and name property where the content is base64 representation of the image.</p>
<p><img src="/uploads/files/1540153641803-upload-171aaba5-0494-45f2-bd63-d294e1e1a2d3-resized.png" alt="0_1540153639233_upload-171aaba5-0494-45f2-bd63-d294e1e1a2d3" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/post/3873</link><guid isPermaLink="true">https://forum.jsreport.net/post/3873</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Sun, 21 Oct 2018 23:53:54 GMT</pubDate></item></channel></rss>