Main Site Documentation

Webpage from SD Card


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?




Will this help?


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.


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.