help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cgicc, outputing JPEG image


From: Huang Xin
Subject: cgicc, outputing JPEG image
Date: Tue, 22 May 2001 02:09:49 -0700 (PDT)

Hi, 

I would like to send a dynamically generated JPEG file
for users to view but don't want users to see the
actual file URL, so i did this:

cout<<HTTPJPEGHeader()<<endl;

ifstream fin(fileloc,ios::in|ios::binary);

char buf[300];

while (fin.read(buf,300)!=NULL)
    cout.write(buf,300);

.....

it doesn't seem to work. I see funny characters on
Netscape ..... am I doing wrongly?

Please help me.

cumulo


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]