Error when trying to save


#1

I have a client who is attempting to save a ppt from my server.
They are getting an error in Internet Explorer saying that the content type unkown is not a valid filetype and the file cannot be saved.
They are able to recieve ppt in email and open them and can also open in the browser a file that is already saved to disk on the server.
Is there something in my code that is not allowing them to get the streamed ppt or is it on their end?
Here is the code I use to push out the ppt



Dim file As String = DateTime.Now.ToString(“yyyyMMddHHmmss”) & “ppt.ppt”
Me.Response.ContentType = “application/vnd.ms-powerpoint”
Me.Response.AppendHeader(“Content-Disposition”, “attachment; filename=” & file)
Me.Response.Flush()
Dim st As System.IO.Stream = Me.Response.OutputStream
j5cppt.pres.Write(st)
Me.Response.End()

Thanks
Ray

#2

Dear Ray,

I don’t see any errors here.
Why you flush Response before writing presentation to the stream?

Probably it’s a problem of client.