Run the following code in Windows 2008 x64 as a desktop application in c#
byte[] arrImage = File.ReadAllBytes(PathImage); MemoryStream ms = new MemoryStream(arrImage); BitmapDecoder bitmapDecoder = JpegBitmapDecoder.Create(ms, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.OnLoad); // Error: Value does not fall within the expected range // or // BitmapDecoder bitmapDecoder = BitmapDecoder.Create(ms, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.OnLoad);
Someone who can guide me with this error. Just some pictures
thk