WCF ecscpe character
-
hello I'm in process of wiring down many object hierarchy developed by other guys in my firm - some are quite large and I intend to convert them to byte[] and then compress via System.IO.Compression[^]. But after compression WCF seems to have screwed up due to special escape characters. I Googled but cannot find any documentation - I need to have the exact list of escape characters but not sure why it's so difficult to find. Thanks http://social.msdn.microsoft.com/Forums/en/adodotnetdataservices/thread/9559c893-aac1-438b-b71e-c132d09c0f86[^]
-
hello I'm in process of wiring down many object hierarchy developed by other guys in my firm - some are quite large and I intend to convert them to byte[] and then compress via System.IO.Compression[^]. But after compression WCF seems to have screwed up due to special escape characters. I Googled but cannot find any documentation - I need to have the exact list of escape characters but not sure why it's so difficult to find. Thanks http://social.msdn.microsoft.com/Forums/en/adodotnetdataservices/thread/9559c893-aac1-438b-b71e-c132d09c0f86[^]
resolved! I embed objects as byte[] wrapped inside xml MyLib.Xxx ... serialized byte[] goes here Initially, byte[] goes under was formatted using Encoding.ACSII.GetString This screws up because of funny character. All is fine after replacing Encoding.ASCII.GetString with Convert.To/FromBase64String()