hi i store pictures into MySQL database and i use ""***MySQLDriverCS***""
during typecasting dataset field to byte array i have problem as
*****An unhandled exception of type 'System.InvalidCastException' occurred in******
here is my code
////////////////////////////////////////////////////////
MySQLConnection connection_goster = new MySQLConnection(new MySQLConnectionString("localhost","album","root","asd").AsString);
connection_goster.Open();
MySQLDataAdapter adapter_goster = new MySQLDataAdapter("select * from resim",connection_goster);
DataSet dataset_goster = new DataSet();
adapter_goster.Fill(dataset_goster,"resim");
buffer_goster = (byte[])dataset_goster.Tables["resim"].Rows[0][1];