File download

I m Beginner in Smartclient. i need to find a way for file downloading in jspx page . requirements is like this,

Need to save file in client machine with save/save as option . content of file will be comeing from database.

When user clicks on file Name displayed in listgrid , its should pop up window to save the same file in client machine .

Please help me in finishing this one.

Thanks ,
Sreethar R