What you need to do:
1. use Base64 to convert your image to a String
2. encode the String. Note: the Maximum character storage capacity is 4,296
http://en.wikipedia.org/wiki/QRcode[
^]
If the string length of the Base64 data is greater than 4296, you will fail to encode with QR code.