Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / ImageData Class / ToStream Method

In This Topic
    ToStream Method (ImageData)
    In This Topic
    Creates and returns a stream containing the image bytes.

    If the image bytes are stored in the picture, creates and returns a MemoryStream object.

    If the image is linked and stored in a file, opens the file and returns a FileStream object.

    If the image is linked and stored in an external URL, downloads the file and returns a MemoryStream object.

    Syntax
    'Declaration
     
    Public Overrides Function ToStream() As System.IO.Stream
    public override System.IO.Stream ToStream()

    Return Value

    A stream containing the image bytes.
    See Also