Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Scanners in webbased programming

  1. Jul 24, 2005 #1
    Is there any way to connect to a scanner in order to operate it via a Flash movie?
    We are developinga a webbased accounting syastem. The users need to scan the attachmenst and upload them to our databases. Do you know any web based solution??
    Any solution by using Javascript, PHP or ..... ?
  2. jcsd
  3. Jul 24, 2005 #2


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

  4. Jul 24, 2005 #3


    User Avatar
    Staff Emeritus

    1) Why Flash?
    2) What platform is the server? If it was linux it would be a piece of cake. All you would need to do is pass SANE command-line options through PHP. The result would be that SANE would create a file on the server, which you can put anywhere you want, DB included. You could also display that picture on your site. If you want fancer features like cropping, then you would need a little javascript to draw a draggable rectangle that is bounded by the width and height of the image. Again, you would pass the SANE command-line options, which would include co-ordinates this time.

    If your server is windows I have no idea how you would do this. I guess you could do something similar, but you'll need a program that supports command-line options or has an availible API.
  5. Jul 24, 2005 #4
    PHP with the GD library may be of some use, and you can also implement PHP in flash so it's basically having php parse codes for action script.
  6. Jul 24, 2005 #5


    User Avatar
    Staff Emeritus

    Again, why get flash involved? Keep It Simple Stupid.
  7. Jul 26, 2005 #6
    Am I missing somthing?

    The scanners are attached to the clients not to the server , anyway the server is runnnig Linux.
    We think this : http://delphitwain.sourceforge.net/ fits our needs.
    A little program written in Delphi connects to the scanners and aquires the image then we ask the user to upload them to our server.
    Any better ideas?
    Thank you all
  8. Jul 26, 2005 #7


    User Avatar
    Staff Emeritus

    From your first post it sounded like you wanted to connect remotely and do everything through the web interface. Now the client is doing the actually scanning and all they do is upload the file. That's easy enough. In this senerio you can get away with using the sofware that came with the client's scanner. Then all you have to do is have a simple php script that saves the uploaded file:

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Scanners in webbased programming
  1. Java's Scanner (Replies: 6)