<?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[Error while trying to load an image to a report]]></title><description><![CDATA[<p>Hello,</p>
<p>I'm using jsreport with node, and I'm trying to show load a jsreport on PDF format with an image on it. Here are the code I'm writing:</p>
<p>let clientLogoPath = path.join(__dirname, &quot;../public/images/temp/client_logo.jpg&quot;);<br />
jsreport.init().then(() =&gt; {</p>
<pre><code>jsreport.render({
  template: {
    content: `&lt;h1 class=&quot;report-title&quot;&gt;Report&lt;/h1&gt;&lt;img src=&quot;{{asset &quot;${clientLogoPath}&quot; &quot;dataURI&quot;}}&quot; /&gt;`,
    engine: 'handlebars',
    recipe: 'chrome-pdf'
  },
}).then((out)  =&gt; {
  out.stream.pipe(res);
}).catch((e) =&gt; {
  res.end(e.message);
}); }).catch((e) =&gt; {
console.error(e.stack)
process.exit(1)})
</code></pre>
<p>When I try to Run the following error occur:</p>
<p>Error when evaluating engine handlebars for template anonymous<br />
Asset &quot;Full Path image) not found.</p>
<p>I'm just starting with jsreport, can anyone please guide me through?</p>
]]></description><link>https://forum.jsreport.net/topic/2616/error-while-trying-to-load-an-image-to-a-report</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 22:54:19 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2616.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Nov 2022 20:17:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error while trying to load an image to a report on Invalid Date]]></title><description><![CDATA[<p>Hello,</p>
<p>I'm using jsreport with node, and I'm trying to show load a jsreport on PDF format with an image on it. Here are the code I'm writing:</p>
<p>let clientLogoPath = path.join(__dirname, &quot;../public/images/temp/client_logo.jpg&quot;);<br />
jsreport.init().then(() =&gt; {</p>
<pre><code>jsreport.render({
  template: {
    content: `&lt;h1 class=&quot;report-title&quot;&gt;Report&lt;/h1&gt;&lt;img src=&quot;{{asset &quot;${clientLogoPath}&quot; &quot;dataURI&quot;}}&quot; /&gt;`,
    engine: 'handlebars',
    recipe: 'chrome-pdf'
  },
}).then((out)  =&gt; {
  out.stream.pipe(res);
}).catch((e) =&gt; {
  res.end(e.message);
}); }).catch((e) =&gt; {
console.error(e.stack)
process.exit(1)})
</code></pre>
<p>When I try to Run the following error occur:</p>
<p>Error when evaluating engine handlebars for template anonymous<br />
Asset &quot;Full Path image) not found.</p>
<p>I'm just starting with jsreport, can anyone please guide me through?</p>
]]></description><link>https://forum.jsreport.net/post/11347</link><guid isPermaLink="true">https://forum.jsreport.net/post/11347</guid><dc:creator><![CDATA[brunomanguinho]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Error while trying to load an image to a report on Invalid Date]]></title><description><![CDATA[<p>hi <a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/2467">@brunomanguinho</a>, <a href="https://jsreport.net/learn/assets" rel="nofollow">assets</a> by default search in the jsreport store, if you want to read a file from the filesystem you need to enable the <a href="https://jsreport.net/learn/assets#external-files-access" rel="nofollow">external file access</a>, add this to your jsreport options (either your configuration file or the options you pass when calling <code>jsreport({ /* options here */ })</code>:</p>
<pre><code class="language-js">{
  extensions: {
    assets: {
      allowedFiles: &quot;**/*.*&quot;,
      searchOnDiskIfNotFoundInStore: true
    }
  }
}
</code></pre>
<p>after it the assets will be allowed to read from the filesystem and will find your image.</p>
]]></description><link>https://forum.jsreport.net/post/11349</link><guid isPermaLink="true">https://forum.jsreport.net/post/11349</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>