Use the old technique and it works fine.
I only cannot use an ascx page (webUserControl_) Only an normal aspx page
works:
Now just use the simple way and works fine for almost all picture.
____________________________________________________________________________
________________________________
Dim Ids As String = Request.QueryString("ID")
Dim Wb As New OrmadinASP.Net.WebConnection
'If Wb.IsNullString(Ids) = True Then Ids = 1
If Wb.IsNullString(Ids) = False Then
Dim Cn As New MySqlConnection
Dim Dr As MySqlDataReader
Cn = Wb.WebConnect(False)
Dim Cmd As MySqlCommand = New MySqlCommand("SELECT ID, type, image from
blobs where ID = @Ids and enabled=1", Cn)
Cmd.Parameters.Add("@Ids", MySqlType.Int)
Cmd.Parameters(0).Value = Convert.ToInt16(Ids)
Try
Cn.Open()
Dr = Cmd.ExecuteReader(CommandBehavior.SequentialAccess)
If Dr.Read Then
With Response
..ContentType = Dr.GetString(1)
..BinaryWrite(Dr(2))
End With
End If
Dr.Close()
Cn.Close()
Catch Exc As Exception
'
End Try
Else
'
End If
____________________________________________________________________________
________________________________
The MySQL provider can be switches with the SQLprovider.
Regards,
RJ