I tried different examples and did google also but could not find any working c# solution.. also found some codes in different languages but I'm unable to convert them to c# please help...
I've tried this:- Convert .arw Sony photo to .raw file
Also found dcraw source code but could not find anything related to ARW...
Image.FromFile and Image.FromStream methods was also giving "Parameter is not valid."
Just now I tried this and got "The image cannot be decoded. The image header might be corrupted."
BitmapDecoder bmpDec = BitmapDecoder.Create(new Uri(file), BitmapCreateOptions.DelayCreation, BitmapCacheOption.None);
BitmapEncoder bmpEnc = new BmpBitmapEncoder();
bmpEnc.Frames.Add(bmpDec.Frames[0]);
Stream ms = new MemoryStream();
bmpEnc.Save(ms);
Image srcImage = Bitmap.FromStream(ms);
Please help me to convert arw raw files to jpegs. I wanna do it with or without codecs. I don't know how to use sony's code so please help me with that. I just want to make this program work