# Dynamic Web Pages And NAFS\_writefile/readfile

**URL:** <https://forums.digi.com/t/dynamic-web-pages-and-nafs-writefile-readfile/4070>\
**Category:** NET+OS\
**Tags:** aws\
**Created:** [June 8, 2005, 9:22pm UTC](https://forums.digi.com/t/dynamic-web-pages-and-nafs-writefile-readfile/4070 "2005-06-08T21:22:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtr38](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vtr38](https://forums.digi.com/u/vtr38)\
**Post date:** [June 8, 2005, 9:22pm UTC](https://forums.digi.com/t/dynamic-web-pages-and-nafs-writefile-readfile/4070/1 "2005-06-08T21:22:28Z")

</div>

Hello,

1- I have a web page that displays an image, now i would like to dynamically change that image with one uploaded via ftp.  
As I use pbuilder to convert my page to c, the default image displayed is converted to variable at compile time, is it possible to dynamically convert the new image to use it?

2- My application write to files in flash0 each time information are modified from web pages, and I use NAFS\_writefile/readfile to save some struct type table to flash, actually i cast these struct type tables to char\* when calling NAFS\_write/readfile. My question is: does my struct table, after being written to flash, will be well formatted if i directly read from flash to my struct table?  
Example:  
typedef struct  
{  
char foo[5];  
int number;  
} my\_struct;  
my\_struct struct\_table[2];

i do NAFS\_writefile(…,“FLASH0/filename”,(char\*)&struct\_table[0],…)  
then NAFS\_readfile(…,“FLASH0/filename”,(char\*)&struct\_table[0],…)

Will the content of struct\_table be exactly formatted as previously defined?

3- What is the delay between 2 consecutive call to NAFS\_writefile/readfile functions?

Thanks
