Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


How can i add personal image jpeg to qr code c#

How can i add personal image jpeg to qr code c#


How to encoded personal image and generate qr code for personal image with data related ?


I work in visual studio 2015 using c# windows form application .

I need to encode personal image to qr code . Meaning when i select personal image

then click to generate it will generate qr code with personal image and related data as

user name and address and card no .

Until now i generated qr code with text data as address textbox and user name and card no But No Personal Image .

Meaning i need to generate qr code include customer name and address and card no

And Image all done remaining image .

I do all data but cannot do image so that

How to encoded personal image and generate qr code for personal image ?

code i made until now to all data without image :

CODE --> c#

//button1 to encoded all data i do all text but remaing image How to make  
        private void button1_Click(object sender, EventArgs e)  
            if (textBox1.Text =="")  

                MessageBox.Show("Please Enter Value ","Error");  
            using (SaveFileDialog sv = new SaveFileDialog() { Filter = "JPEG|.jpg", ValidateNames = true })  
                if (sv.ShowDialog() == DialogResult.OK)  
                    MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();  
                    encoder.QRCodeScale = 8;  
                    string encoding="UserName : " + textBox1.Text + "\r\n" + "CardNo : " + textBox2.Text + "\r\n" + textBox3.Text;  
                    Bitmap bmp = encoder.Encode(encoding);  
                    pictureBox1.Image = bmp;  
                    bmp.Save(sv.FileName, ImageFormat.Jpeg);  


//button2 for selecting personal image   
        private void button2_Click(object sender, EventArgs e)  
            using (OpenFileDialog sv1 = new OpenFileDialog() { Filter = "JPEG|*.jpg", ValidateNames = true,Multiselect=false })  
                if (sv1.ShowDialog() == DialogResult.OK)  
                    pictureBox2.Image = Image.FromFile(sv1.FileName);  




RE: How can i add personal image jpeg to qr code c#

It's not practical to store images in QR for several reasons.

Google "Store image in QR code"

"Trying is the first step to failure..." - Homer

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close