If you are in a lan or wan environment I would recommend that you do it with an
actual application. It would be faster and easier to program/manage. Then you
could just send raw data over sockets and such.
If for some reason you absolutely have to do it in a web form and with Servlets
then you can take the picture with whatever camera software you have and create
a page, which sends a file from your machine (the picture) to a Servlet using a
multipart request. File transfers with multipart requests have been discussed
a lot so look in the archives. A favorite answer is to recommend that you take
a look at Jason Hunter's Java Servlet Programming book 2nd Edition. He covers
this pretty well.
As for how to create the page I'm not sure on that but you could probably find
some tips here or on the web. I know a lot of places have examples. The first
one that comes to mind is that Hotmail will allow you to attach a file to an
email on their web-based system. You click on a button and the web page opens
up a file chooser. Take a look at it.
Hope this helps,
Matt
Quoting ARPON Mart�n DST <[EMAIL PROTECTED]>:
> hi, does anybody implemented or can give some tips
> on how I can develop an application where the client
> (browser if possible) scans a photo and then sends it
> to my servlet?
>
> The scenario is a security front-desk where the
> employee must scan the document of a person
> (scanner or webcam) and send it to the server.
>
> I really have no idea of how to implement this
> in a browser/servlets enviromnent and archives
> didn 't help this time.
>
> TIA,
>
> Martin
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html