Groups | Blog | Home
all groups > dotnet web services enhancements > may 2006 >

dotnet web services enhancements : WSE and Image



Hung Ngo
5/28/2006 9:32:01 PM
Hi,
I'm writing a WSE web service. Now, I want to send the Image Object from the
web service to client, but the exception:
"Cannot convert from WebServiceWse.Image to System.Drawing.Image".
Can you tell me how to solve this problem?
How about MTOM?
Martin Kulov [MVP]
5/30/2006 1:11:50 AM
[quoted text, click to view]

Hi Hung,

Basically these are two different classes. You need to convert the byte
array that you have received from the web service to a drawing object for
example with Image.FromStream(...) method.
Take a look at my article how to use MTOM [1].

[1] http://www.ftponline.com/vsm/2006%5F05/magazine/columns/gettingstarted/

Regards,

--
Martin Kulov
http://www.codeattest.com/blogs/martin

MVP, MCT, MCSD.NET Early Achiever
AddThis Social Bookmark Button