可以说,当通过Apache NMS (使用ActiveMQ)传输大文件时,当前被认为是最先进的?把整个内容放到一个StreamMessage中?然而,我已经看到这里的命名有点误导,因为文件实际上并不是通过JMS传输的,整个内容将驻留在内存(或磁盘?)并将被一次性全部发送。这里我遇到了一些关于大于100MB的文件的问题:Apache.NMS.NMSException : Unable to write data to the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full。
BlobMessage在网管系统中不受支持……我真的看不到任何选择,只能将文件分成块,在另一边重新组装,等等。
谢谢你,克里斯蒂安
发布于 2011-04-07 15:00:58
使用GZIPInputStream怎么样,例如: GZIPInputStream inputStream =新GZIPInputStream(新ByteArrayInputStream(gzipped));
https://stackoverflow.com/questions/5567331
复制相似问题