How does File.readAsDataUrl work?