<?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[dynamic asset (image) in v2]]></title><description><![CDATA[<p>I was able to set dynamic image with ejs in v1.  How to make same thing work in v2/ejs with asset</p>
<pre><code>&lt;img align=&quot;left&quot; src=&quot;{#image &lt;%=image_name%&gt;}&quot; width='40%'/&gt;</code></pre>
]]></description><link>https://forum.jsreport.net/topic/725/dynamic-asset-image-in-v2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 19:49:33 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/725.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Sep 2018 18:54:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to dynamic asset (image) in v2 on Fri, 14 Sep 2018 18:56:59 GMT]]></title><description><![CDATA[<p>I was able to set dynamic image with ejs in v1.  How to make same thing work in v2/ejs with asset</p>
<pre><code>&lt;img align=&quot;left&quot; src=&quot;{#image &lt;%=image_name%&gt;}&quot; width='40%'/&gt;</code></pre>
]]></description><link>https://forum.jsreport.net/post/3604</link><guid isPermaLink="true">https://forum.jsreport.net/post/3604</guid><dc:creator><![CDATA[Farah Javed]]></dc:creator><pubDate>Fri, 14 Sep 2018 18:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to dynamic asset (image) in v2 on Invalid Date]]></title><description><![CDATA[<p>Images extension is deprecated and not part of the jsreport v2.<br />
Use <a href="https://jsreport.net/learn/assets" rel="nofollow">assets</a> instead.<br />
The dynamic resolution should work there.</p>
]]></description><link>https://forum.jsreport.net/post/3607</link><guid isPermaLink="true">https://forum.jsreport.net/post/3607</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to dynamic asset (image) in v2 on Sat, 15 Sep 2018 11:21:38 GMT]]></title><description><![CDATA[<p>I am using asset now, I just want to know how can you write #image into  #asset form.  This is what i am using but its not working.  I am setting <code>image_name=logo</code></p>
<pre><code>&lt;img align=&quot;left&quot; src=&quot;{#asset &lt;%=image_name%&gt;.jpeg @encoding=dataURI}&quot;  width='40%'/&gt;

</code></pre>
<p>I get this error. From the error, I think its not even substituting <code>image_name</code> with <code>logo</code>.</p>
<pre><code>Error: Unable to find or read file C:\source\jsreportapp\&lt;%=image_name%&gt;.jpeg. ENOENT: no such file or directory, open 'C:\source\jsreportapp\&lt;%=image_name%&gt;.jpeg'
    at module.exports (C:\source\jsreportapp\node_modules\jsreport-core\lib\util\createError.js:9:13)
    at Reporter.createError (C:\source\jsreportapp\node_modules\jsreport-core\lib\reporter.js:259:12)
    at readFile (C:\source\jsreportapp\node_modules\jsreport-assets\lib\assets.js:110:20)
    at &lt;anonymous&gt;
caused by: Error: ENOENT: no such file or directory, open 'C:\source\jsreportapp\&lt;%=image_name%&gt;.jpeg'

</code></pre>
]]></description><link>https://forum.jsreport.net/post/3610</link><guid isPermaLink="true">https://forum.jsreport.net/post/3610</guid><dc:creator><![CDATA[Farah Javed]]></dc:creator><pubDate>Sat, 15 Sep 2018 11:21:38 GMT</pubDate></item><item><title><![CDATA[Reply to dynamic asset (image) in v2 on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/97">@Farah-Javed</a> you can see example usage of dynamic asset call using ejs <a href="https://playground.jsreport.net/w/bjrmatos/MKoFYy4w" rel="nofollow">here</a></p>
]]></description><link>https://forum.jsreport.net/post/3612</link><guid isPermaLink="true">https://forum.jsreport.net/post/3612</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>