diff --git a/Datanalitica.package/NitterUser.class/instance/exportProfileImageOn..st b/Datanalitica.package/NitterUser.class/instance/exportProfileImageOn..st new file mode 100644 index 0000000..fcd8fd9 --- /dev/null +++ b/Datanalitica.package/NitterUser.class/instance/exportProfileImageOn..st @@ -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 \ No newline at end of file