I am trying to move and XML file from a folder in a server to another server. when the xml it's moved it appears with nulls between the letters. (Example: <[null]F[null]o[...]r[...]m[...]\n> != '<'form'\'>) ('quotes for clarification')
This is my scenario. I have a WebService
that transfer XML files to my folder "received" in my server SA. I also have a windows service in another server that check if new files goes to Folder "received", this service move the files from Folder A in server SA to Folder "Processed" in server SA. In order to move the file to the folder "Processed", this Service has to transfer that xml to folder C in the server SB, using a WCF service.
The files in the server SA doesn't have the nulls between the letters, but I dunno why it have it in my SB server.
This is the code I'm using to move the files.
Dim fs As New FileStream(Path.Combine(sourcepath, NombreEncuesta), FileMode.Open)
Dim archivo(fs.Length) As Byte
fs.Read(archivo, 0, archivo.Length)
sb.FileSend = archivo
fs.Close()