Dynamic Images



  • Hi,

    I have a template that accesses images in azure storage. These are not static and change depending on parameters provided by the calling application. I have a number of options for addressing azure storage authorization (e.g. SAS token) and the one I am currently testing is through an azure service principal / manage identity. I was wondering if there was an extension for setting an azure identity at the time of calling the render API

    Regards



  • You can do whatever you want in the beforeRender. Like login to azure blob storage, download required images, convert to the base64 form and provide it to the req.data so template can set image src through handlebars.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.