I forgot to mention that since Tersus applications are client/server, services execute on the server. therefore the file will be written in the server's file system.
While developing, both server and client are (usually) on the same machine which means the file will be saved on your computer, but once you deploy the application to a dedicated server, the file will be saved in the server's file system rather than on the client's machine.
The process I demonstrated must be a server side process, and cannot be implemented on the client, due to security limitations imposed by all browsers, which prevent access to the client file system, as well as handling of binary objects process saving the file
For best results, use the Firefox browser..