c# - how to write text and an image to a Response.OutputStream in ASP.NET -


I am dragging an image and using it using the following code on the web page:

< Pre> bitmap image = new bitmap (350, 350); Graphics g = graphics.from image (image); // image to gauge the image using g. Save (Response.OptputStream, System.Downing.imaging.imageformat.gif);

This works fine now I want to add some text to the output (javascript). However, when I do not either display text or image appears as garbage

What is the proper way to do this?

(* - I changed the content type and used reponse.write. Also, trying to write a byte array of text in the output stream.)

You can access your Javascript and & lt; Img & gt; tag that causes another request, where you react with this image.

Maybe and

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -