[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ImageData.ToStream

ToStream Method

ToStream()

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.

Declaration
public override Stream ToStream()
Public Overrides Function ToStream() As Stream
Returns
Type Description
Stream

A stream containing the image bytes.

Overrides