19
July
2004
Bug ID 4212479
Have you ever tried to upload large files with URLConnection? If so you may have faced the OutOfMemoryException as so many other developers. This bug was reported in 1999 but since then nothing has happend for Sun claims it is not a bug but a feature. They say that HTTP 1.0 requires Content-Length in the request header and therefore URLConnection must buffer the stream. Though many developers have reported reasonable solutions for this problem nothing has happend so far, however. I really would like to see an implementation in the JDK that works out-of-the-box. Why can't Sun simply fix this? This is really nasty!
Comments