Create a new Component instance
The headers of the component
Optionalbody: ArrayBuffer | ArrayLike<number> | nullThe body of the component. Defaults to empty if null or undefined.
A Blob representation of this component. Headers will be lost.
StaticblobCreate a Component from a Blob. If blob media type is available,
it will be set in the Content-Type header. The blob's contents will be used as the part's body.
This method might be slow if a large file is provided as the blob contents need to be read.
Blob to create the component from
StaticfileCreate a Component from a File. If file media type is available,
it will be set in the Content-Type header. The file's contents will be used as the part's body.
This method might be slow if a large file is provided as the file contents need to be read.
File instance to create the component from
Use Component.blob.
StaticparseCreate a Component instance from a byte representation that includes the headers (if any) and body.
Component byte representation to parse
A part component (of a multipart).