Main Site Documentation

Webpage from SD Card


#1

Is there an easy way to load a webpage from an SD card using Panda II? Ideally, I would like to have the webpage (Ajax) load images and tables as well as the main webpage directly from the SD card. Any suggestions on how to do this?

Thanks,

K


#2

Will this help? http://www.ghielectronics.com/downloads/FEZ/FEZ_Internet_of_Things_Book.pdf


#3

Looked at that already. I’m trying to figure out a way to stream a webpage from a file. Because of memory constraints this is the only way I can think to load and send the html and css files and still have memory to run the rest of my program(timers, NTP time, ect…). Unfortunately, I am not very proficient in C# and could use some guidance/ best practices for doing this.


#4

Set the content-length header to the size of the file + header size; continually write out chunks of the file until EOF.

By setting the content-length the browser will continue to wait until it receives the designated amount of data.