Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2151

Loading a VDS file without user selection

$
0
0

Hello Team,

 

I'm trying to use the SAP3D Visual Enterprise Application SDK to load a VDS file directly to an html page. Is it possible to do this without having the user select the file to upload?

 

The html developer manual shows 2 methods: load file from URL (oDvl.Helpers.LoadFile), and load file from disk (oDvl.Helpers.LoadLocalFile), but it seems like both options require the user to select a file.

 

Ideally I would like to provide the file path, for example "../media/teapot.vds" to the helper method, but the helper only seems to work with a file object. The html developer manual says you can create your own load file method using the pattern ["FS_createDataFile"]("/viewer/", [fileName], [uint8ArrayData], true, true), but I'm not familiar with emscripten, so this does not help me.

 

Any help is appreciated.

Thanks,

Nelson


Viewing all articles
Browse latest Browse all 2151

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>