Radu
Radu

Reputation: 3494

Convert System.Drawing.Image to format(.jpeg .gif) whitout saving

I need to convert a System.Drawing.Image object to gif whitout saving it to a file(that means i can't use the save function). (bitearray or base64) sow i can send it to a web service. the code is on a server and i don't have write permisssion on it. c# code.

Upvotes: 3

Views: 1733

Answers (1)

Damien_The_Unbeliever
Damien_The_Unbeliever

Reputation: 239636

You have to save it somewhere. You could use a MemoryStream, and use one of the Save overloads that accepts a stream.

Upvotes: 6

Related Questions