Re: RFC: BLOBAction

2004-09-19 Thread Frank W. Zammetti (MLists)
> If I understand your code correctly, you are loading all the bytes of > the file (or BLOB) into memory at once, without good reason (a good > reason might be if several objects were editing an XML document before > it was to be served). > > I would use a variable (but small) buffer size. Then I w

Re: RFC: BLOBAction

2004-09-19 Thread Erik Weber
I think the general idea is good. Struts comes with an "upload" example, so there should be a "download" example, if there is not one already. So I'll start with some constructive criticism. If I understand your code correctly, you are loading all the bytes of the file (or BLOB) into memory at