So in the end what I needed to do was to create a handler that could deal with the byte and write it to memory stream. Below is how I grab the LONGBLOB from MYSQL and tie it to an image control to display it.
Handler:
''Call this sub from the page load event of your handler page
Private Sub RenderImage(ByVal ID As String)
Dim ImgID As Int32
ImgID = Request.QueryString("PicID")
Context.Response.ContentType = "image/jpeg"
Dim strm As IO.MemoryStream = GetMemStream(ID)
Dim buffer As Byte() = New Byte(4095) {}
Dim byteSeq As Integer = strm.Read(buffer, 0, 4096)
Do While byteSeq > 0
Context.Response.OutputStream.Write(buffer, 0, byteSeq)
byteSeq = strm.Read(buffer, 0, 4096)
Loop
Context.Response.BinaryWrite(buffer)
Return
End Sub
Public Function GetMemStream(ByVal Imgno As Integer) As IO.Stream
Dim conn As String = ""
Dim connection As New OdbcConnection(conn)
Dim sql As String = "
Dim PicData As Byte
Dim Cmd As New OdbcCommand(sql, connection)
Cmd.CommandType = CommandType.Text
Cmd.Parameters.AddWithValue("@ID", empno)
connection.Open()
Dim img As Object
img = Cmd.ExecuteScalar
'img = Cmd.ExecuteReader
Try
Return New IO.MemoryStream(CType(img, Byte()))
Catch
Return Nothing
Finally
connection.Close()
End Try
End Function
Apply the url of the handler in place of the image url. Picture handler is the name of the empty .aspx page I used as a handler.
<img src=""PictureHandler.aspx?Width=500&Height=500&IMGID=" ' + the id of your database image.
This is how I solved my problem I hope this helps people in the future.