July 25, 2019
10:22 p.m.
I don't understand how #wrappedStream works in my situation? Is #isBinary not good enougth? Le 25/07/2019 à 21:53, Sven Van Caekenberghe a écrit :
If you have a character read or write stream, you can use #wrappedStream to access the underlying binary stream, should you need to do that.
On 25 Jul 2019, at 20:31, Hilaire <hilaire@drgeo.eu> wrote:
Thanks for the tips. It is definitely a left over from porting DrGeo to P7 from P4/5/6 (not sure)
But it can't really work as put:into: is used to write both sktech content (XML file) and its PNG preview.
At some point in Pharo history both UTF8 and bitmap were using binary stream.
Likely a putBinary:into: is needed too.
-- Dr. Geo http://drgeo.eu
-- Dr. Geo http://drgeo.eu