Methods

This section describes the methods associated with the File API.

In this section

TopicDescription

abort

Aborts a read operation by an MSStreamReader or FileReader object.

append

Appends the supplied Blob to the current contents of the MSBlobBuilder object.

createObjectURL

Creates a URL for the specified object.

getBlob

Returns the Blob object for a given MSBlobBuilder object.

item

Returns a File object from a FileList object.

msClose

Closes the Blob object by releasing the stream held by the Blob and the associated file or memory resource.

msDetachStream

Detaches the IInputStream object from the MSStream in order to use the backing IInputStream object in other WinRT APIs.

msDetachStream (Blob)

Detaches the IInputStream object from the Blob in order to use the backing IInputStream object in other WinRT APIs.

readAsArrayBuffer (File and Blob)

Reads a File, Blob, MSStream into memory as an ArrayBuffer object.

readAsArrayBuffer (MSStreamReader)

This topic replaced by readAsArrayBuffer.

readAsBlob

Performs an asynchronous read of an MSStream object in order to create a Blob object.

readAsDataURL (FileReaders)

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

readAsDataURL (FileReaderSync)

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

readAsDataURL (MSStreamReader)

This topic replaced by the readAsDataURL topic.

readAsText (FileReader, MSStreamReader)

Reads a File, Blob, or MSStream object into memory as a text string.

readAsText

Replaced by readAsText topic.

revokeObjectURL

Revokes a URL from a document and frees the object associated with that URL.

slice

Returns a new Blob object with bytes ranging from its optional start parameter up to but not including its optional end parameter.

 

Additional resources

See msSaveBlob and msSaveOrOpenBlob for additional information.

 

 

Show:
© 2014 Microsoft. All rights reserved.