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

In This Topic
    ToStream Method
    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 Function ToStream() As System.IO.Stream
    public System.IO.Stream ToStream()

    Return Value

    A stream containing the image bytes.
    See Also