The reading path image displays an error, the program code is as follows:
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog _file = new OpenFileDialog();
_file.InitialDirectory = ".";
_file.Filter = "JPG(*.JPG;*.JPEG);|";
_file.ShowDialog();
if (_file.FileName != string.Empty)
{
string ProfilePicturePathName = _file.FileName;
// Telerik --->>> "System.Xml.XmlException: 'There are invalid characters in the specified encoding"
radPictureBox1.SvgImage = RadSvgImage.FromFile(ProfilePicturePathName);
// windows is ok
pictureBox1.Image= Image.FromFile(ProfilePicturePathName);
}
}
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog _file = new OpenFileDialog();
_file.InitialDirectory = ".";
_file.Filter = "JPG(*.JPG;*.JPEG);|";
_file.ShowDialog();
if (_file.FileName != string.Empty)
{
string ProfilePicturePathName = _file.FileName;
// Telerik --->>> "System.Xml.XmlException: 'There are invalid characters in the specified encoding"
radPictureBox1.SvgImage = RadSvgImage.FromFile(ProfilePicturePathName);
// windows is ok
pictureBox1.Image= Image.FromFile(ProfilePicturePathName);
}
}