I have run this code in c# and it's working properly but when convert it in vb.net
generating error
The error occurs on the line that follows:
Dim
Response.BinaryWrite(
This is my code
Protected Sub View_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim stream As New IO.MemoryStream()Dim strcon As String = "Data Source=(local) ;Initial Catalog=SaveImage; User ID=***; Password=***;"
con.Open()
'string strcmd = "select Doc from trn_Image where iDocID=" + Convert.ToInt32(TextBox2.Text);
cmd.Parameters.Add(
cmd.Parameters(
Response.ContentType =
Response.[End]()
con.Close()