datastream wont work because it puts some header information in the file.. which will corrupt the png file.
just use simple fopen, fread, and fwrite or C library or use fstream of c++. If you just want to copy a file.. take a look at QFile::copy()