# Module PIL.ImageFileIO

#### Module Summary:

    class ImageFileIO:
        def __init__(self, fp)

> The ImageFileIO module can be used to read an image from a socket, or any other stream device.

## Classes

### The ImageFileIO Class

    ImageFileIO()

The ImageFileIO module can be used to read an image from a socket, or any other stream device.

This module is deprecated. New code should use the Parser class in the ImageFile module instead.

#### Constructor:

    ImageFileIO(fp)

Adds buffering to a stream file object, in order to provide seek and tell methods required by the Image.open method. The stream object must implement read and close methods.

#### Parameters:

`fp` -- Stream file handle.

#### Method Summary: