com = New SqlCommand
Dim strSQL As String
Dim dtAdapter As SqlDataAdapter
Dim dt As New DataTable
strSQL = "SELECT FileBinary FROM tblFileScan WHERE JobNo=" & txtLotNo.Text.Trim & " AND NameFile=" & Name & " "
dtAdapter = New SqlDataAdapter(strSQL, Conn)
com = dtAdapter.SelectCommand
dtAdapter.Fill(dt)
If dt.Rows.Count > 0 Then
HttpContext.Current.Response.ContentType = "application/pdf"
HttpContext.Current.Response.BinaryWrite(dt.Rows(0)("FileBinary"))
End If
dt = Nothing
มัน Error ตรง dt.Rows(0)("FileBinary") ว่า Option Strict On disallows implicit conversions from 'Object' to '1-dimensional array of Byte
ช่วยดูให้ทีนะครับว่าเป็นเพราะอะไร