[Pharo-project] FS and binary files
Hi folks, I just started to using FS instead of FileDirectory. On readStream sent to FSReference a FSAnsiiStream turns out, which is not suitable for reading images ( for instance with PNGReadWriter). What did I wrong? Johannes
Hi Lukas, you may not have realized the message below. I assume you might be the person who coud answer my question Cheers Johannes -------- Original-Nachricht -------- Betreff: [Pharo-project] FS and binary files Datum: Wed, 09 Nov 2011 15:36:16 +0100 Von: Johannes Rasche <johannesrasche@mac.com> Antwort an: Pharo-project@lists.gforge.inria.fr An: pharo-project@lists.gforge.inria.fr Hi folks, I just started to using FS instead of FileDirectory. On readStream sent to FSReference a FSAnsiiStream turns out, which is not suitable for reading images ( for instance with PNGReadWriter). What did I wrong? Johannes
Not really, Pharo forked the original implementation. In Colin's code you had to use the third supported stream type: not #readStream and not #writeStream (that are minimal ANSI compatible streams), but a third kind that I forgot the name of (it would return a RBBinaryReadWriteStream that works with most existing code). Lukas On 10 November 2011 16:25, Johannes Rasche <johannesrasche@mac.com> wrote:
Hi Lukas,
you may not have realized the message below.
I assume you might be the person who coud answer my question
Cheers Johannes
-------- Original-Nachricht -------- Betreff: [Pharo-project] FS and binary files Datum: Wed, 09 Nov 2011 15:36:16 +0100 Von: Johannes Rasche <johannesrasche@mac.com> <johannesrasche@mac.com> Antwort an: Pharo-project@lists.gforge.inria.fr An: pharo-project@lists.gforge.inria.fr
Hi folks,
I just started to using FS instead of FileDirectory.
On readStream sent to FSReference a FSAnsiiStream turns out, which is not suitable for reading images ( for instance with PNGReadWriter).
What did I wrong?
Johannes
-- Lukas Renggli www.lukas-renggli.ch
Thx Lukas, I'll try it ... anyway I'm wondering about that - as FS appeared, I had the impression, that this would be the long awaited replacement of FileDirectory, but it doesn't seem so, because it's not part of the official Pharo up to now (1.3), or is there another alternative to FileDirectory I've overseen? and what do you mean by "Pharo forked the original implementation"? up to 1.3 I cannot see FS Johannes Am 10.11.11 18:06, schrieb Lukas Renggli:
Not really, Pharo forked the original implementation.
In Colin's code you had to use the third supported stream type: not #readStream and not #writeStream (that are minimal ANSI compatible streams), but a third kind that I forgot the name of (it would return a RBBinaryReadWriteStream that works with most existing code).
Lukas
On 10 November 2011 16:25, Johannes Rasche <johannesrasche@mac.com <mailto:johannesrasche@mac.com>> wrote:
Hi Lukas,
you may not have realized the message below.
I assume you might be the person who coud answer my question
Cheers Johannes
-------- Original-Nachricht -------- Betreff: [Pharo-project] FS and binary files Datum: Wed, 09 Nov 2011 15:36:16 +0100 Von: Johannes Rasche <johannesrasche@mac.com> <mailto:johannesrasche@mac.com> Antwort an: Pharo-project@lists.gforge.inria.fr <mailto:Pharo-project@lists.gforge.inria.fr> An: pharo-project@lists.gforge.inria.fr <mailto:pharo-project@lists.gforge.inria.fr>
Hi folks,
I just started to using FS instead of FileDirectory.
On readStream sent to FSReference a FSAnsiiStream turns out, which is not suitable for reading images ( for instance with PNGReadWriter).
What did I wrong?
Johannes
-- Lukas Renggli www.lukas-renggli.ch <http://www.lukas-renggli.ch>
-- Johannes Rasche /Hagelberger Str. 56 10965 Berlin mail johannesrasche@mac.com mobile +49 1577 175 04 75/
I thought it was adopted as part of Pharo 1.4? Or maybe it is just used as part of Coral? No clue ... Lukas On 11 November 2011 08:09, Johannes Rasche <johannesrasche@mac.com> wrote:
Thx Lukas,
I'll try it ...
anyway I'm wondering about that -
as FS appeared, I had the impression, that this would be the long awaited replacement of FileDirectory,
but it doesn't seem so, because it's not part of the official Pharo up to now (1.3),
or is there another alternative to FileDirectory I've overseen?
and what do you mean by "Pharo forked the original implementation"? up to 1.3 I cannot see FS
Johannes
Am 10.11.11 18:06, schrieb Lukas Renggli:
Not really, Pharo forked the original implementation.
In Colin's code you had to use the third supported stream type: not #readStream and not #writeStream (that are minimal ANSI compatible streams), but a third kind that I forgot the name of (it would return a RBBinaryReadWriteStream that works with most existing code).
Lukas
On 10 November 2011 16:25, Johannes Rasche <johannesrasche@mac.com> wrote:
Hi Lukas,
you may not have realized the message below.
I assume you might be the person who coud answer my question
Cheers Johannes
-------- Original-Nachricht -------- Betreff: [Pharo-project] FS and binary files Datum: Wed, 09 Nov 2011 15:36:16 +0100 Von: Johannes Rasche <johannesrasche@mac.com> <johannesrasche@mac.com> Antwort an: Pharo-project@lists.gforge.inria.fr An: pharo-project@lists.gforge.inria.fr
Hi folks,
I just started to using FS instead of FileDirectory.
On readStream sent to FSReference a FSAnsiiStream turns out, which is not suitable for reading images ( for instance with PNGReadWriter).
What did I wrong?
Johannes
-- Lukas Renggli www.lukas-renggli.ch
-- Johannes Rasche *Hagelberger Str. 56 10965 Berlin mail johannesrasche@mac.com mobile +49 1577 175 04 75*
-- Lukas Renggli www.lukas-renggli.ch
Yep, 1.4 AFAIK. Max On 11.11.2011, at 09:37, Lukas Renggli wrote:
I thought it was adopted as part of Pharo 1.4? Or maybe it is just used as part of Coral?
No clue ...
Lukas
On 11 November 2011 08:09, Johannes Rasche <johannesrasche@mac.com> wrote: Thx Lukas,
I'll try it ...
anyway I'm wondering about that -
as FS appeared, I had the impression, that this would be the long awaited replacement of FileDirectory,
but it doesn't seem so, because it's not part of the official Pharo up to now (1.3),
or is there another alternative to FileDirectory I've overseen?
and what do you mean by "Pharo forked the original implementation"? up to 1.3 I cannot see FS
Johannes
Am 10.11.11 18:06, schrieb Lukas Renggli:
Not really, Pharo forked the original implementation.
In Colin's code you had to use the third supported stream type: not #readStream and not #writeStream (that are minimal ANSI compatible streams), but a third kind that I forgot the name of (it would return a RBBinaryReadWriteStream that works with most existing code).
Lukas
On 10 November 2011 16:25, Johannes Rasche <johannesrasche@mac.com> wrote: Hi Lukas,
you may not have realized the message below.
I assume you might be the person who coud answer my question
Cheers Johannes
-------- Original-Nachricht -------- Betreff: [Pharo-project] FS and binary files Datum: Wed, 09 Nov 2011 15:36:16 +0100 Von: Johannes Rasche <johannesrasche@mac.com> Antwort an: Pharo-project@lists.gforge.inria.fr An: pharo-project@lists.gforge.inria.fr
Hi folks,
I just started to using FS instead of FileDirectory.
On readStream sent to FSReference a FSAnsiiStream turns out, which is not suitable for reading images ( for instance with PNGReadWriter).
What did I wrong?
Johannes
-- Lukas Renggli www.lukas-renggli.ch
-- Johannes Rasche Hagelberger Str. 56 10965 Berlin mail johannesrasche@mac.com mobile +49 1577 175 04 75
-- Lukas Renggli www.lukas-renggli.ch
Johannes Rasche wrote:
as FS appeared, I had the impression, that this would be the long awaited replacement of FileDirectory,
but it doesn't seem so, because it's not part of the official Pharo up to now (1.3),
I couldn't wait, so I loaded it in my 1.3-rc image and have been happily using it problem free for 1.5 weeks... Gofer new squeaksource: 'fs'; package: 'ConfigurationOfFilesystem'; load. (Smalltalk at: #ConfigurationOfFilesystem) load. Since Pharo's FS fork is being worked on in 1.4, I may have to port my code slightly for 1.4, but I couldn't go on any longer with FileDirectory, it hurt too much ;-) -- View this message in context: http://forum.world.st/FS-and-binary-files-tp4019963p4031734.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Hi Sean, thanks for your effort and advice, but it didn't resolve my problem: try to open an image file with "PNGReadWriter on: xxx.png" Lukas wrote: "In Colin's code you had to use the third supported stream type: not #readStream and not #writeStream (that are minimal ANSI compatible streams), but a third kind that I forgot the name of (it would return a RBBinaryReadWriteStream that works with most existing code). " Johannes Am 11.11.11 16:55, schrieb Sean P. DeNigris:
Johannes Rasche wrote:
as FS appeared, I had the impression, that this would be the long awaited replacement of FileDirectory,
but it doesn't seem so, because it's not part of the official Pharo up to now (1.3),
I couldn't wait, so I loaded it in my 1.3-rc image and have been happily using it problem free for 1.5 weeks...
Gofer new squeaksource: 'fs'; package: 'ConfigurationOfFilesystem'; load. (Smalltalk at: #ConfigurationOfFilesystem) load.
Since Pharo's FS fork is being worked on in 1.4, I may have to port my code slightly for 1.4, but I couldn't go on any longer with FileDirectory, it hurt too much ;-)
-- View this message in context: http://forum.world.st/FS-and-binary-files-tp4019963p4031734.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Use #fileStreamDo: or #fileStreamWritable:do: Lukas On 12 November 2011 13:19, Johannes Rasche <johannesrasche@mac.com> wrote:
Hi Sean,
thanks for your effort and advice,
but it didn't resolve my problem: try to open an image file with "PNGReadWriter on: xxx.png"
Lukas wrote: "In Colin's code you had to use the third supported stream type: not #readStream and not #writeStream (that are minimal ANSI compatible streams), but a third kind that I forgot the name of (it would return a RBBinaryReadWriteStream that works with most existing code). "
Johannes
Am 11.11.11 16:55, schrieb Sean P. DeNigris:
Johannes Rasche wrote:
as FS appeared, I had the impression, that this would be the long awaited replacement of FileDirectory,
but it doesn't seem so, because it's not part of the official Pharo up to now (1.3),
I couldn't wait, so I loaded it in my 1.3-rc image and have been happily using it problem free for 1.5 weeks...
    Gofer new         squeaksource: 'fs';         package: 'ConfigurationOfFilesystem';         load.     (Smalltalk at: #ConfigurationOfFilesystem) load.
Since Pharo's FS fork is being worked on in 1.4, I may have to port my code slightly for 1.4, but I couldn't go on any longer with FileDirectory, it hurt too much ;-)
-- View this message in context: http://forum.world.st/FS-and-binary-files-tp4019963p4031734.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Lukas Renggli www.lukas-renggli.ch
ok Lukas, that works :) Am 12.11.11 13:43, schrieb Lukas Renggli:
Use #fileStreamDo: or #fileStreamWritable:do:
Lukas
On 12 November 2011 13:19, Johannes Rasche<johannesrasche@mac.com> wrote:
Hi Sean,
thanks for your effort and advice,
but it didn't resolve my problem: try to open an image file with "PNGReadWriter on: xxx.png"
Lukas wrote: "In Colin's code you had to use the third supported stream type: not #readStream and not #writeStream (that are minimal ANSI compatible streams), but a third kind that I forgot the name of (it would return a RBBinaryReadWriteStream that works with most existing code). "
Johannes
Am 11.11.11 16:55, schrieb Sean P. DeNigris:
Johannes Rasche wrote:
as FS appeared, I had the impression, that this would be the long awaited replacement of FileDirectory,
but it doesn't seem so, because it's not part of the official Pharo up to now (1.3),
I couldn't wait, so I loaded it in my 1.3-rc image and have been happily using it problem free for 1.5 weeks...
Gofer new squeaksource: 'fs'; package: 'ConfigurationOfFilesystem'; load. (Smalltalk at: #ConfigurationOfFilesystem) load.
Since Pharo's FS fork is being worked on in 1.4, I may have to port my code slightly for 1.4, but I couldn't go on any longer with FileDirectory, it hurt too much ;-)
-- View this message in context: http://forum.world.st/FS-and-binary-files-tp4019963p4031734.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Johannes Rasche /Hagelberger Str. 56 10965 Berlin mail johannesrasche@mac.com mobile +49 1577 175 04 75/
I do not believe that what changed from colin implementation would impact the problem of johannes. Stef
Not really, Pharo forked the original implementation.
In Colin's code you had to use the third supported stream type: not #readStream and not #writeStream (that are minimal ANSI compatible streams), but a third kind that I forgot the name of (it would return a RBBinaryReadWriteStream that works with most existing code).
Lukas
On 10 November 2011 16:25, Johannes Rasche <johannesrasche@mac.com> wrote: Hi Lukas,
you may not have realized the message below.
I assume you might be the person who coud answer my question
Cheers Johannes
-------- Original-Nachricht -------- Betreff: [Pharo-project] FS and binary files Datum: Wed, 09 Nov 2011 15:36:16 +0100 Von: Johannes Rasche <johannesrasche@mac.com> Antwort an: Pharo-project@lists.gforge.inria.fr An: pharo-project@lists.gforge.inria.fr
Hi folks,
I just started to using FS instead of FileDirectory.
On readStream sent to FSReference a FSAnsiiStream turns out, which is not suitable for reading images ( for instance with PNGReadWriter).
What did I wrong?
Johannes
-- Lukas Renggli www.lukas-renggli.ch
participants (5)
-
Johannes Rasche -
Lukas Renggli -
Max Leske -
Sean P. DeNigris -
Stéphane Ducasse