how to write into filehandle
Posted: 2009-03-03T06:27:57-07:00
Hi,
I want to write image into a FILE * fp from ImageInfo structure where FILE *file containd the image stram ;
I tried like
size_t size;
char * output;
FILE *output_file = open_memstream(output, &size);
images->file = output_file;
WriteImage(image_info,images);
but i got compilation error like there is Image does no have any member named as file
could you plz suggest how would I write image to a filehandle
Thanks in advance
Dheeraj
I want to write image into a FILE * fp from ImageInfo structure where FILE *file containd the image stram ;
I tried like
size_t size;
char * output;
FILE *output_file = open_memstream(output, &size);
images->file = output_file;
WriteImage(image_info,images);
but i got compilation error like there is Image does no have any member named as file
could you plz suggest how would I write image to a filehandle
Thanks in advance
Dheeraj