Scanners in webbased programming

  • Thread starter Thread starter Omid
  • Start date Start date
  • Tags Tags
    Programming
Click For Summary

Discussion Overview

The discussion revolves around the integration of scanner functionality into a web-based accounting system, specifically exploring how to connect and operate scanners through web technologies like Flash, JavaScript, and PHP. Participants are seeking solutions for scanning documents and uploading them to a database.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant questions the necessity of using Flash for the scanning process and suggests that a simpler approach could be more effective.
  • Another participant proposes that if the server is running Linux, using SANE command-line options through PHP could facilitate scanning and file creation on the server.
  • There is mention of using the GD library in PHP for image processing and the possibility of integrating PHP with Flash for handling ActionScript.
  • A later reply clarifies that the scanners are client-side, and suggests that users could scan using their own software and then upload the files to the server, which simplifies the process.
  • Links to various resources and tools related to TWAIN and SANE are provided by one participant as potential solutions.
  • Another participant expresses uncertainty about how to implement scanning on a Windows server, suggesting that an API or command-line options would be necessary.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to integrate scanning functionality. There are competing views on the use of Flash versus simpler alternatives, as well as differing opinions on server platform implications.

Contextual Notes

The discussion highlights limitations related to the server environment (Linux vs. Windows) and the dependency on client-side software for scanning, which may affect the overall implementation strategy.

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:

Similar threads

Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
38
Views
5K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 8 ·
Replies
8
Views
19K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
2
Views
3K
  • · Replies 17 ·
Replies
17
Views
16K