Scanners in webbased programming

  • Thread starter Omid
  • Start date
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 ..... ?
 

robphy

Science Advisor
Homework Helper
Insights Author
Gold Member
5,381
661
Last edited by a moderator:

dduardo

Staff Emeritus
1,894
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.
 
393
0
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.
 

dduardo

Staff Emeritus
1,894
3
Again, why get flash involved? Keep It Simple Stupid.
 
182
0
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 aquires the image then we ask the user to upload them to our server.
Any better ideas?
Thank you all
 

dduardo

Staff Emeritus
1,894
3
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 [Broken]
 
Last edited by a moderator:

Related Threads for: Scanners in webbased programming

Replies
1
Views
2K
  • Posted
Replies
6
Views
28K
  • Posted
Replies
1
Views
550
  • Posted
Replies
5
Views
340
  • Posted
Replies
9
Views
2K
Replies
14
Views
1K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top