将图片放入byte数组

Image image = Image.FromFile(file);
                        System.IO.MemoryStream s = new System.IO.MemoryStream();
                        image.Save(s, image.RawFormat);
                        Byte[] bfye = s.ToArray();
posted @ 2013-05-12 14:16  perock  阅读(712)  评论(0编辑  收藏  举报