At the moment - with current beta 2 - it is not possible to store ByteArray to a Dictionary.
- is it by design? or will it be implemented?
dictionary.put(key,byteArray)
I only pray that Storage will accept ByteArray :confused:
System.println("A");
var byte_array = []b;
System.println(byte_array);
System.println("B");
var dict = {};
System.println(dict);
System.println("C");
dict.put(1, byte_array);
System.println(dict);
A
[]
B
{}
C
{1=>[]}