I want to Embed, a file, say an executable, or something like a PDF file, into a html file. I dont want it displayed or anything on the page, it needs to be embedded into the page's source, and then I want to be able to call the file within the page, and when you open the page it should immediately come up and ask you to Open or Save (just like when you goto a download page). I dont want to call a file from a ftp or http server, it needs to be within the page (yes, making the page large). If your wondering what this is for, its to help out my dad, hes a computer engineer who does contract work, and this guy wants him to do this which he knows little about, he writes assembly and C.. the unit its going on will have the html page on some flash rom, it has no file system so you cant do something like have the PDF file in the same directory as the html page and call the PDF file to save as soon as the page executes. It needs to be within the page, preferably not using Java/Javascript,etc, if thats possible.
Thanks,
-Bucky
Sponsored by: █ Sparkhost - Hosting Without Compromises! █ Hybrid Performance Web Hosting █ Spark Host Stream Hosting █ Hybrid IRC & IRCd Server Shell Accounts
Embedding Programs/files Into Html Or An Alternative
Started by
Bucky0
, Oct 11 2005 02:13 PM
5 replies to this topic
#1
Posted 11 October 2005 - 02:13 PM
#2
Posted 11 October 2005 - 02:41 PM
referably not using Java/Javascript,etc
Impossible then, sorry, HTML isn't executable code.
Impossible then, sorry, HTML isn't executable code.
#3
Posted 11 October 2005 - 02:47 PM
Thats what I figured, I just wasnt 100% sure. If you can help me in anyway possible.. any lanuage, it just has to be within a html file.
#4
Posted 11 October 2005 - 05:42 PM
I take that back.. its not that I want to execute code, I just want to save it to the hard disk. So like the file is embedded in the html page, and then you can call it to save to the hard disk.
#5
Posted 11 October 2005 - 07:04 PM
I have a question about what this is supposed to do, because I think you're aproaching the problem from the wrong angle.
You're say it's going to be on some flash rom? So, this is going to be some sort of micro web server hosting a webpage? I mean, you could always just name the pdf or exe *.html, and force your webserver to transmit in BINARY mode isntead of ASCII mode, and then save the page you see as an exe?
More carefully explaining what the project details and goals are might lead to a better solution.
You're say it's going to be on some flash rom? So, this is going to be some sort of micro web server hosting a webpage? I mean, you could always just name the pdf or exe *.html, and force your webserver to transmit in BINARY mode isntead of ASCII mode, and then save the page you see as an exe?
More carefully explaining what the project details and goals are might lead to a better solution.
#6
Posted 11 October 2005 - 07:50 PM
Yeah your right, sorry. Its not my project its a friends, so Im kind of cloudy myself about it. Ill try to get my buddy to register and he can post a more detailed explanation.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












