# PRINTing images in CGI script (HTML tags reqd.)

**URL:** <https://forum.kirupa.com/t/printing-images-in-cgi-script-html-tags-reqd/281446>\
**Category:** programming\
**Created:** [February 9, 2009, 2:42pm UTC](https://forum.kirupa.com/t/printing-images-in-cgi-script-html-tags-reqd/281446 "2009-02-09T14:42:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamhere](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@iamhere](https://forum.kirupa.com/u/iamhere)\
**Post date:** [February 9, 2009, 2:42pm UTC](https://forum.kirupa.com/t/printing-images-in-cgi-script-html-tags-reqd/281446/1 "2009-02-09T14:42:18Z")

</div>

Hello,  
I have an image (a photo) in a variable (obtained from a MySQL database), eg. $ary[4]. I wish to display it in my Perl CGI script. My question is, th normal image tag ie. \<IMG\> takes a SRC parameter of a _file_, whereas I just want to PRINT the image in the variable. What tags must I surround it with?

Thanks.
