Creating exporter for nitter profile image.

This commit is contained in:
ruidajo 2022-03-28 16:45:54 -05:00
parent 938bd300ff
commit 9a2283a653

View File

@ -0,0 +1,11 @@
accessing
exportProfileImageOn: fileReference
| file |
file := fileReference asFileReference.
file ensureDelete.
file exists ifFalse: [ file ensureCreateFile ].
file binaryWriteStreamDo: [ :stream |
stream nextPutAll: profileImageUrl retrieveContents ].
super class inform: 'Exported as: ', String cr, file fullName.
^ file