EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

readAsDataURL method

Reads a File or Blob object into memory as a data URL string.

Syntax

var dataUrl = FileReader.readAsDataURL(object);

Parameters

Pass one of the following:

object [in]

Type: File or Blob

Return value

Type: dataUrl

See below

Remarks

This method asynchronously starts reading the contents of the specified File or Blob object. When the read operation is complete, the readyState property is set to DONE and the onloadend event is fired. At that time, the result property contains a data URL string that encodes the file's data that was read.

See also

FileReader

 

 

Mostrar:
© 2015 Microsoft