myDataSet.ReadXML(sXMLFile); StreamWriter sw = StreamWriter("c:\temp2\payload.zip"); SoapHexBinary hb = new SoapHexBinary(myDataSet.Assignment[0].PayLoad); sw.Write(hb.ToString()); sw.Close();The problem is that the content saved in the file is quite different from what was transmitted in the PayLoad element. Therefore the saved zip file cannot be opened.
myDataSet.WriteXML("c:\temp2\newxmlfile.xml");
The content in the PayLoad element is correct.
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature