Invalid parameter used when trying to save a graphic image of mms.
- by Sheery
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();