لدي مشكل في فراء ملف ثنائي، حيث ان رسالة الخطاء التالية تظهر دوما مع هدا النوع من الملفات ، اتمنى ان اجد الحل لديكم با اخواني.
رسالة الخطاء :
'Unable to translate bytes [A0] at index 3 from specified code page to Unicode
الكود :
Dim r As Int32
Dim readFile As IO.FileStream = New IO.FileStream("f:\md2file.md2", IO.FileMode.Open, IO.FileAccess.Read)
Dim BFormatter As New Runtime.Serialization.Formatters.Binary.BinaryForm atter()
r = CType(BFormatter.Deserialize(readFile), Int32)
readFile.Close()
Me.Text = r.ToString