download a file

I want to create an application that you can upload a file to a server and after you can download it
I can to upload a file with code like this:

var _file = plugins.file.showFileOpenDialog( 1, null, false, null, null, ‘Choose a file to transfer’ );
var file=plugins.file.convertToJSFile(_file)
if (_file) {
var result=plugins.file.streamFilesToServer(_file);
plugins.dialogs.showInfoDialog(“Informazione”,_file)
//add record in table file with the path of the file on the server
}

but i can’t write the code to download the file. I found an example with servoy 5 that use the plugin http, but i use servoy 6 and the plugin http is changed.
Can anyone help me with ad example how to send a download file from server to client

thanks in advance

you can also download it again through the file plugin if you want?
streamFilesFromServer?