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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top