Ben Johnson wrote:

On Sat, Jun 18, 2005 at 11:06:31PM -0700, Sam Phillips wrote:
On Sat, Jun 18, 2005, at 14:45 EDT, Brian Chrisman wrote:
I have a web application which needs to do an http upload (post), but it needs to upload a scanned image. Strange thing is the user can't scan into some temporary directory and then upload the image as an ordinary file. (Don't ask). The requirement is to have the web browser upload pull an image from the scanner directly. I didn't imagine that such a thing would be a big problem.. but apparently it is.. has anybody heard of such a web browser plugin? My googling has come up with very little... particularly where concerns open source.
Is it Windows or Unix?  Either way I imagine some coding would be
involved.  You could possibly write a Mozilla plugin using
C/Java/Mozilla magic.  I don't know how well Java could talk to SANE or
TWAIN though.

a named pipe might help.  you'll need to write a simple program that
extracts the scanned image and writes that image to stdout.  redirect
that output to the named pipe.  the pipe can then be opened for reading
by a browser and it will read your program's output. a useful reference:

http://www2.linuxjournal.com/article/2156

the trick is getting your scanning program to run at the right time.  I
imagine this could be done using some sort of icon on the desktop or on
a toolbar.  or maybe your sane driver/program can be configured to run a
script sometime during the scanning process.

that's a good idea, use a pipe to fake out the browser into accidentally scanning a document.... nice.. :-) At least now I can say: "a reasonable solution exists under linux.. what's yer problem?" :-)

- Ben

_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug


_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug

Reply via email to