# Load content from memory

**URL:** <https://forum.xojo.com/t/load-content-from-memory/83111>\
**Category:** Getting Started\
**Created:** [November 6, 2024, 6:19pm UTC](https://forum.xojo.com/t/load-content-from-memory/83111 "2024-11-06T18:19:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Carlos\_R.R](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Juan\_Carlos\_R.R](https://forum.xojo.com/u/Juan_Carlos_R.R)\
**Post date:** [November 6, 2024, 6:19pm UTC](https://forum.xojo.com/t/load-content-from-memory/83111/1 "2024-11-06T18:19:37Z")

</div>

Hi, I have a strange question. I wanted to know if htmlviewer could load content stored in memory.That is, if I store HTML5 code in memory, can it be loaded later?

---

<div class="post-metadata">

**Author:** ![Jon\_Ogden](https://forum.xojo.com/user_avatar/forum.xojo.com/jon_ogden/32/494_2.png) [@Jon\_Ogden](https://forum.xojo.com/u/Jon_Ogden)\
**Post date:** [November 6, 2024, 6:22pm UTC](https://forum.xojo.com/t/load-content-from-memory/83111/2 "2024-11-06T18:22:09Z")

</div>

Are you storing it in a memory block? Sure you should be able to load that data later…

Don’t need a memory block either. You can store it in a string.

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [November 6, 2024, 6:25pm UTC](https://forum.xojo.com/t/load-content-from-memory/83111/3 "2024-11-06T18:25:24Z")

</div>

Didn’t you look in the Doc? It’s explicitly stated there.

---

<div class="post-metadata">

**Author:** ![Ian\_Kennedy](https://forum.xojo.com/user_avatar/forum.xojo.com/ian_kennedy/32/6860_2.png) [@Ian\_Kennedy](https://forum.xojo.com/u/Ian_Kennedy)\
**Post date:** [November 6, 2024, 6:50pm UTC](https://forum.xojo.com/t/load-content-from-memory/83111/4 "2024-11-06T18:50:38Z")

</div>

There is more than one Load method associated with the HTMLViewer. One LoadURL for loading from a remote server. Two others LoadPage( FolderItem ) and LoadPage( String, FolderItem ). Examine both.

---

<div class="post-metadata">

**Author:** ![Keith\_Culotta](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/3d9bf3/32.png) [@Keith\_Culotta](https://forum.xojo.com/u/Keith_Culotta)\
**Post date:** [May 30, 2026, 7:29pm UTC](https://forum.xojo.com/t/load-content-from-memory/83111/5 "2026-05-30T19:29:32Z")

</div>

LoadPage(Source As String, Base As FolderItem

Just learning about the HTMLViewer. I did not see this explicitly stated anywhere, but although the Base parameter cannot be omitted, the following will work if Base is nil.

Var myHTML As String `= “ Hello “`  
`HTMLViewer1.LoadPage(myHTML, Nil)`
