iZettle / URL-Scheme

iZettle Custom URL Scheme Example Apps
https://developer.izettle.com
33 stars 9 forks source link

Image funkar inte #3

Closed johansolve closed 12 years ago

johansolve commented 12 years ago

Base64-kodad bild (url-encodad i länken) funkar att decoda och visa i webbläsaren, men izettle visar inte den.

image=iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAEPklEQVR4Xl3Ua0xTZxgH8H9L6SiCuqDiYhDGZeBQcIy5ZTHowpbpSDZvwAgMHIyN+0ViIOAlYjdlkHUVCpOLVJkCzYDKsAQEhBRKe6ClpVCQTDeMQcHLABFLyznvWhwz2T/Ph/fD83vzPHlzDshKGIZ5eTCZzb2q2YtiQ+7Zri+jfnXy64hOHCkqnVRpps3Lpv81WzG9Kgd0f8emj8C/41hCQfnZ9HZxdMEJYUCwNDy0Gug/GDuq0T+0olWCVUhkHWMxRys+2S+pFqV31X7RW/e5uDBTIky+cTWsq+5AQV5J5OEaoL++cfK/YUFWdK30AbZIrwgTe+rDmqvCGkpiRfwT/Oxz/KyC8oLjzeIYadXRWzVfCU4JAUV90+SrsUduP81KLs1MLBULjyslwfwsYcBuWVpaSWNpnORifErOz7v2yhISrpSdO9l2OSoyqhEY1ozMWPGCkVRW3CjKScnNLqV+28/PLgK0Sd+JO+sPVwjSRIJUmeTAyePFgDouprapIlZSnvl1ZF14ksFkNkFjmN8R2FL5Y96ln3JKzpyEkwKgyn4483tNRFxqSWKKoOtaSPvleGDIfqsyM61MJo4Q5AsBnWZ4hjNmeKwfXH/19Y/83O/16twc1nEWnuDh3EYPb52X0zM22+S0bmFA7wbQiy9YlM7T9MyhfcgDgFK9gFPfG4BuuFPAIDYPbvLps3FTwlMurcqY6nx7qtOvpToZbj1wUzn7yO1dKUDjaG1Wf3PsNmKzhwC5q7/C2btno3cPz1Ph4qsAdLmpVeZ+0APIz/wF0Lr49tm7K9Z5UBu9lBvclXAZ8gumOCwWAYiZxtyS7Rob1nouTTMsgLZlMxxbgA2uzTJAlmmy9jUWQzNGMxsMA5aZXmY4rk52wIItixg5jHGaB4br7r5kQRwbM4gVc3g0wLbn4s4UF48JttJb7NjzE/SuQw6ol94DOoCBExmVLZUZ/h+2ARpg6HyOgKhBdCjOtz4eoNkScEsiOp2XVQUMA73FlRMYvzu31rsbULVePEbGMdUddIEvhB1VmHuBaEC0KM8vtMjC06K/boZYGm6K0wEdoFANTbO93nSMj9wEPHn3LS2W4MQb43LnYbSsbgsABCAEsOHxnjvba2HCOx4U7KZD4+x3bl/PZoMVHeZyJHy+Ux3YPxwL5tHdP9/AttndO3RWySBwm3aN7yPdqAsBS2uIkuvfP/Lpg9Rvt3I5XJhoYsmNzglAvsGn7Wnfe8SAWcqPqHnLfZstRQY4swp/oscLldueoBZAXtegJyux4kWGmAhpap20+M+CL49eP7RIbbcuPPhvLVFef8hCog9UAD3V1wyvPkmGkCUrtkY7NhORpAHa4Xg9M7riTvPB+7I9Z5ILPVwbgNZ9oco+auqlpGmLIyCr9xDG6s2MmdLMFBWPB0UMfBB8ae/Hop375KfPj3b33n9hNL76jazkHwdclWepBfj+AAAAAElFTkSuQmCC

mansbernhardt commented 12 years ago

I have investigated your encoded images, and it seems there are different dialects of the base64 encoding, see http://en.wikipedia.org/wiki/Base64 It is the last two encoding (62, 63), that seem to differ. Our encoding table is:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_

which seems to correspond to the "Base64 with URL and Filename Safe Alphabet (RFC 4648 'base64url' encoding)"

johansolve commented 12 years ago

Works!