> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenImageFileFromStream Method of the ImageProcessingTools Object

This method reads an image file from the specified stream.

## Syntax

```vb Visual Basic .NET theme={null}
Function OpenImageFileFromStream(stream As ReadStream) As ImageFile
```

```cpp C++ theme={null}
HRESULT OpenImageFileFromStream(
  IReadStream* stream,
  IImageFile** Result
);
```

## Parameters

**stream**

\[in] This parameter refers to the [**IReadStream**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/ireadstream.md) variable that provides access to a read stream.

**Result**

\[out, retval] A pointer to the [**IImageFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagefile.md)**\*** pointer variable that provides access to the image file.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**ImageProcessingTools**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageprocessingtools.md)

[**ImageFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagefile.md)
