ifstream ifs;
ifs.open("c:\\bt.gif",ios::binary);
char* buffer;
int size;
//obtengo el tamaño del fichero
ifs.seekg(0, ios::end);
size = ifs.tellg();
ifs.seekg(0, ios::beg);
//lo asigno a una variable para guardar el chunk
char img[1105];
ifs.getline(img, size); //donde size vale 1105