Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to get the address of the image database and a slide show to datagridview c# winform

$
0
0
string[] ThreeLastItems = db.tbl_film.OrderByDescending(row => row.flm_id).Take(3).Select(row => row.flm_pic).ToArray();
            foreach (var item in ThreeLastItems)
            {
                byte[] binaryData = File.ReadAllBytes(item);
                MemoryStream ms = new MemoryStream(binaryData);
                Image returnImage = Image.FromStream(ms, false, true);
                dataGridView1.Rows[0].Cells[0].Value = returnImage;
            }

this code not working... :(

Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>