c# - ConvertTo not implemented in base TypeConverter -


i trying convert bitmap image byte[] array.

code

imagesourceconverter converter = new imagesourceconverter(); byte[] data = (byte[])converter.convertto(bitmapimage, typeof(byte[])); 

i getting following error while running code

an exception of type 'system.notimplementedexception' occurred in system.ni.dll not handled in user code

message

convertto not implemented in base typeconverter. 

i getting how implement convertto method. can please tell me how can solve issue?

get stream bitmapimage , pass memmorystream byte array. http://www.codeproject.com/articles/15460/c-image-to-byte-array-and-byte-array-to-image-conv


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -