Hi I'm working with a website that is running asp.net (vb) and am trying to download an epub file that is stored outside the web root of the application. The code I'm running is:\[code\] Response.Buffer = True Response.ClearContent() Response.ClearHeaders() Response.ContentType = New MimeTypes().GetContentType(filename) Response.AddHeader("Content-Disposition", "attachment;filename=""" & fi.Name & """") Response.AddHeader("Content-Length", fi.Length.ToString) Dim bytes As Byte() = File.ReadAllBytes(fi.FullName) Response.OutputStream.Write(bytes, 0, bytes.Length) Response.Flush() Response.Close() Response.End()\[/code\]The file appears to download fine, it has the same size as the original, however when trying to open the downloaded copy the new Adobe Digital Editions returns the message "The document appears to have minor errors that might cause it to be displayed incorrectly" however the original opens without error.I've already tried using Response.TransmitFile and Response.WriteFile and both have the same result.Any advice would be great.