GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Jun-2008, 06:40
seaders seaders is offline
New Member
 
Join Date: Jun 2008
Posts: 9
seaders is on a distinguished road

Serve image with C++ http server


Hi all, I'm working on a fairly convoluted project and one of the things I've to do is serve out an image to a http server that will be running locally from a c++ programme. I've the exact thing that I want working in Java with
Code:
PrintStream ps = new PrintStream(s.getOutputStream()); BufferedImage bufferedImage = VncViewer.bi; if (bufferedImage != null) { Graphics g = bufferedImage.getGraphics(); g.dispose(); if (ps != null) { ImageIO.write(bufferedImage, "jpg", ps); } } ps.write(EOL); ps.flush(); s.close();
which I'd like to replicate in C++. I'm currently using the http_server from http://www.adp-gmbh.ch/win/misc/webserver.html, http://www.adp-gmbh.ch/win/misc/webserver.html and I've got a PaintStruct being created and currently drawing to a HWND, which also uses a HBITMAP, a HDC and a HPALETTE. I'm using MinGW with GCC 3.4.5.

I'm not really sure how I'm supposed to do this in C++, I'm more a Java head, with less than a years experience in C++, so any help that you could give me would be incredibly useful and hugely appreciative. Thanks.
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image onto JFrame tedds Java Forum 8 25-Oct-2007 21:04
Named virtual host not working Johnnyrotton Apache Web Server Forum 4 04-Sep-2007 21:32
Checking source codes of image, audio and video files onauc C Programming Language 5 26-Feb-2005 22:47
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 07:19
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 03:26

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:25.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.