Created
November 26, 2022 09:01
-
-
Save KateLin-BASIC/a7e254ba7416b6d7af92ac700df9e64b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file fileContent | | |
file := 'test.png' asFileReference. | |
fileContent := ZnClient new | |
url: 'https://pharo.org/web/files/pharo.png'; | |
get. | |
file ensureCreateFile. | |
file binaryWriteStreamDo: [ :stream | stream nextPutAll: fileContent ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment