streamFilesFromServer not working

I am trying to stream an image file from a database blob file out to a Mac OS X client desktop folder but am having no joy. Would be grateful for any help anyone can give since I haven’t used it before and don’t know the correct syntax…

Adapting the sample code, I have this:

	var dir = plugins.file.showDirectorySelectDialog();
	if (dir){
			plugins.file.streamFilesFromServer(dir, image);
		
			}

image is an image blob file stored in the database. Which steps am I missing

Grateful for any help… :)

Bevil

cross post, look here: viewtopic.php?f=3&t=14841&start=15#p80616