We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Filedownload.save method does not work when supplying it with a PipedInputStream.
Filedownload.save
PipedInputStream
The following example (see also zkfidle) does not work. The download dialog will simply never appear. There is no error logged whatsoever:
<zk> <zscript><![CDATA[ import org.zkoss.zul.Filedownload; import java.io.InputStream; import org.zkoss.lang.Strings; import java.io.PipedInputStream; import java.io.PipedOutputStream; void download() throws Exception { final PipedOutputStream pipedOutputStream = new PipedOutputStream(); final PipedInputStream pipedInputStream = new PipedInputStream(pipedOutputStream); Thread outputThread = new Thread(new Runnable() { public void run() { pipedOutputStream.write(new byte[] { 0x1, 0x2, 0x3, 0xf } ); } }); outputThread.start(); Filedownload.save(pipedInputStream, "application/xml", "test.xml"); outputThread.join(); } ]]></zscript> <button label="download" onClick="download()"> </button> </zk>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
Filedownload.save
method does not work when supplying it with aPipedInputStream
.The following example (see also zkfidle) does not work. The download dialog will simply never appear. There is no error logged whatsoever:
The text was updated successfully, but these errors were encountered: