Hi,
I suppose that some settings in mojoPortal prevent file streaming to the browser or cache it.
That is a false supposition.
Have you set a breakpoint and stepped through your code?
Are you sure your button click is even firing?
Are you sure no error is happening?