How to send signal back to the scanner.

Hi all, In my project I'm supposed to send the signal back to the scanner to force it make a serie of beeps , block the scanner or something like this. Does anyone know how to approach this ?
Thanks for any help.
Regards.

Hi all, In my project I'm supposed to send the signal
back to the scanner to force it make a serie of beeps
, block the scanner or something like this. Does
anyone know how to approach this ?
Thanks for any help.
Regards.Try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
JTwain supports all kinds of digital cameras and scanners.
You can use Java to access, contorl digital cameras and scanners, and of course,
to acquire images with flexible settings.
The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
Here is the sample code:
try {
   // the SourceManager manages and controls all the data(image) sources, eg. scanners, digital cameras,
   Source source = SourceManager.instance().getDefaultSource();
   source.open();
   // Enables or disables the UI
   source.setUIEnabled(false);
   Image image = source.acuqireImage();
   ... // Uses image here ...
   // Saves the image into a file
   source.saveLastAcquiredImageIntoFile("test.jpg");
}catch(Exception e) {
   e.printStackTrace();
}finally{
   SourceManager.closeSourceManager();
}Good luck!

Similar Messages

  • How to send data back to the server

    i create a program to send data back to ther server using j2me.
    its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
    here is sample code which is run well on emulator but not on mobile.
    what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
    Pls reply asap.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * An example MIDlet to invoke a CGI script.
    public class ThirdExample extends MIDlet {
    private Display display;
    // String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
    String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
    public ThirdExample() {
    display = Display.getDisplay(this);
    * Initialization. Invoked when we activate the MIDlet.
    public void startApp() {
    try {
    getGrade(url);
    } catch (IOException e) {
    System.out.println("IOException " + e);
    e.printStackTrace();
    * Pause, discontinue ....
    public void pauseApp() {
    * Destroy must cleanup everything.
    public void destroyApp(boolean unconditional) {
    * Retrieve a grade....
    void getGrade(String url) throws IOException {
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    TextBox t = null;
    int x = 5, y =7;
    try {
    c = (HttpConnection)Connector.open(url);
    c.setRequestMethod(HttpConnection.GET);
    c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
    c.setRequestProperty("Content-Language", "en-CA");
    os = c.openOutputStream();
    String str = "?idnum=182016";
    byte postmsg[] = str.getBytes();
    for(int i=0;i<postmsg.length;i++) {
    os.writeByte(postmsg);
    os.flush();
    is = c.openDataInputStream();
    int ch;
    while ((ch = is.read()) != -1) {
    b.append((char) ch);
    System.out.println((char)ch);
    t = new TextBox("Final Grades", b.toString(), 1024, 0);
    } finally {
    if(is!= null) {
    is.close();
    if(os != null) {
    os.close();
    if(c != null) {
    c.close();
    display.setCurrent(t);
    }>

    i create a program to send data back to ther server using j2me.
    its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
    here is sample code which is run well on emulator but not on mobile.
    what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
    Pls reply asap.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * An example MIDlet to invoke a CGI script.
    public class ThirdExample extends MIDlet {
    private Display display;
    // String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
    String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
    public ThirdExample() {
    display = Display.getDisplay(this);
    * Initialization. Invoked when we activate the MIDlet.
    public void startApp() {
    try {
    getGrade(url);
    } catch (IOException e) {
    System.out.println("IOException " + e);
    e.printStackTrace();
    * Pause, discontinue ....
    public void pauseApp() {
    * Destroy must cleanup everything.
    public void destroyApp(boolean unconditional) {
    * Retrieve a grade....
    void getGrade(String url) throws IOException {
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    TextBox t = null;
    int x = 5, y =7;
    try {
    c = (HttpConnection)Connector.open(url);
    c.setRequestMethod(HttpConnection.GET);
    c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
    c.setRequestProperty("Content-Language", "en-CA");
    os = c.openOutputStream();
    String str = "?idnum=182016";
    byte postmsg[] = str.getBytes();
    for(int i=0;i<postmsg.length;i++) {
    os.writeByte(postmsg);
    os.flush();
    is = c.openDataInputStream();
    int ch;
    while ((ch = is.read()) != -1) {
    b.append((char) ch);
    System.out.println((char)ch);
    t = new TextBox("Final Grades", b.toString(), 1024, 0);
    } finally {
    if(is!= null) {
    is.close();
    if(os != null) {
    os.close();
    if(c != null) {
    c.close();
    display.setCurrent(t);
    }>

  • Send Data back to the Server

    Hi.
    how to send data back to the server using J2ME or how to communicate with server using J2ME

    i am using http its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
    here is sample code which is run well on emulator but not on mobile.
    what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
    Pls reply asap.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * An example MIDlet to invoke a CGI script.
    public class ThirdExample extends MIDlet {
    private Display display;
    // String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
    String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
    public ThirdExample() {
    display = Display.getDisplay(this);
    * Initialization. Invoked when we activate the MIDlet.
    public void startApp() {
         try {
    getGrade(url);
         } catch (IOException e) {
         System.out.println("IOException " + e);
         e.printStackTrace();
    * Pause, discontinue ....
    public void pauseApp() {
    * Destroy must cleanup everything.
    public void destroyApp(boolean unconditional) {
    * Retrieve a grade....
    void getGrade(String url) throws IOException {
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    TextBox t = null;
    int x = 5, y =7;
    try {
    c = (HttpConnection)Connector.open(url);
    c.setRequestMethod(HttpConnection.GET);
    c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
    c.setRequestProperty("Content-Language", "en-CA");
    os = c.openOutputStream();
    String str = "?idnum=182016";
    byte postmsg[] = str.getBytes();
    for(int i=0;i<postmsg.length;i++) {
    os.writeByte(postmsg);
    os.flush();
    is = c.openDataInputStream();
    int ch;
    while ((ch = is.read()) != -1) {
    b.append((char) ch);
    System.out.println((char)ch);
    t = new TextBox("Final Grades", b.toString(), 1024, 0);
    } finally {
    if(is!= null) {
    is.close();
    if(os != null) {
    os.close();
    if(c != null) {
    c.close();
    display.setCurrent(t);

  • How can I get my 2010 mac book pro to send signal out through the mini display port?                      end signal out through the end video signal out through the

    How can I get my 2010 macbook pro to send signal out through the mini display port?

    First, what you said is contradictory. You say "can't get a video signal", then say"the Mac wallpaper is broadcast, the mouse pointer is visible". "No video signal" means an absolutely black,blank screen. It sounds like you have plenty of signal.
    I am supposing what you are seeing is actually a blank desktop, which is to be expected if your settings are such that you are extending the desktop, instead of mirroring it.
    Within the preference panes is a setting that allows you to change this. Open System Preferences, click Displays, and then click Arrangement. You will see that you are extending the desktop. Change that setting.

  • In Elements 12 how do I auto fix multiple pictures, then send them back to the organizer?

    In Elements 12 how do I auto fix multiple pictures, then send them back to the organizer?

    Hi,
    You can try the batch processing, refer the below link
    http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-7 fff.html#WS287f927bd30d4b1f89cffc612e28adab65-7ff6

  • The new forced upon me upgrade for iPhoto '11 never opens. After I do all that is recommended, it sends me back to the beginning. How can I get it to work?

    I am using a mac mini version 10.9.5 which I have just updated. Now when I try to open i photo, all I get is a message telling me to "prepare" my library. I have installed and run the iPhoto library upgrader, but it only sends me back to the beginning telling me to install the upgrader (which has already been installed.)
    How can I actually get the upgrader to prepare my libraries and actually see photos?

    What version of iPhoto are you currently running and what version did you have previous to the upgrade to 9.5.1?
    Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • HT2242 How do I change my country in my apple account? Every time I sign in, the system automatically sends me back to the store my account is currently based in and I am unable to change this.  I keep going in circles.

    How do I change my country in my apple account? Every time I sign in, the system automatically sends me back to the store my account is currently based in and I am unable to change this.  I keep going in circles.

    No, What I mean  is, Now I am leaving in USA but every time that I tried to download an app only appear app available in Venezuela no the one available in USA. 
    I already change my address and select USA but still I can not download app for USA

  • I have OS X Yosemite - my current version of iPhoto is not compatible with it / how do i find the correct version of iPhoto?  The APP Store keeps sending me back to the same 'current version' that is NOT Compatible...

    I have OS X Yosemite - my current version of iPhoto is not compatible with it / how do i find the correct version of iPhoto?  The APP Store keeps sending me back to the same 'current version' that is NOT Compatible...

    If you have Yosemite you need iphoto 9.6 from the App store - what is the exact error message you are getting?
    Try dragging the iphoto Application to the trash from your applications folder (wait tot empty the trash) and then install iPhoto 9.6 from the App store
    LN

  • How do I revert back to the old operating system?  The new upgrade that came out totally disabled my WiFi and the default backgrounds changed to white instead of bla k.

    An upgrade was sent to my Samsung Galaxy S5 phone on 3/27/15 and it ruined my phone.  I no longer have the ability to Wi-Fi.  When I swipe the phone on there is a clicking sound and the scree goes directly to my keypad.  I want the phone to go to my home screen like it did before.  My apps that had a black background now have a white background which is impossible to see outdoors.  I want the black background back for settings, clock, and calculator.  Samsung tech support says this stuff is default with the new upgrade.  How do I revert back to the version I had before without having to put the phone back to factory settings and lose all my pictures, memos and other files I have accumulated over the last year that I have had the phone.  I am desparate.  Please help me.  Send an e-mail to (removed)
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Message was edited by: Verizon Moderator

    You cannot revert back without voiding warranty and we cannot discuss the methods to do so.

  • I've managed to get back to Pages 4.3 and delete the downgrade Pages 5, which makes a total mess of any doc prepared with it,  but how to I get back to the old version of Pages on my iPad so that I can work while I am away from home.

    I've managed to get back to Pages 4.3 on my iMac and delete the downgrade Pages 5, which makes a total mess of photo-rich documents prepared with Facing Pages (most of mine),  but how to I get back to the old version of Pages on my iPad so that I can work on sections away from home. At least on my old PC, Word maintained compatability with old versions. Beginning to regret having switched.

    Thanks for your help. What is really irritating is that Apple give a big hurray about what they have added as "new"  in Pages 5 (most of it pretty useless) without telling you of the myriad things they have deleted.  If they had shown the list your gave the link to, I doubt may regular users would risked going to Mavericks with its auto upgrade. My partner got the message in time and is sticking with the earlier operating systems and Pages on Mac and iPad. Lucky girl.
    I have found a way to use my iPad to add chapters written while on the move to reports on my iMac Pages 4.3. If I write it on the new Pages on the iMac (don't seem to be able to revert there), the send the report as an email in WORD format (not Pages) and download it in the Text Editor, then cut and paste into the story on the iMac. Hardly elegant but it works.

  • HOW TO SEND XML BACK TO PRINT? (See Inside thread for more info)

    Hello Everybody,
    Because there is not a lot of documentation on  if_fp and if_fp_pdf_object
    I found out that i can retrive my PDF from the ADS with the following code:
        data:
        lo_fp                 TYPE REF TO if_fp ,
        lo_pdfobj             TYPE REF TO if_fp_pdf_object,
    pdf_xstring           TYPE xstring,
        xml_data              TYPE xstring,
        lv_xml_data_string    TYPE string.
                Get FP reference
      lo_fp = cl_fp=>get_reference( ).
                Create PDF Object using destination 'ADS' (<-- this is how it is defined in SM59)
      lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
                set document
      lo_pdfobj->set_document(
      EXPORTING
        pdfdata = fp_formoutput-pdf ). " fp_formoutput-pdf is of type xstring
                Tell PDF object to extract data
    lo_pdfobj->set_extractdata( )." obsolate!!!
      call METHOD lo_pdfobj->set_task_extractdata( ).
                Execute the call to ADS
      lo_pdfobj->execute( ).
      lo_pdfobj->get_data(
      IMPORTING
        formdata = xml_data ).
    After this i can manipulate xml_data but dont know how to send it back to print...
    Can you direct me to the solution please?
    Thank you in advance,
    Eran Fox
    p.s.:
    Component version    SAP ECC 6.0
    Unicode System         No
    Database system      ORACLE
    Release                     10.2.0.2.0
    Kernel release           700

    Hi Billy
    Yikes - how embarassing !  Thanks for pointing out my beginners mistake there.  I've fixed my code - and also implemented the substitutions of parameters like you suggested - I like that approach.
    Unfortunately the end result is no better - the line
    utl_http.read_text(resp,response_text);
    Still returns nothing back
    The headers that are coming back are
    Date: Thu, 04 Jul 2013 08:31:56 GMT
    Server: Apache/2.2.16 (Ubuntu)
    X-Powered-By: PHP/5.3.3-1ubuntu9.3
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Vary: Accept-Encoding
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    Connection: close
    I guess I will need to try chasing it with the fastsms vendor so see if they can check my incoming request and see if there are any glaring problems. I know the xml is correct as I am now logging the xml string just before I send it and when I take that string and put it in their test form it works perfectly - something else in the puzzle is missing. I've had no experience using utl_http before - perhaps it's no possible to read the xml repsonse using this ?
    Anyway, thanks for your help Billy.
    ps - How do you paste your code into your message to get that formatting ?
    Cheers,
    Brent

  • How to send Earphones back to Apple(Warranty)??

    Hi, i got a problem with my earphone.
    my left earphone was garbled so i went to this website and ordered new ones for free(I still have warranty). Everything is fine so far, I got the new earphones and they work, but I don't know how to send the broken ones back. Apple said that I would get instructions how to send them back, but i didnt get any, only a letter that I dont have to pay anything because of my warranty.
    So now Im trying to find out if the carrier matters and what carrier it is. I really dont know what to do. My repair status number is D10792823.
    Im really mad right now because if I dont get my earphones sent to Apple I have to pay a $29 non-return fee.
    Hope somebody can help me.
    Marcel
    (Sry for my post in the others thread, I didnt know how to open a new thread)

    If you need to send them back, there will be shipping label under the one that shipped them to your house. Peel off the top label.
    You would use the same carrier.
    Everything is already paid for so don't fill out new forms and don't pay anything.
    You can go here -> https://support.apple.com/repairstatus/Main
    and check on the status. It should show Awaiting customer return (or something similar) if they want them back.
    If in doubt, call 1-800-myapple.

  • How to send data back to publishing stream

    Hi,
    Environment: ActionScript3.0, FMS, Flash Project created in Flash Develop
    How to send data back to publishing stream? I need to send data back to publishing stream.
    Using NetStream.send() we can send data to subscribers but is it possible to send data from subscriber back to publisher using any NetStream method.
    One other solution to this is remoteSharedObject, but if it is possible with NetStream class then let me know.
    Thanks

    There are a number of ways to extract data from CRM On Demand including:
    * Export - manual process, generate CSV file containing CRM On Demand data
    * List/Analytics - manual process, export the contents of a report of list to a CSV
    * Web Services - programmatic, develop an application that queries for data within CRMOD
    * Integration Events - programmatic, use workflow to trigger event creation and then poll for events to know when an operation occurs on a record (i.e. Insert of new Account record)
    As for getting that data into another system, that will depend on the system and the methods available for inserting data that it makes available.
    Hope this helps.
    Thanks,
    Sean

  • As an update, I installed an update 5.7on my Mac laptop, now the Lightroom 5.0 has become a "Lightroom Mobile" version.  How can change it back to the laptop version?

    As an update, I installed an update 5.7on my Mac laptop, now the Lightroom 5.0 has become a "Lightroom Mobile" version.  How can change it back to the laptop version 5.7?
    Thanks for any help you can provide.

    LR on your laptop is still a desktop version.  It is just now able to upload to the cloud to replicate photos to either http://lightroom.adobe.com/ or an iPad that has LR Mobile installed.
    I think you probably just want to change the LR 5 identity plate back so it doesn’t mention LR Mobile all the time.  Hover over the identity-plate area, and click on the little triangle that appears, then choose Change Identity Plate.

  • Recently, I updated to Firefox 4.0.1, and the new version disabled several of my programs, including my anti-virus. How can I go back to the previous version of Firefox?

    I want to go back to the previous version of Firefox, because the new version (4.0.1 I think) that I downloaded disabled several of my programs, including my anti-virus program, because they were incompatible with the new version of Firefox. How do I get back to the previous version of Firefox and re-enable the disabled programs?

    * [/questions/777886]
    Some gestures have been removed in Firefox 4.
    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.latched -> <b>false</b>
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    You can use the Filter bar at to top of the about:config page to locate a pref more easily.

Maybe you are looking for