Hi!
I want to create a qr-code:
string photo = @"PHOTO;PNG;ENCODING=BASE64:" + Convert.ToBase64String(File.ReadAllBytes(Server.MapPath(@"/Img/qr_test.png")));
string vCardText = "BEGIN:VCARD\r\nVERSION:2.1\r\nN:";
vCardText += "Name" + "\r\n";
vCardText += "TEL;WORK;VOICE:" + "+00-0000-00000" + "\r\n";
vCardText += "EMAIL;PREF;INTERNET:" + "peter.xxx@yyy.cc" + "\r\n";
vCardText += photo + "\r\n";
vCardText += "END:VCARD";
RadBarcode barcode = new RadBarcode();
barcode.Text = vCardText;
barcode.Type = BarcodeType.QRCode;
barcode.LineWidth = 1;
System.Drawing.Image image = barcode.GetImage();
I get following error:
Parametername: The Text cannot be encoded with the current Version, ErrorCorrectionLevel and Mode.
Please help! Thank you!
I want to create a qr-code:
string photo = @"PHOTO;PNG;ENCODING=BASE64:" + Convert.ToBase64String(File.ReadAllBytes(Server.MapPath(@"/Img/qr_test.png")));
string vCardText = "BEGIN:VCARD\r\nVERSION:2.1\r\nN:";
vCardText += "Name" + "\r\n";
vCardText += "TEL;WORK;VOICE:" + "+00-0000-00000" + "\r\n";
vCardText += "EMAIL;PREF;INTERNET:" + "peter.xxx@yyy.cc" + "\r\n";
vCardText += photo + "\r\n";
vCardText += "END:VCARD";
RadBarcode barcode = new RadBarcode();
barcode.Text = vCardText;
barcode.Type = BarcodeType.QRCode;
barcode.LineWidth = 1;
System.Drawing.Image image = barcode.GetImage();
I get following error:
Parametername: The Text cannot be encoded with the current Version, ErrorCorrectionLevel and Mode.
Please help! Thank you!