Can anybody suggest how I can convert an image to a byte array and vice versa?
I\'m developing a WPF application and using a stream reader.
You can use File.ReadAllBytes() method to read any file into byte array. To write byte array into file, just use File.WriteAllBytes() method.
File.ReadAllBytes()
File.WriteAllBytes()
Hope this helps.
You can find more information and sample code here.