Can't get picture - BUT PERMISSION IS OK

In my applet the following code ( from init() ) throws an exception: Access denied.
Image img = getImage(getCodeBase(), "pic.gif");
images[i] = img;
mediaTracker.addImage(img, 0);
Fine - but this code section doesn't:
try{
SecurityManager sec = System.getSecurityManager();
String str = "D:\\Docs\\Kawa\\test\\pic.gif";
if (security != null){
System.out.print("\nAccess: "+str);
security.checkRead(str);
System.out.println("\t OK");
catch...
Both code sections are from init(), and the files are stored in D:\Docs\Kawa\test\
So I have a problem:
- I have permission to access the file.
- But havn't when I call getImage(...) for the same image.
- I've tried to edit the security file
- Checked the path and URL
- The file if it was damaged
- Tried it in the applet viewer and browser
- Changing options in IE 5.5
- Closed the firewall and the anti virus
- The pic is in the same dir as the class file
Do I've to sign it? just for one tiny picture!!! It can't be so difficult?
To sign an applet read:
http://developer.java.sun.com/developer/technicalArticles/Security/Signed/

It's me again. I've solved the problem with swing:
ImageIcon img = new ImageIcon("picture.gif");
img = img.getImage();
drawImage(img,...)I don't use the Applet.getImage(...) and the MediaTracker anymore - because the image was null when I called drawImage(...) - it throw an EXCEPTION. Even when I tried MediaTracker.waitForAll();Well it doesn't make any sense for me. Can you explain it - please.

Similar Messages

  • I get picture but no sound on my hd dvd player everything else works help!!!

    I have a sabre (hd) coby hd dvd player.  I get picture but no sound. My cable works and i can stream. It was working  ut now its not

    Certainly has nothing to do with Comcast, but you can always try unplugging/replugging whatever kind of cable you've got between the DVD player and the TV, and if using component, make sure all 5 connections are secure on both ends. 

  • In my itunes tab is images / photo disappeared. . can not get it back, so now I can not get pictures on my iphone??? I do not want to use the photo stream. there are others who have experienced this tab disappears

    in my itunes tab is images / photo disappeared. . can not get it back, so now I can not get pictures on my iphone??? I do not want to use the photo stream. there are others who have experienced this tab disappears

    Make the iTunes window wider.
    It is on the far right.

  • My project in imovie says source unavailable after I moved the events to the backup drive. It is connected and shows up in the events library. I can see the pictures but they won't play without the source. What do I do.

    My project in imovie says source unavailable after I moved the events to the backup drive. It is connected and shows up in the events library. I can see the pictures but they won't play without the source. What do I do.

    I moved it because I did not have room on my hard drive to import my latest video. I take videos my grandkids basketball games then edit them as projects. I don't have room to move the whole events library back to my hard drive. Can I move part of it at a time.
    I filled up my 1 TB back up drive so got a 3TB to move my video projects to. Do I have to move both the i photo videos and the projects to the 3 TB drive together some how. When can I delete them off the hard drive .
    I moved all the i photo library to the 3 TB drive and deleted them out of i photo. That is 87 GB which I don't have room for on my hard drive.
    I think when I use the export movie to my hard drive it works but will I still be able to edit it later if I want. Is it best to do quick time or i tunes if I use the export feature.

  • TS1589 Had to replace our Airport Extreme when it stopped working (still under warranty).  Now I can't get anything but flashing amber light. Airport utility says "error occurred" when I try to get it set up.

    Had to replace our Airport Extreme (802.11n) and now can't get anything but flashing amber light.  Have gone the route of turning off modem (overnight), restarting everything this morning and at least when I turned on the laptop (no desktop) the Airport Utility opened automatically.  I put in the info for the Airport Extreme that we had previously (password, etc) but it couldn't connect (said error occurred).  I would assume this is because of the flashing amber light?

    I am having a similar issue.  However I've had my airport express for over 3 years.  Yesterday we had to reset the router as it wasn't broadcasting.
    Today having same issue so we reset the router again.  And now still blinking amber.  When I go to the Airport Utility I can't even go to the Manual Setup as I'm getting the Error 4.  Internet works fine as the router and modem are hooked up to my computer via Ethernet cable.
    I did a factory reset and the AE is broadcasting again.  but I can't get in to protect the network.  And it's still blinking amber.
    Any thoughts would be great.

  • Hi, I' ll be San Antonio from 8-10th of Oct and want to buy an iphone 5. According to forums there is no unlucked yet. Thus, can i get simlocked but not contracted phone from any store? and is that possible to use that phone in Turkey without any prob.

    Hi, I' ll be San Antonio from 8-10th of Oct and want to buy an iphone 5. According to forums there is no unlucked yet. Thus, can i get simlocked but not contracted phone from any store? and is that possible to use that phone in Turkey without any prob.

    If you purchase the phone at the full contract price and have no term left on your carrier contract, the carrier will unlock it for you. That's what I am doing with AT&T. I'll pay the full purchase price for the phone and since I don't have a contract with them, they will unlock it for you. It can be difficult to get it done since most of their customer service is very ill informed but I have had many discussions with them on their chat that I have records of them stating they will unlock any phone if you do not have an existing contract. It's the law.

  • TS1398 i have an ipod touch and for some reason cannot connect to itunes store. I have full wifi and can get on my safari and was able to update my apps before. I can still get apps but when i try to update it says cannot connect to itunes store. Some1 he

    i have an ipod touch and for some reason cannot connect to itunes store. I have full wifi and can get on my safari and was able to update my apps before. I can still get apps but when i try to update it says cannot connect to itunes store. Some1 help!

    See these previous dicussions:
    App Store Updates (but only Updates)...: Apple Support Communities
    Apps suddenly don't update: Apple Support Communities

  • Can't get pictures on iPod...

    So I've never had problems getting pictures on my iPod when I had the older version of iTunes. The problem is, my sister got an iPod and it required the new version of iTunes, so we upgraded...
    Now, I can't seem to get the photos I want on my iPod!
    In the photos tab of my iPod, it gives me these options:
    Sync photos from: 'My Pictures'
    All photos
    Selected folders
    It then lists all my folders..
    The problem is, I just want to add certain folders, but it will only let me click 'Sync Photos from;' and I can't figure out why! My iPod is set to let me manage things manually..
    Whats going on!?
    ~Kourtney~

    My problem is, that the only box I can click is the 'Sync Photos From:" and it won't let me choose a "iPod photos' folder. Its automatically set to 'My Pictures' and won't let me change it.
    I don't know if I have to let it sync all the pictures first!
    I miss my old version of iTunes where I could just pick the folders of my pictures I wanted on my iPod =(
    ~Kourtney~

  • How can I get pictures and music from an ipod touch to an iphone

    how can I get music and pictures from an ipod touch to a iphone 4s, tried alot of things but not having any luck

    Use this to get the items in your iTunes library and then sync to the other device
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Ipod photo-can't get  pictures from ipod to pc

    I have pictures in my ipod that I transferred with the USB digital camera connection, but I can't get them onto i-tunes/my computer.
    I can see them on the ipod, but when I connect to itunes and computer i can't see or access the pictures on either (PC or IPOD).
    I tried arranging the settings so it would automatically sync pictures into folders, but it doesn't´t do it.
    I don´t know if it has anything to do with the fact that i used to have a regular ipod, and connected the ipod photo to my existing itunes...
    Either way PLEASE PLEASE HELP IF YOU HAVE ANY SOLUTIONS.
    THANK YOU!!!
    A

    I'm not really familiar with iTunes for Windows, but on the Mac, iTunes does not fetch photos off the iPod that were imported using the Camera Connector.
    Instead, you'll have to enable Disk Mode for the iPod. There's a folder named DCIM on the iPod's hard drive that contains the pictures. You can either copy this folder manually, or use a program that recognizes the DCIM folder and treats the iPod like a digital camera to import the photos.

  • Can't get pictures from my N85 to PC

    I have been using USB cable to download the pictures but it doesn't work anymore. When I connect the devices, the download starts but freezes and nothing happens. Can anyone tell me what to do?

    Do you have Ovi Suite or PC Suite installed on your computer ?
    Do you get an error message or is it simply not recognising that you connected a phone ?

  • How can I get pictures from my PC to my iPad

    How can I get my picture files from my PC to my iPad?

    There are third-party iPad apps such as Simple Transfer which can be used to copy photos off your iPad via your wifi network. But as photos are 'optimised' when they are synced to the iPad, any that you then copy back to a computer may not be exactly the same as they originally were on your computer. Do you not have a backup copy (or copies) on external drives ?

  • Can you get pictures back that you deleted off of your iPhone

    I would like to know if you can get pictures back if you deleted off of your phone

    Sure ... if they are backed up somewhere.
    If they were on your Camera Roll, they would be preserved in your latest iTunes (or iCloud) bsckup of your iPhone.
    If they were on your computer, they would still be there.

  • Why are my photos and videos syncing sideways in my computer? When I email or sync photos they are sideways.  I've called apple and they are no help.  I can fix the pictures, but the videos are a different story.  Please help.  I have an HP comp Win 7

    My pictures and videos are shown correctly in my phone and when I play videos in itunes they are upright, but the location they are saved on my computer they are side ways.  There has got to be a setting somewhere to fix this.  Please help.

    Generally I would not use Facebook for sharing any photos, it compresses the photos substantially, and when you have shadows and dark colours you get visible "bands" where there should be subtle gradients, ie at sunsets and sunrises.
    It sounds like you are using two methods to upload to Facebook:
    1. Sharing from within Aperture, which basically syncs Facebook with your Aperture album, so any changes made at either end gets synced, hence the deletions from Albums, although the original file should still be in your library, just removed rom the album. It is like a playlist in iTunes.
    2. Exporting pics and uploading to Facebook from the browser.
    I am not sure how method 1 gets compressed, but I know that uploading hi-res jpegs to Facebook using method 2 results in poor quality images.
    I wouldn't even bother comparing option 1 or 2, and they will both be poor images once you view them on Facebook, as opposed to viewing uploaded images on proper image sharing / hosting sites.
    Your problem is not with Aperture, it is using Facebook for showing your work.
    If you export pics form Aperture at high res jpegs or TIFFs your images will be fine.
    If you insist to use Facebook as your way to share your work, then your workflow should be this:
    1. Right click images you want to share.
    2. Select Export version.
    3. Export as 100% size and ensure the export settings are set at 100% quality.
    4. Upload this pic into Facebook.
    This will get you the best image size and resolution on Facebook.
    See how you go.

  • Mi camara no funciona para tomar fotos (i can't take pictures but video is right!!!)

    hola:
    tengo un BB Curve 9300 la camara no funciona para tomar fotos, ya que manda un mensaje de: no se ha podido iniciar la camara, cierre las otras aplicaciones antes de reiniciar la camara
    pero para tomar video si me funciona; alguien me puede decir que debo hacer para arreglar esta situacion
    Hi!
    i have a BB Curve 9300, the camera isn't work for take pictures but for take video is working
    the BB send a message: Failed to start the camera, close other applications before restarting the camera
    somebody tell me how can repair this problem?
    thanks

    Did you set up Log and Transfer to capture the AVCHD footage that camera shoots, or is it set to expect something else?

Maybe you are looking for

  • Calendar Closes when March 2013 month view selected

    I would be grateful for help solving my problem with Calendar.  It appears to be working properly, but if I select 2013 and then try to open March in monthly view, the application closes. No matter what I try I cannot get it to open the month.  Any s

  • [nQSError: 22036] Level in TODATE function (Quarter) must be a rollup...

    Hi, i've following problem. I hope you can help. It's quite urgent. I have following TimeDim hierarchy, in my rpd: Logical Level: Total Time - Properties: Grand Total Level Child Logical Level: Year - Properties: Supports rollup to higher level of ag

  • Home Hub 5 orange light

    Set up my new HH5 on Monday & have had two occasions so far when the internet connection has dropped out & the central powerlight has changed from blue to orange - once static, 2nd time a flashing orange light. Each time the hub apparently reset itse

  • QT Pro wouldn't play the speech file in 10.4.7 that used to play in 10.3.9

    http://www.biblegateway.com/passage/?search=Acts%201&version=31 Greetings to all! The URL above is the link to the speech file that I used to be able to download and play when I was on OS X 10.3.9 using QT Pro 7.1.2. Since I upgraded to OS X 10.4.7,

  • HT4623 how do i get the music to my phone

    please can u tell me how to download music from the computer to my phone thankyou xx