You need to call Response.End
.
Public Sub DownloadBlob(ByVal Blob As Byte(), ByVal FileName As String, ByVal Response As HttpResponse)
Response.AddHeader("content-disposition", String.Format("attachment;filename={0}", FileName.Replace(" ", "_")))
Response.ContentType = "text/plain"
Response.BinaryWrite(Blob)
Response.End()
End Sub
Also notice I set the ContentType a little differently.
Joel Coehoorn
2009-03-03 17:26:04