readAsDataURL method
This topic replaced by the readAsDataURL topic.Reads a MSStreamReader object into memory as a data URL string.
![]() |
Syntax
MSStreamReader.readAsDataURL(stream, size);Parameters
- stream [in]
-
Type: MSStream
- size [in, optional]
-
Type: signed long long
The optional length parameter specifies the number of bytes that will be read from the specified MSStream object. If the length parameter is not specified the read operation will continue until the end of the MSStream object is reached.
Return value
This method does not return a value.
Remarks
This method asynchronously starts reading the contents of the specified MSStream 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
Show:
