This is rather complicated, but a solution that uses components that I don't have currently installed would be fine, as long as they work with Delphi 5 (cannot currently upgrade this old project to a new Delphi version).
I've a TMemoryStream. The content of the stream is a png image.
I need this data converted to a bitmap that is stored in a TIcon object.
So the chain should be:
MemoryStream -> a png class that loads the image from the stream -> convertion to a TIcon (not HICON).