SBL2e - Access a file in Flash

Discussion to talk about software related topics only.
Post Reply
cmo
Posts: 20
Joined: Sat Jul 24, 2010 4:20 pm

SBL2e - Access a file in Flash

Post by cmo »

I'd like to access a file in the standard html folder (ex. Index.htm) on a SBL2e. Are there any examples or docs that can give me some guidance? I assume it's a bit unique compared to the other NB devices since the SBL2e device is all integrated onto one chip.

Any help is appreciated. Thanks.
User avatar
Forrest
Posts: 288
Joined: Wed Apr 23, 2008 10:05 am

Re: SBL2e - Access a file in Flash

Post by Forrest »

I assume you are talking about the SBL2e, not the SBL2e chip.

If you look at a few of the examples, the HTML works the same (at least in upper level code). Place the files in the html folder and StartHTTP();
Forrest Stanley
Project Engineer
NetBurner, Inc

NetBurner Learn Articles: http://www.netburner.com/learn
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: SBL2e - Access a file in Flash

Post by pbreed »

What to do you mean access?
To read?
Or to Modify?

If you mean to read and it is not an HTML or XML file then you can get it out of the htmldata.cpp file.
If it is html or XLM then the function calls or variable encodings are encoded into the file record.
Take a look at htmldata.cpp and look at the structures in there.

Paul
cmo
Posts: 20
Joined: Sat Jul 24, 2010 4:20 pm

Re: SBL2e - Access a file in Flash

Post by cmo »

Thanks for the response guys. I should have said read instead of access. Paul you pointed me in the right direction - htmldata.cpp. Thanks.
Post Reply