If you are already streaming the image, can't you just stream some HTML instead which (as well as the HTML you want to display) includes the image as an image tag within the HTML stream? You would have to take your current image data and base64 encode it first.
For example (not syntax checked)
<html>
<head>
</head>
<body>
<div>
My other stuff
</div>
<div>
<img src="data:image/tiff;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot">
</div>
</body>
</html>
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Joe Wells
Sent: 25 August 2011 17:38
To: web400@xxxxxxxxxxxx
Subject: [WEB400] How to use "Content-type: multipart..." with CGI
A little back ground -
1) We use CGI (similar to, but not CGIDEV) for our web based applications
2) We have written a web based viewer for our imaging repository,
3) We use Alternatiff to display the tiff images from our web based viewer. These images open in a separate window and are streamed to the browser with a mime type of "Content-Type: image/tiff". This works very well.
Now the question -
I would like to display some other HTML above the image. Thoughts on how this could be done? I have experimented with "Content-type: multipart....", but have not had any luck.
Thanks in advance for any suggestions.
Joe
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/web400.
NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.
--------------------------------------------------------------------------------
CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
As an Amazon Associate we earn from qualifying purchases.