Read in the File by whatever means you wish and then use
Convert.ToBase64String(byte[] here)
and Append that to the InnerText of the node you wish.
Public Function ReadFileAsByteArray(ByVal path As String) As Byte()
Dim fs As New System.IO.FileStream(path, IO.FileMode.Open,
IO.FileAccess.Read, IO.FileShare.Read)
Dim by(Convert.ToInt32(fs.Length - 1)) As Byte
fs.Read(by, 0, by.Length)
fs.Close()
Return by
End Function
is a basis for converting a file to a byte array.
Joe Feser
"Adam Smith" <ad*********@hotmail.com> wrote in message
news:cd**************************@posting.google.c om...
How can I read binary data, specifically a microsoft word document into an
XmlNode?
Thanks in advance.
Adam Smith