# Encoding the model into HTML (show model without server/without cors restrictions)

**URL:** <https://forum.babylonjs.com/t/encoding-the-model-into-html-show-model-without-server-without-cors-restrictions/10322>\
**Category:** Questions\
**Created:** [April 25, 2020, 10:45pm UTC](https://forum.babylonjs.com/t/encoding-the-model-into-html-show-model-without-server-without-cors-restrictions/10322 "2020-04-25T22:45:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [April 25, 2020, 10:45pm UTC](https://forum.babylonjs.com/t/encoding-the-model-into-html-show-model-without-server-without-cors-restrictions/10322/1 "2020-04-25T22:45:42Z")

</div>

Hi,

I stumbled upon the .html file that is exported from Rhino. I’ve attached the file. As you can see the scene can be opened and the 3D content is shown. If I try this with any Babylon project of course, that content is not loaded due to CORS, which makes sense. Now, I have a client that would like to have something like the file I’ve attached, and I am not sure how to achieve that.

I tried to investigate the file and it seems like the 3D model is encoded somehow into the app. But I don’t quite understand what is going on and how is that achieved.

Do you guys have any ideas about this?

Thank you

[3d\_c.zip](https://forum.babylonjs.com/uploads/short-url/fGsHDUJ8lPqRrPDtrTEq1qIK7j3.zip) (671.6 KB)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 27, 2020, 3:25pm UTC](https://forum.babylonjs.com/t/encoding-the-model-into-html-show-model-without-server-without-cors-restrictions/10322/2 "2020-04-27T15:25:22Z")

</div>

I guess the best option is simply to store the model as a base64 and then load it from the string like here:  
[https://www.babylonjs-playground.com/#6DZXGH#4](https://www.babylonjs-playground.com/#6DZXGH#4)
