So questions is:
- This is reporting application making use of Catalyst frameworks
- In Controllers, I generate QR code images and want to pass this URL (of generated image)
to specific view/front end? Note: I do not want to pass binary or base64 data from
controller to view? - What should I stash in $c->stash->{Images} = ????
Any idea, hints ? Please guide…
Personally, I bypass the View entirely, and set the content-type and body to return an image directly from a controller in situations like this. Writing the image out to a file just so another call to the server can retrieve it seems neither sensible nor scalable. Ultimately, unless you’re doing something very unorthodox, you’ll be requesting the image from a page using
<img src="..."/>anyway.… and your page requests
Hope that helps.