For .NET Framework 2.0 the following line of code (C#) seems to do the trick:

byte[] bytes = (byte[])TypeDescriptor.GetConverter(bmp).ConvertTo(bmp, typeof(byte[]));

Dmitriy