I have troubles creating a PNG file in memory.
But, when I try the same thing in memory, I get an exception for incorrect format:
f := FileSystem memory workingDirectory / 'pharoicon.png'.
f writeStreamDo: [ :stream |
PNGReadWriter�
putForm: ThemeIcons current pharoIcon�
onStream: stream ].
f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]
Can anyone point me to what am I doing wrong?
Doru
--
"Every thing has its own flow"