> Dave wrote: > > Is the chunk created by: > chunk = HTLoadAnchorToChunk(anchor, request); > The size of the file being requested? > Is there any way to grab the requested file by lines or by buffer? > I have looked at the source and it looks like you malloc the whole > file into memory?! > Could this be a problem with big files (100's of megs)? Yes indeed - and also you have to wait for the whole thing to come in. If you want to use "progressive rendering" of a document then you have to use streams instead of the chunk version As an example of using streams, the sample app http://www.w3.org/Library/Examples/LoadToFile.c linked from http://www.w3.org/Library/Examples/ in fact uses streams because the HTLoadFile() in http://www.w3.org/Library/src/HTAccess.html uses streams. -- Henrik Frystyk Nielsen, World Wide Web Consortium http://www.w3.org/People/FrystykReceived on Sunday, 4 April 1999 08:14:58 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT