Jump to content

Writing File to \res folder in runtime


Recommended Posts

You cant. No browser is allowed to save data to disk or to access the local file-system.

The only means of storage is LocalStorage (w3storage.pas).

This allows you to save roughly 5-10 megabytes per domain.

 

When you compile with phonegap, this limitation goes away and you also get access to the phonegap file-api, so you can save to disk

Link to post
Share on other sites

Thanks Diaz - I'll use the LocalStorage.

 

I am trying to save a html file then open and display it using the browser (W3IFrameHTMLElement).

The usual way would be to assign the browser Src property = res/filename.htm

 

Is there a way I can do the same with a file from localstorage?  Once I read the content from LocalStorage into a string variable, how can I set the W3IFrameHTMLElement URL to display html content from the variable?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...