Read PGM File Format

How I do to read a pgm file format in Delphi 4, and to conversion this
image to bitmap or Blob Field.

Thanx...

Ricardo Fava