简体   繁体   English

为什么需要在struts中指定缓冲区大小?

[英]Why is the need of specifying buffer size in struts?

<result name="success" type="stream">
        <param name="contentType">image/jpeg</param>
        <param name="inputName">inputStream</param>
        <param name="contentDisposition">filename="${filename}"</param>
        <param name="bufferSize">1024</param>
</result>

When we download files using struts, What is the need of specifying buffer size?当我们使用struts下载文件时,需要指定缓冲区大小吗? What is it use?它有什么用?

The size of the buffer affects the processing efficiency of the program.缓冲区的大小影响程序的处理效率。 In general, only 1024 should be used.一般来说,应该只使用 1024。

Reference: Struts参考: Struts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM