Groups | Blog | Home
all groups > dotnet drawing api > may 2006 >

dotnet drawing api : text in outputstream



John Hopper
5/10/2006 1:11:02 PM
Hello,

If I

Response.Write("hello")

before I

image2.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif)

then I see miscellaneous characters where the image should be.

When I reverse the order of the statements above then I don't see the text
at all.

Is there any way to mix text and image in the outputstream?

Göran Andersson
5/10/2006 11:49:15 PM
No. The output stream can only contain one file. Either it is a page
(containing text) or a binary file (like an image).

If you write the text first then the image, it will all be interpreted
as text. If you write the image first then the text, the text will end
up as garbage at the end of the image file.

[quoted text, click to view]
AddThis Social Bookmark Button