sida
August 24th, 2006, 04:12 AM
Hi
I'm not sure this is the right place to ask this, but since this is definetly client side I hope it's not a problem...
some background info's:
I have an embedded webserver to which I want to send a file so that he can forward it to a serial device (the device is attached to the server ...).
The problem (or actually one of many) is, that I can't send the whole file to the server, but I have to cut it in bits of 100bytes so he can process them one at the time (the server has no need to store these pieces).
I thought to do this using XMLHttpRequests
my question:
Using Google and forum searches I haven't yet found a way to load this file (which resides on the clients PC) in order to prepare it for piecewise transmission.
Obviously I can't just access a file on the clients computer for security and privacy reasons. However, it should be possible (so I hope) to let the user search for a file (like a 'browse' button) and then for me to use this file. Does anybody know how this is done?
The whole thing should work on firefox as well as IE
I'm not sure this is the right place to ask this, but since this is definetly client side I hope it's not a problem...
some background info's:
I have an embedded webserver to which I want to send a file so that he can forward it to a serial device (the device is attached to the server ...).
The problem (or actually one of many) is, that I can't send the whole file to the server, but I have to cut it in bits of 100bytes so he can process them one at the time (the server has no need to store these pieces).
I thought to do this using XMLHttpRequests
my question:
Using Google and forum searches I haven't yet found a way to load this file (which resides on the clients PC) in order to prepare it for piecewise transmission.
Obviously I can't just access a file on the clients computer for security and privacy reasons. However, it should be possible (so I hope) to let the user search for a file (like a 'browse' button) and then for me to use this file. Does anybody know how this is done?
The whole thing should work on firefox as well as IE