S
Sid Price
Thank you for spotting that, when I correct that error the code works asJon Skeet said:2) You're not not rewinding your MemoryStream on the reading side. Use
theData.Position = 0
before passing it to theDoc.Load
required.
BTW: the three strange bytes (EF BB EF) are indeed the BOM for UTF-8
encoding and they appear not be a problem.
Again Jon thank you for all your help,
Sid.