I am trying to create a QR code containing my vCard with an inline, Base64 encoded photo in PNG. (I am not interested in a photo referenced by a URI.)
I have studied vCard 3.0 specification, vCard 4.0 specification and Wikipedia articles "vCard" and "Base64".
I have created many vCards:
versions 2.1, 3.0, 4.0
photo as PNG or JPEG (just in case PNG does not work)
with and without line folding in Base64 photo
with and without diacritics in my contact details
Example:
BEGIN:VCARD
VERSION:3.0
N;CHARSET=UTF-8:Diblík;Petr
FN;CHARSET=UTF-8:Petr Diblík
TITLE;CHARSET=UTF-8:přední český mozaikář
NICKNAME:pd#
TEL;TYPE=cell:+420777282921
EMAIL:petr.diblik#mozaikar.cz
URL:http://www.mozaikar.cz
PHOTO;TYPE=PNG;ENCODING=B:iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQAAAACCEkxzAAABPklEQVR4AW3LMUvDQBjG8ecSSwbBdtEuauwgdHN3ueLmpJtgh36EfgDByya6+BEs+AGcBAcht9XRzUmMuLioRZHG2OTxXnqgqO9yP/48B2aQi37A/kHyHy6AEIJFCADsCnKHS4+ZiWAEtNaBSLBWepwXHi9j2WQIDJNG5KBSoiYIyKtgKKXHfEEAw4+dA1ggJjkU1B2kIHQ4lo0SSIEhT2AVoMnUwco3jQz3gynCPI9PK4MRJu04mTN4BPMYAR3MRKNFXCsW2s4TGUyhH5aIFZhcpynRgS70HYkEZmQoQJxpAaAHZoqm8jj0gFUUQCXwAH6XDvwY36g8avseq6+VAG29V/YEjXrJVLAcsbwR1N9YvQuaJEtB5PAsCB2YeoylwMGcCTT5OQYwu0VWt8C2e9ntY+OoSxZPhN3su1LxC1Cg7qrVLzSeAAAAAElFTkSuQmCC
END:VCARD
Some of the vCards (not encoded in a QR code yet) can be successfully imported to Google Contacts, including the photo.
But when encoded in a QR code (using goqr.me or qrcode-monkey.com), the vCard is always read WITHOUT the photo, using any of the following QR code readers for Android:
Google Goggles
QR Code Reader (Scan, Inc.)
Seznam.cz qr ctecka (Seznam.cz, a.s.)
(QR Code Desktop Reader (CodeTwo) for Windows cannot read those QR codes at all.)
Please advise how to improve the vCard so as it can be read from a QR code and saved to contacts INCLUDING the photo.
Or if the vCard is valid, is there some combination of a platform (no matter whether desktop or mobile), a QR code reader and a contact manager sw that can do that?
Related
I have started using QR code in one of my app. I have successfully implemented Google API for scanning phone number and generate QR. I have got QR code working, How do i save that QR code as an contact inside address book in iPhone. Please if there is any kind of link or help let me know. Thanks for all the wonderful support
Your QR should be encoded in a specific format. If your QR is vCard encoded, then you can parse that into a Contact and save it.
You might be able to use this as a reference:
How to save contact info from vCard into iPhone's Contacts App
I have a QR code set up to play a video.
It is pointing to an MP4 file, which works fine with sound when navigating to this using safari on the iPhone.
However, when I use the QR code to view the video on the iPhone the sound isn't working.
Here are the links for reference.
Video file: http://www.remarkablegroup.co.uk/temp/prokill.mp4
QR:
Additional information
I created the QR code using this online generator: http://qrcode.kaywa.com/
All I did was point the QR Code directly to the file name so that it would use the phones built in functionality.
Most QR code readers have a built in browser which they use to display web pages, and in this case presumambly, videos. The problem is most likely with this built in browser.
Depending on the reader, it will probably have an option to open the URL in Safari instead. I would bet that if you did so, the video would have sound.
Which reader are you using? Incidentally, it works fine with Optiscan.
I did qr code with Zxing, Right now I can read data but what I want is :
Example: Be able read type of QR Code is wifi, VCard, Calendar, url, etc...
if detect QR Code is wifi so I be able code to change wifi setting key,
So, how do i know that data read from QR code is wifi?
QR Code itself does not specify any types. Its plain text. It can be an HTTP URL or a custom URL. (e.g. it should have "type://wifi" inside it. You can then use it to see what the type is). But off-the-shelf, there is no such thing. You have to know who is creating the QR Codes and what is he storing in them.
There is no standard format for encoding wi-fi information in a QR code. There is a de facto standard suggested by zxing and supported by Barcode Scanner, which is like:
WIFI:T:WPA;S:mynetwork;P:mypass;;
(This imitates many of DoCoMo's standards for QR code contents.) I'd just reuse this if you can.
This page lists common encodings for other data. Whether you can do anything with them on the iPhone, I don't know. On Android you can scan these to configure Wi-fi and add contacts.
Here is a nice document of different QR code types. None of them are standard, but you get the idea: https://github.com/zxing/zxing/wiki/Barcode-Contents
There is platform specific format for Android.
WIFI:T:WPA;S:mynetwork;P:mypass;;
Though, if there is no API for setting the WIFI settings on iOS, any format doesn't help much :/
I have to create an app in iPhone which can generate QRCode for Text,Mail,Map,Photos etc. And can also Decode the QRCode. Has anyboday have idea about its API or example?
Thanks in advance
I usually use QR Code Encoder for QR generation and ZBar for decoding QR (It also works with other code standards)
They are very easy to use.
I am developing an app which reads barcode and QR code using Zbarcode framework. Is there any way to decode the QR code using objective c?
You can refer to this library called Zxing.
This has both QRCode Reader and BarCode Reader.
http://code.google.com/p/zxing/
Hope this helps you.