Changing dataUri to support map of arraybuffer and json.