Scanners in webbased programming

In summary, the conversation was about finding a web-based solution for scanning and uploading attachments to a web-based accounting system. Suggestions were given for using Javascript, PHP, and various software programs such as TWAIN and Delphi. The final solution suggested was to have the client do the scanning and then using a simple PHP script to upload the file to the server.
  • #1
Omid
182
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
  • #3
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.
 
  • #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.
 
  • #5
Again, why get flash involved? Keep It Simple Stupid.
 
  • #6
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
 
  • #7
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:

1. What are scanners in webbased programming?

Scanners in webbased programming are tools that allow a programmer to read input from a user. They are commonly used to scan and parse user input from forms on a website. They can also be used to read and interpret data from files or other sources.

2. How do scanners work in webbased programming?

Scanners work by reading input from a source, such as a user's keyboard or a file, and then breaking it down into smaller pieces or tokens. These tokens can then be processed and used in a program. Scanners use various methods, such as regular expressions, to identify and extract the relevant information from the input.

3. What are the advantages of using scanners in webbased programming?

Scanners offer several advantages in webbased programming. They allow for easy and efficient processing of user input, as well as validation and error handling. They also make it possible to handle different types of input, such as numbers and strings, without having to write separate code for each type.

4. Are there any limitations to using scanners in webbased programming?

While scanners are useful tools, they do have some limitations. One limitation is that they can only process input that is in a specific format, so they may not be suitable for all types of user input. Additionally, scanners can be vulnerable to security issues such as cross-site scripting, so proper precautions must be taken when using them in webbased programming.

5. How can I learn to use scanners in webbased programming?

There are many resources available for learning how to use scanners in webbased programming. Online tutorials, courses, and documentation from programming languages and frameworks can provide helpful information and examples. It may also be helpful to practice with simple programs and gradually increase the complexity as you become more familiar with how scanners work.

Similar threads

Replies
7
Views
222
  • Programming and Computer Science
Replies
15
Views
1K
  • Programming and Computer Science
Replies
6
Views
1K
  • Programming and Computer Science
Replies
23
Views
1K
  • General Discussion
Replies
0
Views
571
Replies
2
Views
875
  • STEM Academic Advising
Replies
3
Views
770
Replies
13
Views
1K
  • Programming and Computer Science
Replies
22
Views
919
  • Computing and Technology
Replies
8
Views
17K
Back
Top