Processing...
Description & Source Code

ZK offers a utility class for handling file downloading. Simply evoke the class' static method "save" and supply with it the adequate arguments.

file_download.zul
<button label="Download sun.jpg">
	<attribute name="onClick"><![CDATA[
		Filedownload.save("/widgets/file_handling/file_download/img/sun.jpg", null);
	]]></attribute>
</button>