A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?
Try Dim client As New WebClient() Dim buffer As [Byte]() = client.DownloadData(strFileName) Dim fileName As String = "EmploymentContract.pdf" Response.Buffer = True Response.Clear() Response.ContentType = "application/pdf" Response.AddHeader("content-length", buffer.Length.ToString()) Response.BinaryWrite(buffer) Response.End() Catch ex As Exception Session("errorMessage") = "FileName = " & strFileName & " -- " & ex.Message Response.Redirect("errorPage.aspx") End Try
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.