From: Alexis O'C. <ale...@ou...> - 2007-01-23 11:45:35
|
Matthew Buckett wrote: > We had reports of downloaded MP3s not playing correctly with quicktime > under firefox. Looking into this it seemed that the Content-length was > not being set on the downloaded file which mean that the quicktime > plugin was only playing the first few seconds of the file. > > The problem was that the compiler was converting the constant 0x80000000 > to Integer.MIN_VALUE on the line: > > long size = uf.getSize(); > if (size > 0L && size < 0x80000000) > res.setContentLength((int) size); > > Good work. Nothing like a spot of gratuitous use of hexadecimal ;-). Alexis |