2011年1月21日

在Netty中使用Apache common fileupload

摘要: 在Http上传中,Apache common fileupload 的文件上传组件要求传入Inputstream对象。而Netty中数据是按块(HttpChunk)来传送数据,没有直接的流。因此要想在Netty中使用Apache Common Fileupload,则必须将httpchunk适配成InputStream。实现Apache FileUpload适配成InputStream:Netty FileUpload应用:该NettyChunkInputStream必须一个线程来putChunk(...),另一个线程使用getInputStream()来消耗数据。 阅读全文

posted @ 2011-01-21 10:55 NanguoCoffee 阅读(2607) 评论(0) 推荐(1) 编辑

导航