createBlobFromRandomAccessStream method
Creates a Blob or msStream for the MSApp namespace.
Syntax
object.createBlobFromRandomAccessStream(type, seeker, retVal)Parameters
- type [in]
-
Type: DOMString
Content type of the data. This string should be in the format specified in the media-type token defined in section 3.7 of RFC 2616.
- seeker [in]
-
Type: any
IRandomAccessStream to be stored in the Blob.
Exceptions
| Exception | Condition |
|---|---|
|
The node type is incompatible with the expected parameter type. For versions earlier than a Windows Store app using JavaScript, TYPE_MISMATCH_ERR is returned. |
Remarks
Creates a Blob or msStream from Windows Runtime types via the MSApp namespace on the window object.
Examples
var randomAccessStream = dataPackage.GetData("image/bmp"); var blob = window.MSApp.createBlobFromRandomAccessStream("image/bmp", randomAccessStream); var url = window.URL.createObjectURL(blob); document.getElementById("imagetag").src = url;
See also
Build date: 11/28/2012
