Applets and Screencapture (Capture and Discard)

Hello Everyone,
I need to capture part of a screen for processing in a Java applet. The screenshot will only exist as long as the applet exists, will not be sent anywhere, will not be saved to the user's drive and is only needed to be created then distroyed when the user leaves the page. In other words, the screenshot will only be local to the client the applet runs on. My question(s) is:
- Is there an alternative to Robot for taking a screenshot in an applet?
- If there is no alternatives to Robot, how can I grant permissions in AWTPermission to allow for instantiation of Robot and to take such screenshots?
Yes, Robot can be inherently unsafe. However, there are many ways Robot's functions can be used for non malicious purposes. I'm wondering if they can be enabled for this purpose.
Devyn

You can combine it with JavaScript (generally not so good an idea).
You can get the document-object-model from within the applet;
in JavaScript you can use the applets functions - when all comes together.
In general you might consider Java WebStart to install a local application with web browser interaction.

Similar Messages

  • Capture and propagate on the same db

    hi.
    I am testing out capture, propagate and apply processes on a database on my machine, the hoststring for which is tempdw.ps0339
    There are two users 1. scott (serving as a source database) 2. target (servicing as a target db)
    the strmadmin user is there which is the admin user for streams.
    now i first connect to the destination db and create an apply process as
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => '"TARGET"."ORGANISM"',
    streams_type => 'APPLY',
    streams_name => 'STRMADMIN_TEMPDWPS0339',
    queue_name => '"STRMADMIN"."STREAMS_QUEUE"',
    include_dml => true,
    include_ddl => true,
    source_database => 'TEMPDW.PS0339');
    END;
    I then connect to the same strmadmin user and create capture and propagate process as
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => '"SCOTT"."ORGANISM"',
    streams_type => 'CAPTURE',
    streams_name => 'STRMADMIN_CAPTURE',
    queue_name => '"STRMADMIN"."STREAMS_QUEUE"',
    include_dml => true,
    include_ddl => false,
    source_database => 'TEMPDW.PS0339');
    END;
    DBMS_STREAMS_ADM.ADD_TABLE_PROPAGATION_RULES(
    table_name => '"TARGET"."ORGANISM"',
    streams_name => 'STRMADMIN_PROPAGATE',
    source_queue_name => '"STRMADMIN"."STREAMS_QUEUE"',
    destination_queue_name => '"STRMADMIN"."STREAMS_QUEUE"@TESTDB1.PS0156',
    include_dml => true,
    include_ddl => false,
    source_database => 'TEMPDW.PS0339');
    END;
    i get an error on the capture process
    ERROR at line 1:
    ORA-01426: numeric overflow
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 75
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 21
    ORA-06512: at line 2
    while the propate works.
    My question is.. is this ok. Can i have capture, propagate and apply processes on the same db, with all the three created under one user strmadmin ???
    Pls help.
    Trupti

    I don't think you can can propagate messages from one queue to another queue on the same database in STREAMS.
    Propagation is for sending messages from capture queue on source database to apply queue on destination using the DBLINK to DESTINATION db.

  • Image Capture and MP4 and MOV with iPhoto

    Using Image Capture, I tried to transfer pictures and movies (MP4 and MOV) from my iPad 3 to iPhoto on my iMac. Things were looking good, images and movies were transfering fine, iPhoto had opened with all of them in a new event. I was able to play both MP4 and MOV from iPhoto. Then I quit iPhoto and Image Capture and launch iPhoto again and try to play the movies that I just imported, iPhoto says it can't find them. It seems that it can't find them if Image Capture is not running !? Although the pictures are fine. Can somebody help me ? Thanks for the help.

    I needed that option off because I want to keep them only on my NAS, so PC users can still accesses them when needed. I didn't want different sources, only on that I know is "the actual source".
    Now, I did import them on Images directory using Image Capture and it worked. Then I moved them to my NAS.
    But I just realized that the iPad appears in iPhoto and that I can import them into iPhoto directly ! It works fine, meaning that if I disconnect the iPad from the iMac, the movies play just fine. The initial setup was to launch Image Capture when the iPad is connected to the iMac. I disabled it. I plan to use the import from iPhoto instead.
    But I still need to keep those pictures and movies on the NAS as well. It means that I will need to export them on the NAS eachtime.
    Thanks for your help, it really helped.

  • Problems in sound capture and JMF deployment

    Hello:
    I am new to JMF.
    I made an applet using JDK 1.3 on JBuilder 5. This applet captures and plays audio. When I run it through JBuilder's IDE, it runs fine. But when I run it independently, the applet's GUI appears but sound recording doesnn't work. Remember that I have JRE1.4.2 and JMF2.1.1e installed on my machine.
    When I installed JMF, I enabled the recording, and file writing options for an applet.
    To further check the problem, I ran it through JMF debugger. There I found that it says that ,
    <permission javax.sound.sampled.AudioPermission "record";> is not enabled.
    To enable it I added this entry in java.policy. This allowed the audio capture to work.
    But my question is,
    1. Why isn't this entry present by default in java.policy?
    2. Even one of my user entered this entry in java.policy, but was unable to capture audio.
    3. I want my applet to be running with different users having different versions of JRE,JMF and browser settings. How can I do this, without asking my user to do anything? I simply want that when my user downloads this applet, I should provide him with some installation file that installs JMF as well as configures everything on the system in a way that he can use this applet easily.
    Haven't you guys faced such problems in deploying JMF stuff?
    I'll be grateful for any help.
    Thanks
    Jami

    Hi.
    I am facing very similar problems: it looks like deploying JMF with Java Applets is really a challange!
    On my own test installation, if I enable audio capture and file writing for applets through the JMFRegistry, then I am able to record audio from my test applet, even when executed in the target web browser.
    Nevertheless, how to deploy the applet in such a way clients won't be required to manually install JMF and enable audio capture and file writing through the JMFRegistry?
    It looks like the JMF Customizer is able to produce a custom JAR also embedding user preferences for audio capture from applets and file writing , is this correct?
    Any help would be greatly appreciated.
    Regards,
    Marco.

  • Capture and transmit audio

    Hi all,
    I need to implement an applet wich can capture audio (and possibly video) from the client for transmit it to the server. Is there some example already developed? Where I can found info about this?
    Thanks a lot for your help!
    Dmitry Yeskin.

    I tried that exaples, but It doesn't work!
    If your code works, please send it to me!!!!
    I have many problems with given sources: nothing works normally!!!
    Thanks,
    Best, Aram.

  • Audio capture and converting the audio data to .wav file

    hi,
    i am new to applet and javax.sound and trying to build online recorder SDK in applet. I could captured the audio data and play the sound from microphone and also store the audio data to .wav file successfully. But when try to play that file from Window Media Player, i got the message "Windows Media Player cannot play the file. The file is either corrupt or the Player does not support the format you are trying to play." I have tried it all in different way but it's not working for last 5-6 days. Is there anyone who could help me , my work is stocked b'coz of this.
    Thanks

    this is the thread in which i am storing the audio data from audio stream to .wav file
    class CaptureThread extends Thread{
                          public void run(){
                                      AudioFileFormat.Type fileType = AudioFileFormat.Type.WAVE;
                                      File audioFile = new File("junk.wav");
                                       try{
                                       final AudioFormat format = getFormat();
                                             line.open(format);
                                          line.start();
                                             AudioSystem.write(
                                              new AudioInputStream(line),
                                              fileType,audioFile);
                                        }catch (Exception e){
                                             e.printStackTrace();
                                          }//end catch
                                     }//end run
                        }//end inner class CaptureThread

  • Capture and Export of Mono Audio in FCP HD

    I have just upgraded to FCP HD from FCP 3. My problem is all of my audio needs to be Mono only. In v3 this was simple I just chose Mono from the capture settings and Mono for Export.
    On FCP HD I can't find any way to capture and export as Mono. When I record Voice Over in FCP all I get is the right channel and even when I set it to pan centre it still only comes out the right speaker after export.
    If I've got to manually duplicate tracks everytime it will take me forever.
    Anybody know a simple way to capture and export Mono only (the same for both Ch 1 + 2)
    G4 DP 1.25   Mac OS X (10.4.6)  

    This might seem the long way 'round but it may save a ton of time in the end.
    Do your FCP mix in stereo as Colin suggests, then take the final audio track into STP or Peak and do a "mix to mono" and then save a new AIFF file with the resulting mono clip.
    Then bring that back into FCP on a new audio track, line it up with the stereo, then either disable or delete the stereo tracks. This will give you a true mono audio track.
    But where are you going with this content that will handle mono audio? DVDs require a stereo AC3 files. Are you sure you really need a mono sound track?

  • CS3 - Video freezes on Capture and Playback - Please Help!

    Hello all,
    Here's the problem:
    When Capturing footage via firewire from Mini DV, shot in standard DV, within a standard NTSC-DV Widescreen 48k Project, the picture freezes after 1 second.  The audio can still be heard and the footage actually does get captured.  However, after the footage has been conformed, and we load the clip into the Source Window and hit play, the video again freezes after 1 second of play.  Again, the audio keeps playing and you can move the marker anywhere on the clip and see that all the footage is indeed there, but as soon as you go to play it from any point - same thing, the picture freezes after 1 second of play, making editing impossible.  The clip is being captured as an .avi and all capture settings appear to be correct.
    Here's the kicker:
    - HDV video captures and plays back fine.
    - The DV video captured correctly at first, this has been a recent problem going on now for several weeks, after no changes to the system.
    - The biggest kicker - after trying successfully to capture, playback and edit HDV video, we closed Premiere, reopened, tried to play the previously captured DV footage and it played just fine suddenly!!!  Then we closed the program, re-opened and tried again - back to the freezing problem and it never played back fine again...
    Here's the specs (I can give more specifics later if needed, it's my partner's computer):
    Sony PD-150 DV-Cam (but recording on Mini DV in standard DV mode, not DV-Cam)
    Windows 7
    Intel Core i7 3.20 ghz
    Asus X58 Motherboard with onboard Audio and Firewire
    6 GB Ram
    Nvidia Geforce 9 Series with PhysX
    Please help if you have any idea how to solve a crazy problem like this.  Thank you!!!
    Greg

    Now that everything is working, make a full drive image to an external USB hard drive
    I use http://www.terabyteunlimited.com/image-for-linux.htm

  • Image Capture and Preview "folder not writable" error importing to shared folder

    I'm running 10.8.5 on a Late 2012 model Mac Mini. I'm trying to create a folder under my home directory where my wife can import pictures using Image Capture or Preview while logged into her account. I've tried setting permissions on the folder by setting POSIX permissions and ACLs from the command line, and also by setting ACLs using Get Info in Finder, but it seems as though both Image Capture and Preview ignore the ACLs and instead rely solely on the POSIX permissions for everyone/other (even when a relevant group is set). Unless the POSIX permissions for everyone/other are "rwx" Image Capture and Preview both give an error that the import failed, and /var/log/system.log shows errors that the "folder is not writable". I'd like to be able to set this up without making the folder and the files in it writable by everyone. My understanding was that ACLs should take precedence over POSIX permissions, but even the POSIX permissions don't seem to be getting handled properly, because the group is ignored. Any help or explanation of what's happening would be appreciated.
    Here's an example with details:
    Suppose we have the users alice and bob. We want to set permissions on the directory /Users/bob/importdir such that Alice can import files from a camera there using Image Capture (or Preview, either would do), but don't want to relax the permissions more than necessary.
    We create a group named bob_and_alice
    We set the following permissions on /Users/bob:
    POSIX: rwxr-xr-x, owner=bob, group=staff (i.e. default POSIX permissions)
    ACLs:
    0: group:everyone deny delete
    1: group:bob_and_alice allow list,search,readattr,readextattr,readsecurity
    2: user:alice allow list,search,readattr,readextattr,readsecurity
    "Get Info" shows "Read & Write" for bob and "Read Only" for alice, bob_and_alice, staff, and everyone
    We set the following permissions on /Users/bob/importdir:
    POSIX: rwxrwxr-x owner=bob, group=bob_and_alice
    ACLS: (these are already probably more permissive than should be necessary)
    0: group:bob_and_alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    1: user:alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    "Get Info" shows "Custom" for both alice and bob_and_alice, "Read & Write" for bob, and "Read Only" for everyone
    Alice opens a Terminal and cd's to /Users/bob/importdir. Alice can create and delete files in this directory.
    Now Alice opens Image Capture and with our camera connected we try to import a photo to /Users/bob/importdir. Image Capture shows an error dialog with the text "Import error. An error occurred while importing. The item 'foo.jpg' was not imported." /var/log/system.log shows the message: "Jul 20 22:12:34 computer_name.local Image Capture[32804]: Document destination folder is not writable" If instead Alice uses Preview it shows an error dialog with the text "The selected folder is not writable" and /var/log/system.log shows two error messages:
    Jul 20 22:23:45 computer_name.local Preview[33280]: Document destination folder is not writable
    Jul 20 22:23:45 computer_name.local Preview[33280]: Encountered error during image import: Error Domain=com.apple.ImageCaptureCore Code=-9934 "The selected folder is not writable" UserInfo=0x7ffda4881f00 {NSLocalizedDescription=The selected folder is not writable}
    Now we change the POSIX permissions on /Users/bob/importdir to: rwxrwxrwx
    The import succeeds with both Image Capture and Preview
    Can anyone explain what's going on here? Is there another reasonable way to do this without, moving this shared directory to /Users/shared?

    Did you figure out how to fix this?

  • Excise duty /quantity capture and post

    hi
    i did MIGO for particular material. I cannot maintain condition and j1id for that material. But vendor send me Excise invoice for that .Then how i will  capture and post the quantity and duty now?
    i cannot cancel MIGO bcaz stock is consume through quality managment.
    help me
    sunil

    Hi Sunil,
    maintain J1ID for that amterial and capture the E.I. with ref to material document with t-code J1IEX
    Hope this will resolve ur query

  • Excise duty capture and posting..?

    Hi all
    Can anybody explain me about , excise invoice capture and posting ..
    What is capture and posting excise invoice in CIN..?
    1.When we capture excise duty..? were it wil go
    2.When we wil post the same..? were it wil go
    Thanks
    sap-mm

    HI,
    Capturing Excise invoice means you are updating excise register Part1 on quantity basis.(Inward movement of goods like purchasing of raw material.)
    Posting the excise is updated on value basis, in this RG23part2 rgister is been updated .it has financial implication.
    Example:
    In MIGO transaction itself, you can post Excise by choosing Capture and Post Excise Invoice. The FI document will be as follows:
    RG23A Basic Excise Duty A/c Dr
    RG23A Education Cess A/c Dr
    To CENVAT Clearing A/c
    After doing MIGO, you execute MIRO. In this transaction also, SAP will generate FI document automatically. The entry will be as follows:-
    GR/IR Clearing A/c Dr
    CENVAT Clearing A/c Dr
    VAT Setoff A/c Dr
    To AP-Vendor A/c
    Regards,
    Biju k

  • Preview and image capture don't save imported scanned image

    Hi. Both preview and image capture aquire the scanner and displays the image overview. But when proceeding
    to scan, the application simply hangs and no image is saved.
    Maybe some prefs file is corrupted. Tried removing the com.apple.Preview from ~/Library/Containers, but didn't help....
    What to do???

    Not sure if this is relevant:
    1) TWAIN-BRIDGE is installed otherwise mavericks won't talk to the scanner.
    2) recently added an HP printer (no scanner). Shouldn't conflict with the scanner driver, but then again.....

  • Preview and Image Capture Not Recognising Scanner

    Preview and Image capture have stopped recognising my networked Canon MX350 scanner.  It seemed to occur after I used PhotoScore to scan some sheet music but that could be coincidence.  I deleted the scanner driver and reinstalled it from the Canon website together with the MP Navigator software, and I am now able to scan from MP Navigator but not Image Capture or Preview.  I have run Software Update but no updates are available.

    Apple's official documentation only provides an information about printing by using this device - scanner is not listed. I would suggest to look for specific drivers on Canon's official webpage.
    OS X: Printer and scanner software available for download - Apple Support

  • Hello apple guys, i can't open app store, reminders, contacts, mail(crash), maps, Image Capture, and other apps that comes with Mavericks OS, how i can solve this problem?

    hello apple guys, after installing OS X Mavericks, i can't open app store, reminders, contacts, mail(crash), maps, Image Capture, and other apps that comes with Mavericks OS, how i can solve this problem?

    So is this the way Apple works now? Not solving customers problems? I'm sure so many users have had this problem. I've had, and I reinstalled Mavericks 3 times. Works fine for some days and then several Apple Apps stop working. Is that a way to force us ti update to Yosemite? (I don't want to) and then pay to update some third party programs (i.e. Pro Tools). Also, there are so many 15" MacBooks Pro with graphic problems and of course the guys at the Apple Service Centers always say: "It's the logic board, you can have it replaced, but it's so expensive I would recommend a new Mac".  I really, really miss Steve Jobs!

  • Blue screen of death, surprise restarts, and some captured clips distorted, with blocky artifacts!

    Hello,
    I've been using my set-up (Premiere Pro 2.0* with Cineform AspectHD) successfully for years, to capture and edit footage. But just recently, my computer has given me the blue screen of death after capturing for about 5-10 minutes or caused my computer to restart in the middle of capturing. I've also noticed that the resulting captured clips are, in some places, distorted and contain blocky artifacts. It isn't a problem with the tape because the footage plays just fine on the camera's preview monitor. I tried re-installing Premiere Pro 2.0 and Cineform AspectHD, but the problem persisted after a successful, but brief capture session (the resulting clips were still distorted and contained blocky artifacts). I have no idea what the problem is! One solution I attempted was to capture on another computer in my house, using the same software. Although I didn't get the blue screen of death or a surprise restart, the captured clips were still distorted and contained blocky artifacts in some spots. Another option I tried, with the second computer, was deselecting the Scene Detect option in the capture dialogue box. As a result, the captured clips are free of distortion and blocky artifacts, but the problem is that the captured clips are too big and very difficult to manage (I shoot a lot because I'm a filmmaker and I'm in the middle of a big project). Why is this happening?!
    Any help with this problem would be greatly appreciated!
    *I'd use a later version of Premiere, but I spent a lot of money on Cineform AspectHD and the version of Cineform I have only works with Premiere Pro 2.0.

    I agree with John T. BSOD's are most often caused hardware issues, such as overheating of a component, or a failing, or undersized PSU.
    Also, general system drivers can cause failure. Often, those are outlined (though maybe not in really adequate detail) in the Event Viewer's log. In that article, that John T. linked to, there is another link to "Finding Clues." It goes into more detail on using Event Viewer to explore warning, or error messages. If your testing of your system's components and heat, do not yield a weak link, see that one (no pun intended). It is in Reply # 3.
    Good luck,
    Hunt

Maybe you are looking for

  • Everything you need to know about Foxtel Go

    Foxtel on T-Box customers can self register Foxtel Go on 2 devices per Foxtel on T-Box subscription. You are able to view content on 1 of the 2 registered devices. The T-Box device will automatically be registered on your behalf and cannot be deregis

  • Slackware 12.2 USB w/ hdd install on a t400

    I am having so much trouble with this... I'm working with a t400, and using the hdd in the ultrabay not wanting to touch the main hdd. The idea is to Install slackware to the Ultrabay drive, which should be simple... However I can't boot from DVD, so

  • Problem installing new Discoverer Catalog AS 10gR2 with Oracle 10g 10.1.0.4

    Hello everybody, I'm having the following problems I have successfully installed 1. Oracle 10g (10.1.0.4) with all appropriate patches (successfully up and running and works with Analytic Warehouse Manager 10g R1) 2. Oracle Application Server 10g R2

  • Selection for data load

    hi friends, I have a datasource which contained 25 fields, in that 25 fields, we have selected only 4 fields as key fields.this datasource used in a ods and all are work fine..... so, it was moved into production.. now due to the data capacity in pro

  • SAN already in use FCP X

    Hi, Please can some one help? I have just taken a SW update to FCP X and now my projects are not loading and I get an error saying SAN already in use... Is there anyway around this? Thanks... /John