且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Vaadin 中使用 ByteArrayOutputStream 上传图像?

更新时间:2023-01-25 17:54:54

您可以尝试将带有一些日志的 ProgressListener 添加到 Upload 以查看发生了什么;您将获得读取字节数和总内容长度作为 updateProgress 方法的参数,以便您可以查看是否正在发送所有内容.

You could try adding a ProgressListener with some logs to the Upload to see what is happening; you will get the amount of read bytes and total content length as a parameter to the updateProgress method so you can see if everything is being sent.