Image trnasfer using Remoting
-
Using remoting, when an Image?Bitmap is transfered, it is recieved in "NativeImage" format, from which the Image cannot be got back. Is there any other method of transfering Image using Remoting. CHEERS
-
Using remoting, when an Image?Bitmap is transfered, it is recieved in "NativeImage" format, from which the Image cannot be got back. Is there any other method of transfering Image using Remoting. CHEERS
Typically, you serialize this to a
byte[]
array which marshals with no problems. This is also true for XML Web Services. Another, much faster way (that doesn't require serialization, which will degrade performance) is to use DIME and the Web Service Enhancements (WSE), though you could implement DIME yourself pretty easily since the WSE isn't supported on Windows (only on Windows NT is it supported). See DIME: Sending Files, Attachments, and SOAP Messages Via Direct Internet Message Encapsulation -- MSDN Magazine, December 2002[^] for a conceptual overview and links to many resources (including the DIME specs), as well as a link to the WSE[^] which already includes these extensions and can be integrated with .NET Remoting and XML Web Services rather easily (especially the latter).Microsoft MVP, Visual C# My Articles