:)
Displaying the image is real easy if it is not encrypted ...
You can use glut + corona to easily display images.
http://www.daniweb.com/forums/thread63827.html#5
Also if you are having problems with leftover bytes at the end of the file smaller than your buffer, use the following bit of code to find the file size
// obtaining file size
#include <iostream>
#include <fstream>
using namespace std;
int main () {
long begin,end;
ifstream myfile ("example.txt");
begin = myfile.tellg();
myfile.seekg (0, ios::end);
end = myfile.tellg();
myfile.close();
cout << "size is: " << (end-begin) << " bytes.\n";
return 0;
}
http://www.cplusplus.com/doc/tutorial/files.html
Divide the file size by your buffer size, run the loop with the number you get (the quotient) and read the remaining data using the remainder as the read size.
^^
Also, it possible to display encrypted data, just that it would look like a bunch of random pixels .... The standard format is RGB, so you can create a single color out of 3 bytes of data, 0-255, standard char. Read up an OpenGL tutorial on creating a texture ......