Hi I would like to make cgi-bin program which will make dynamic pictures.
I know how to make cgi program which would output simple html file
using namespace std;
int main(int argc, char* argv)
cout <<"Content-type: text/html\r\n\r\n" << endl;
catch (exception e)
cout<<" Nemorem prikazati slike."<<endl;
So how should I change this program that insted of html page I would output a jpeg image?
First I have to change frst output to: "Content-type: Image/jpeg\r\n\r\n"
After that ...
You have to learn how to write the file in jpeg format, as in this link and this wiki article
Is there any libary which can do that?
Or cgi program?
I don't want invent hot wather again.