Question: I try to convert a part of a C# Web App to make a C# Library. 

I used a Response object, but this one is no more recognized in the C# library. 

Here some code: 

```
// Create a CAPTCHA image using the text stored.
CaptchaImage ci = new CaptchaImage(textCaptcha, 200, 50, "Century Schoolbook");

// Change the response headers to output a JPEG image.
this.Response.Clear();
this.Response.ContentType = "image/jpeg";

// Write the image to the response stream in JPEG format.
ci.Image.Save(this.Response.OutputStream, ImageFormat.Jpeg);

// Dispose of the CAPTCHA image object.
ci.Dispose();

```

How to use the Response object, or change it with something better?
Thx

Answer: 
The response object represent the stream that you are sending to the client. In a desktop application there is no such concept you have no stream to send the client since your program is the client. In your above example you are writing a captchaImage to the stream this image would be displayed on the clients browser. If that is your only intent you can use an [picturebox](http://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox.aspx) control to display the image. If you just need to save the image you can write an image to a file stream in the same manner you wrote it to the response stream.
You need to use some other output stream/storage for your image. E.g. you can store it in file or in database.