Invalid parameter used when trying to save a graphic image of mms.

Posted by Sheery on Stack Overflow See other posts from Stack Overflow or by Sheery
Published on 2010-04-20T11:59:08Z Indexed on 2010/04/20 12:03 UTC
Read the original article Hit count: 174

Filed under:

Hi, I have an application build in C# using PC Suite API, when i am trying to copy mms image to my PC it gives me an error of invalid parameters, can any one help me in this matter ...my code is

 dataVersit = (CAContentAccess.CADataDefinitions.CA_DATA_VERSIT)Marshal.PtrToStructure(bufData, typeof(CAContentAccess.CADataDefinitions.CA_DATA_VERSIT));
                    byte[] bVersitObject = new byte[dataVersit.iDataLength];

                    Marshal.Copy(dataVersit.pbVersitObject, bVersitObject, 0 , dataVersit.iDataLength);
                    System.IO.Stream ios = System.IO.File.Open(fileDlg.FileName, System.IO.FileMode.Create);
                    ios.Write(bVersitObject, bVersitObject.GetLowerBound(0), dataVersit.iDataLength);
                    ios.Flush();
                    ios.Close();

© Stack Overflow or respective owner

Related posts about c#