Page 2 of 2

Re: Comphtml supports C++ calls

Posted: Tue Nov 05, 2013 9:40 pm
by roland.ames
I have looked at the bargraph example, it shows how to generate a gif at run time.

I currently have a BMP already generated in RAM (a previous version of this app sends the BMP file via TFTP to a PC), but now I want to view the same image via a browser. I could translate the BMP to a GIF, but I was hoping that I could just use the already generated BMP file.

Re: Comphtml supports C++ calls

Posted: Wed Nov 06, 2013 11:24 am
by pbreed
Not sure if you can embed BMP files in an HTML document...
if you can just serve up the file with the proper MIME type...

.bmp 0 image/bmp


Take a look at the mydoget in the bargraph example for how to serve up a particular file type dynamically in the web server...

Paul

Re: Comphtml supports C++ calls

Posted: Wed Nov 06, 2013 8:02 pm
by roland.ames
I am a newcomer to html / http. I am finding that the comments / documents for the examples assume a level of knowledge that I don't have. Can anyone recommend an intro to this topic to bring me up to the point of being able to understand the web examples, leaving ajax / flash / java aside for now I want to start with a basic understanding of the http / html stuff.

Roland

Re: Comphtml supports C++ calls

Posted: Wed Nov 06, 2013 9:06 pm
by roland.ames
http://forum.embeddedethernet.com/viewt ... f=5&t=1650

was never answered. Can anyone explain what the return values for a http_gethandler should be

in the examples of MyDoGet(), sometimes the return value is 0 sometimes it is 1. what is the difference between these two cases, are there any other possible cases?

Re: Comphtml supports C++ calls

Posted: Thu Nov 07, 2013 9:28 am
by dpursell
roland.ames wrote:I am a newcomer to html / http. I am finding that the comments / documents for the examples assume a level of knowledge that I don't have. Can anyone recommend an intro to this topic to bring me up to the point of being able to understand the web examples, leaving ajax / flash / java aside for now I want to start with a basic understanding of the http / html stuff.

Roland
When I deal with any sort of web programming my main reference is usually http://www.w3schools.com

-David