streaming xml file adds character

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I'm saving an xml file, but when the file is streamed (downloaded by the
user), it appends an additional chracter on the end. This character is
invisible in notepad, but appears as a square WordPad. The document is an XML
file so it therefor becomes invalid and can't be parsed.

Any good ideas?

Thanks

Rob
 
For the record, it is necessary to add a content header:

Response.AddHeader( "content-length", size )

Otherwise I think the file must insert an "end of file" character.
 
Back
Top