Created
January 10, 2023 18:26
-
-
Save olekscode/93a109d76c39eeae50417fe576e0f36a 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
url := 'http://192.168.27.64:8080/shot.jpg'. | |
client := ZnClient new | |
url: url; | |
yourself. | |
imagePresenter := SpImagePresenter new. | |
imagePresenter autoScale: true. | |
imagePresenter open. | |
keepRunning := true. | |
[ [ keepRunning ] whileTrue: [ | |
response := client | |
get; | |
response. | |
bytearray := response contents. | |
form := ImageReadWriter formFromStream: bytearray readStream. | |
imagePresenter image: form ] ] fork. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment