An .ICO file is basically a .BMP file with a different extension. You can read it with GetBitmaFromFile function, that returns the ID of the bitmap. With GetBitmapData function you can retrieve the Bits array and some other data that that can be subsequently saved to the database.
To show the bitmap, you can use NewBitmap function passing to it the data read back from the database.
Look into the functions help for more informations about bitmap treatment.
Hope this helps
Roberto