51 #define BES_STREAM_BUFFER_SIZE 4096
89 string err = (string)
"Unable to stream file: "
90 +
"no container specified" ;
96 string filename = container->
access() ;
97 if( filename.empty() )
99 string err = (string)
"Unable to stream file: "
100 +
"filename not specified" ;
106 os.open( filename.c_str(), ios::in ) ;
107 int myerrno = errno ;
110 string serr = (string)
"Unable to stream file: "
111 +
"cannot open file "
113 char *err = strerror( myerrno ) ;
117 serr +=
"Unknown error" ;
124 os.read( block,
sizeof block ) ;
125 nbytes = os.gcount() ;
130 os.read( block,
sizeof block ) ;
131 nbytes = os.gcount() ;
161 << (
void *)
this <<
")" << endl ;