1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-21 15:18:51 -05:00

XEP-0347: Replace external image with data URI.

Fixes #62
This commit is contained in:
Sam Whited 2016-08-20 15:25:25 -05:00
parent fb27ff2073
commit 84246ecae6

View File

@ -41,6 +41,12 @@
<jid>TBD</jid>
<uri>http://www-rnks.informatik.tu-cottbus.de/~rklauck</uri>
</author>
<revision>
<version>0.4.1</version>
<date>2016-08-20</date>
<initials>XSF Editor: ssw</initials>
<remark>Replace external image with data URI.</remark>
</revision>
<revision>
<version>0.4</version>
<date>2015-11-09</date>
@ -753,14 +759,7 @@
Using UTF-8 encoding when generating the QR-code, this string returns the following QR-code:
</p>
<p>
<img src='https://chart.googleapis.com/chart?cht=qr&amp;chs=200x200&amp;chl=IoTDisco;SN:394872348732948723;MAN:www.ktc.se;MODEL:IMC;%23V:1.2;KEY:4857402340298342'/>
</p>
<p>
To generate a QR-code, Google Chart API can be used:
<link url='https://chart.googleapis.com/chart?cht=qr&amp;chs=200x200&amp;chl=IoTDisco;SN:394872348732948723;MAN:www.ktc.se;MODEL:IMC;%23V:1.2;KEY:4857402340298342'>https://chart.googleapis.com/chart?cht=qr&amp;chs=200x200&amp;chl=IoTDisco;SN:394872348732948723;MAN:www.ktc.se;MODEL:IMC;%23V:1.2;KEY:4857402340298342</link>
</p>
<p>
<strong>Note:</strong> The hash sign (#) has been URL encoded to <strong>%23</strong> in the URL.
<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAABmJLR0QA/wD/AP+gvaeTAAAE9klEQVR4nO3d0WojORCG0WSZ93/l7MXeGAaDOqpPbXvPuQweuRN+NEVJLX3//Px8wbR/7n4APpNgkRAsEoJFQrBICBYJwSIhWCQEi4RgkRAsEoJFQrBICBYJwSIhWCQEi4RgkRAsEoJFQrBICBYJwSIhWCQEi8Sf2eG+v79nB/z6+nr2rvbjd+28z73yzI/jT33v1ed59gxTZn8XMxYJwSIhWCSGa6xHRd2zUlus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TNjkRAsEoJFInyvcMrO/YBX38Xb+d6p/WcrdtZDrRXyxgSLhGCReKE7oR9NnUd1cv/WXeMXz7PPjEVCsEgIFokX2o9Vnyla9JmKs92n/q21Qj6QYJEQLBKHaqzCzruKO+uPO+epPvuu4l4ga4V8IMEiIVgk3rjGelScxbDymeLdvbrnd4YZi4RgkRAsEi90PtZVO+tfU2tkO+uPKzXZybO4ZpmxSAgWCcEiEdZYdR9lquaY2iN19X3DnX7VyX1gv2PGIiFYJASLxJudj8W7MGORECwSgkVCsEgIFgnBIiFYJASLhGCRECwSgkVCsEgIFgnBIiFYJASLhGCRECwSgkVCsEgIFgnBIiFYJASLhGCR+BeI2KOmeSzf/QAAAABJRU5ErkJggg=='/>
</p>
<p>
Once the client has the required meta information about the Thing to claim ownership, it sends itself the following request to the Thing Registry: