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

**URL:** <https://forum.kirupa.com/t/printing-images-in-cgi-script-html-tags-reqd/282459>\
**Category:** Uncategorized\
**Created:** [February 22, 2009, 3:38pm UTC](https://forum.kirupa.com/t/printing-images-in-cgi-script-html-tags-reqd/282459 "2009-02-22T15:38:05Z")\
**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 22, 2009, 3:38pm UTC](https://forum.kirupa.com/t/printing-images-in-cgi-script-html-tags-reqd/282459/1 "2009-02-22T15:38:05Z")

</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, the 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.
