开发者

Upload a system.drawing.image to my website

开发者 https://www.devze.com 2023-02-02 08:53 出处:网络
This should be fairly simple, but I j开发者_StackOverflow中文版ust can\'t see the logic in it! In my C# code I\'m having an image object (System.Drawing.Image) which I want to upload to my website.

This should be fairly simple, but I j开发者_StackOverflow中文版ust can't see the logic in it! In my C# code I'm having an image object (System.Drawing.Image) which I want to upload to my website.

I know how to upload files with the FileUpload control, but what about when I only have the Image object?

Thanks in advance!


When you have an Image, simply turn it into a byte array and send it to a service. Here's my article on the subject.

0

精彩评论

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