KrakenTyio / eid-javascript-lib

Automatically exported from code.google.com/p/eid-javascript-lib
0 stars 0 forks source link

getPicture() works in FF 16 but not in Chrome 23 #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The following code works as expected in FF 16, but not in Chrome 23:

{{{
var card = cardReader.read();
console.log('20121117 picture (raw):',card.getPicture());
console.log('20121117 picture (encoded):',
    Ext.util.base64.encode(card.getPicture()));
}}}

In FF I get this in the Web Console:

{{{
20121117 picture (raw): [-1, -40, -1, -32, 0, 16, 74, 70, 73, 70, 0, 1, 2, 1, 
1, 44, 1, 44, 0, 0, -1, -37, ... -39]
20121117 picture (encoded): LTEsLTQwLC0xLC0zMiwwL... gzLDg1LC01MCw0MywtMSwtMzk= 
}}}

But in Chrome, it seems that getPicture returns a native object:

{{{
20121117 picture (raw): 
Object
+ __proto__: Object
++ constructor: function () { [native code] }
++++ arguments: null
++++ caller: null
++++ length: 0
++++ name: ""
+++ prototype: Object
+++ __proto__: function Empty() {}
+++ <function scope>
++ __proto__: Object

20121117 picture (encoded): W0JANTQ3MWU=
}}}

Original issue reported on code.google.com by luc.saf...@gmail.com on 18 Nov 2012 at 3:17

GoogleCodeExporter commented 8 years ago

Original comment by Johan.De...@gmail.com on 19 Nov 2012 at 12:42

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r190.

Original comment by Johan.De...@gmail.com on 10 Aug 2013 at 4:01