开发者

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

开发者 https://www.devze.com 2023-03-01 09:52 出处:网络
I need to convert aSystem.Drawing.Image object to gif whitout saving it to a file(that means i can\'t usethe save function). (bitearray or base64) sow i can send it to a web service.the code is on a s

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消