Scanners in webbased programming

  • Thread starter Thread starter Omid
  • Start date Start date
  • Tags Tags
    Programming
AI Thread Summary
Connecting to a scanner via a Flash movie for a web-based accounting system is complex, particularly since scanners are typically client-side devices. A Linux server simplifies the process by allowing the use of SANE (Scanner Access Now Easy) command-line options through PHP to create and manage scanned files. For advanced features like cropping, JavaScript can be utilized to manipulate images. If the server is Windows-based, alternative solutions involving command-line compatible programs or APIs are necessary. The proposed solution involves using Delphi to connect to scanners, allowing users to scan and then upload images to the server. This approach can leverage existing scanner software, with a straightforward PHP script handling file uploads. Overall, the focus is on simplifying the scanning and uploading process while ensuring compatibility with the user's existing hardware.
Omid
Messages
181
Reaction score
0
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 ... ?
 
Computer science news on Phys.org
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.
 
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.
 
Again, why get flash involved? Keep It Simple Stupid.
 
Am I missing somthing?

dduardo said:
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.


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 acquires the image then we ask the user to upload them to our server.
Any better ideas?
Thank you all
 
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:

http://www.netspade.com/articles/php/uploading.xml
 
Last edited by a moderator:
Back
Top