• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2128
  • Last Modified:

How to scan a document with adobe air?

I need to copy customers ids into my database I am using Adobe Flex with Adobe Air for desktop runtime. I need to get the image from the scanner to adobe air.
0
Ahodson
Asked:
Ahodson
  • 7
  • 5
  • 4
1 Solution
 
CyanBlueCommented:
I don't believe you can have an access to a scanner from an AIR application...

CyanBlue
0
 
AhodsonAuthor Commented:
Do you know of some other way I can get the id to the program?
0
 
CyanBlueCommented:
No, I have no idea how to do that with Flash...

CyanBlue
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
sompol_kiatkamolchaiCommented:
Hi,

The communication between air and scanner should be

air --> flex(browser) --> activex --> scanner

1.air --> flex(browser)
You can use localconnection which is feature of adobe air/flex.
Here is some example
http://blog.everythingflex.com/2008/01/11/more-fun-with-air-localconnection-source-included/
2.flex(IE) --> activex using javascript
3.activex --> scanner

For activex, you should try to check your scanner model whether it provide driver in form of activex or not. If not, you need to build custom activex and communicate with scanner by calling .dll of scanner driver.

Hope this help,
Sompol
0
 
AhodsonAuthor Commented:
can this be reverse for scanner -> activex -> air?
0
 
sompol_kiatkamolchaiCommented:
The communication between each component is two way.

I used to send a command scan from air to scanner and  then activex is waiting for image data from scanner which is call back. Hence this is asynchronous and is two way.

This is the solution I am using in my project and it is working fine.
0
 
AhodsonAuthor Commented:
Im not sure if I can ask this cause im need to this site but is there a way you can send me some file showing this. I never used activex before.
0
 
AhodsonAuthor Commented:
can someone please get me a working demo>?
0
 
CyanBlueCommented:
Any update???

CyanBlue
0
 
AhodsonAuthor Commented:
0
 
sompol_kiatkamolchaiCommented:
I think Adobe Air in later version will allow to load and access dll soon. Let's check it.
0
 
CyanBlueCommented:
Interesting one...  Love to see what you learn from that topic...
I don't see a point of leaving this topic idle... Can you close this one???  ;)

CyanBlue
0
 
sompol_kiatkamolchaiCommented:
Here is a release note of AIR2,
http://labs.adobe.com/wiki/index.php/AIR_2:Release_Notes

Please see in the section Native process API. It will allow AIR applications to run and communicate with other native processes via the command line.

This is beta version and you need to check your printer whether it provide the command-line to communicate or not. But I think this is easier than the prior solution I mentioned above.

Hope this help,
Sompol
0
 
AhodsonAuthor Commented:
could show one show me how to use Native process API.
0
 
sompol_kiatkamolchaiCommented:
0
 
AhodsonAuthor Commented:
sorry Im a real newb when it comes to this but whats the process when it comes do dealing with the scanner?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now