int tsmStreamToBuffer ( FILE *stream, char *buffer, int bufferSize ) Copies a stream to an area of memory
Copies a stream to an area of memory.Once you have opened an http or localdisk stream using tsmOpenStream, you can use this function to copy data from the stream into a pre-allocated buffer. Data is copied until there is no more room in the buffer, or there is no more data to be read (EOF). The filename must be a localdisk filename, e.g. "/tmp/foo.html".