Tricky File Problem!!

I have written an Internet application that uploads
desired image-files to the server. After the image
has been uploaded I try to read it and scale it using:
Image inImage = new ImageIcon(imageFilename).getImage();The problem is that the image won't be read!!! I think
this has to do with permissions on the server, am I right???
Because when the file is upload the permissions har set to:
-rw-r--r--    1 nobody    nogroup   1460217 aug 9 23:19 theImage.jpgI should add that the server is a Linux-server and the directory is
something like:
/home/a/acompany/upload/The directory has these permissions:
drwxrwxrwx    2 oknjudun users         248 aug  9 23:36 upload/Why doesn't it work to read the image????
Please help, Ernstad

have you tried doing this:
chmod a+rwx <insert file name>
on the file to see if that makes a difference (i.e. works).. thus confirming your theory?
Tim

Similar Messages

  • DW CS5 Missing Related Files Problem

    Hello
    Hoping somebody may be able to help me with a missing related files problem in CS5. I've tried Adobe phone support but they couldn't solve the problem.
    *Some* of my sites (but not all) are not showing all the files related to that page. My pages are typically in .asp vb server model and contain .asp virtual includes (header, nav etc) plus .js and .css linked files
    However DW is only showing the .asp includes as related files and not css or js ones. In design view the CSS is displaying correctly, and all styles appear in the CSS inspector but not showing as a related file in the bar. In CS4 it works fine.
    I've tried deleting the site and recreating it, copying the files to a new folder and setting up a fresh site, creating a new folder and downloading all files from the remote server but no joy. I've also tried refreshing related files. if I click on the filter in the bar it only shows the asp includes and nothing else.
    Any help would be gratefully appreciated, this is a great feature when it works
    Cheers
    MB

    UPDATE:
    Managed to solve this problem, this is a new issue to DW CS5, previous versions do not seem to exhibit this problem
    It occurs when you use site root rather than document relative paths for js/css etc files AND don't have the remote site url (web url) specified in the site setup | local info dialog, or do not have it fully qualified with http://
    ie. ../js/file.js works fine without a remote web url but /js/file.js does not show the related file in the bar unless a remote url is defined.
    Hope that helps anyone else that encounters the same issue!
    MB

  • With conversion to Leopard, file problems with networked Windows computer

    Last night I did an Archive & Install from Tiger to Leopard on my Intel MacBook Pro. Today, I had trouble finding the other computers at my office. Once I finally got them to show up, I opened a Word file found on another computer, made some changes, and when I tried to save it, I got this message: "This is not a valid file name. Try one or more of the following: *Check the path to make sure it was typed correctly. *Select a file from the list of files and folders." Since this file already existed and I wasn't changing the name, I thought this was odd, but I changed the name from "Seating Chart 3-8-08" to "SeatingChart3-8-08" in case Leopard didn't like spaces when talking to Windows, but I got the same error message. Finally I gave up, not knowing what to do, then discovered that it had in fact saved my file. Still, every time I try to save ANY Word document from the shared folder of the Windows computer, I get the same error message endlessly until I choose "Don't Save."
    When I try to open an Excel file from that computer, it won't even open; it says " 'File Name.xls' cannot be accessed. This file may be Read-Only, or you may be trying to access a Read-Only location. Or, the server the document is stored on may not be responding." As with the Word file problem above, I did not have any problem accessing the files until I converted to Leopard.
    The Windows machine is Windows XP using Microsoft Office 2003; I have Microsoft Office 2004 on my machine.

    See if this Link, by Pondini, offers any insight to your issue...
    Transfer from Old  to New
    http://pondini.org/OSX/Setup.html
    Also, See here if you haven't already...
    http://www.apple.com/support/switch101/     Switching from PC

  • I have problem in quicklook for mp4 files in my mountain lion os 10.8.2 so please help me what i need to do? but i can view mov,3gp,jpeg files problem is only with mp4 files.... any one help me...

    I have problem in quicklook for mp4 files in my mountain lion os 10.8.2 so please help me what i need to do? but i can view mov,3gp,jpeg files problem is only with mp4 files.... any one help me...

    I have problem in quicklook for mp4 files in my mountain lion os 10.8.2 so please help me what i need to do? but i can view mov,3gp,jpeg files problem is only with mp4 files.... any one help me...

  • Anyone know if the long standing duplicate files problem with File History has been fixed yet?

    There are loads of public threads about the duplicate files problem
    with Windows 8/8.1 File History backup system.
    From all the threads I've looked at, there seems to be no solution,
    and no acknowledgement from MS that they can even repro the problem
    (which surprises me considerably as there are so many people who
    notice the problem).
    Is anyone aware of whether MS (may) have fixed this for Win10?
    Are MS aware of the problem and if they're able to fix it?
    Dave - with many GB of duplicated files in File History :)

    Hmm, is that the attitude MS would recommend? :)
    Why would I care what Microsoft would recommend?
    Clearly you don't, and you appear to have missed my smiley. Calm down
    Noel, many of us are as annoyed by aspects of modern Windows as you
    are. :)
    I'm all about making Windows actually WORK/./
    Aren't we all? Windows is software I use too many hours every day, I
    along with many millions of others need it to work really well. You
    are not alone.
    When they implement something that doesn't work, and even if it did work doesn't do what's needed - and/beyond that/ they remove features people DO need (such as the GUI for Windows Backup), I see no wrong in advising people of the way things
    really are.
    File History essentially does work - it's saved me a couple of times
    in the past couple of weeks. It just has a highly annoying habit of
    creating 100% duplicates of some files for no apparent reason. If MS
    have fixed that I won't have any known complaints about it.
    If you don't like it, you don't have to use it. I generally like it, I
    just want to see that its fixed.
    Dave

  • Idoc to file problem.......... IDOC lost

    i have a idoc to file problem,
    the idoc is sent from R/3 to XI,
    the problem is IDOC is sent from R/3,
    it didnt reach to XI.....
    i have checked.......we05 in R/3, it gives a status 3,
    then i checked SM58 in R/3, it shows nothing,
    when i check in idx5 in XI, theres no trace of that idoc....and no trace of the scenario run in SXMB_MONI
    pls help, where can i trace the idoc.....
    pls help

    Hi sudeer,
    Did You Check It In WE19.(Test Tool For Idoc Processing)
    If Not Do The Following Steps:
    <u><b>Step1:</b></u>
      >>      Give Your Existing Idoc Number.
    <u><b>Step 2:</b></u>
      >>      Basic Type is Your Message type.
            Ex: MATMAS05 or CREMAS05.
    <u><b>Step 3:</b></u>
      >>      In Your Existing MATMAS05 or CREMAS05 Structure say EDIDC,
      >>      You Should Fill  Your Mapped Entries In Data Structure of EDIDC.
      >>      So that Those Fields Gets Framed as Segments.
    <u><b>Step 4:</b></u>
      >>      After Doing It goto  Menu Bar and Click Idoc And Goto  Edit Control Record.
    <u><b>Step 5:</b></u>
      >>      Now You Give Your Sender And Receiver Port Number Along With Your 
            Logical System And Message Type again its Your MATMAS05  or
           CREMAS05 .
    <u><b>Step 6:</b></u>
      >>      After Doing It Click Standard Outbound Processing.
    <u><b>Step 7:</b></u>
      >>      It Will Say what Happened To your Idoc.
    <u><b>Step 8:</b></u>
      >>     It Is For Sure That if This Processing Fails It Wont Go To XI..
    Regards,
    Dhayanandh .S
    Dont forget To Provide Points If Found Helpful...
    Message was edited by:
            DHAYANANDH SIVASANKARAN

  • TS5179 I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update (PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it. #out of space...??)

    I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update, 11.4.62 (on a PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it (Ugh).  First result Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there.  Second result, upon installing iCloud again, I have two iCloud contact files shown in outlook - "iCloud" & iCloud, within iCloud".  1,332 & 1,385 contacts respectively. 
    Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  This is NOT fun at 72-yrs old...!!
    So, how do I make sure I haven't lost anythying from Outlook?   Russ-AZ

    Interesting response, Kappy  -  Back to original post: "First result: Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there (therefore, initially I had lost my contact file from Outlook).  Second result, upon installing iCloud again, I now have two iCloud contact files shown in Outlook - "iCloud" & iCloud, within iCloud".  W/ 1,332 & 1,385 contacts respectively.  
    Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  This is NOT fun at 72-yrs old...!!
    So, how do I make sure I haven't lost anythying from Outlook?   Russ-AZ"
    You can safely assume that I have tried using it!   So, to make things a little clearer:
         1)  I now have two iCloud "contacts files", w/ a different total count. What's the difference?  Why the different toatl count?
         2)  Since re-installing the Apple software (part of the MSVCR" recovery instructions) "couldn't possible affected Outlook", why am I getting an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  What's in those files? And where are they?
    Probably more important questions get down to:
         3)  Why is a basic Apple product upgrade "screwing-up Outlook"?  This iTunes upgrade, failing to install properly forced Outlook 2007 into a 2-min start-up cycle.  Which was fixed with this "Goat-Rpdeo" of re-installing MSVCR80.dll.
         4)  And under the latest release of iOS-7.0.4 on our iPhones, why is Apple now forcing us to use the iCloud to back-up our contacts, calendars & tasks, vs. allowing these files to be backed-up directly on our PC's via the USB cable?
    Thanks again for your interest and comments.  - Russ-AZ

  • RMI class file problem

    I have already write a RMI example for self-study successfully, but there are a little class file problem that I'm not able fix it.
    In my RMI example there are 3 .java files (RMIServer.java, RMIClient.java and a MethodImpl.java)
    After I have javac and rmic them, I got RMIServer_Skel.class, RMIServer_Stub.class, RMIClient.class and the MethodImpl.class
    In order to run the RMI in a local envirnment, I divide them into 2 folders as listed below:
    Server - RMIServer_Skel.class, RMIServer_Stub.class and the MethodImpl.class
    Client - RMIServer_Stub.class, RMIClient.class and the MethodImpl.class
    Then when I start to run them in a DOC envirnment...
    start rmiregistry........(run successful and another rmiregistry DOC window created)
    java RMIServer.........Exception in thread "main" java.lang.NoClassDefFoundError: RMIServer
    Oops? Class not found? How can that be? And after that, I tried something.......to add the RMIServer.class into the Server folder.
    Again, I start to run them in a DOC envirnment...
    start rmiregistry........(run successful and another rmiregistry DOC window created)
    java RMIServer.........The server is instantiated(run successful and print out a String)
    Um...is the RMI have to run with a RMIServer.class file? But the RMI notes I refered from is not seems to be telling me to do this, are there any one can give me a helping hand?

    please, go here, read thoroughly
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

  • Locked file problem with WebDAV

    I am using DreamWeaver CS3 on my Macintosh at home and on a
    PC at work. I am connecting to my website via WebDAV, and for some
    reason Dreamweaver cannot edit the files on the site. When I try to
    check out any file I get an error stating: "file.html is locked and
    can be viewed but not edited" I then have the option to check it
    out or view or cancel. Regardless of what I do, if I continue and
    open the file and make changes the file will not get updated on the
    remote server even though Dreamweaver reports a successful "put" or
    "check in" command in the log file. This happens on both the
    Macintosh and the Windows PC. Both are also updated to the latest
    versions of Dreamweaver.
    The strange thing is, if I mount the WebDAV server as a
    filesystem on my macintosh and authenticate with the same
    login/password that entered in Dreamweaver's WebDAV settings, I can
    edit the html files using a text editor and they save perfectly
    fine. Additionally, while the web server is mounted on the desktop,
    if I change Dreamweaver's site settings to "local/network" and
    enter the locally mounted WebDAV share path instead of using
    Dreamweaver's built-in WebDAV client, then everything works
    properly in Dreamweaver. Reverting back to using WebDAV in
    dreamweaver (as opposed to through the OS) brings about the same
    "locked file" problem as before.
    There appears to be a problem with Dreamweaver's WebDAV
    access to the site, and I'm wondering if there's an easy fix or if
    this has been experienced by others?
    Thanks,
    -Topher

    Have a look at FileUtils::DecomposeUnicode and NormalizeUnComposedUnicodeChars. Use the first to convert before using i.e. FileUtils::PMStringToSysFile() and the later afetr i.e. FileUtils::IDFileToPMString().
    HTH

  • Bat file problems with 5.2(3)

    I'm having bat file problems with CCM 4.2(3) with bat version 5.2(3). When adding phone/users getting an error number -2146828279 with this message "Description -Subscript Out of range".

    Hi Denis,
    Just wanted to know if the description contained a comma? There was a bug in a previous BAT version that would affect phone/user inserts if there was a comma.
    CSCsb61425 Bug Details
    Headline BAT insert fails if phone description contains comma
    This was in BAT 5.1.4
    Hope this helps!
    Rob

  • Tricky syncing problem

    I have a tricky little problem I hope someone can help me resolve. I have an iPhone and a registered Apple account. My son have also an iPhone and have used my account to purchase apps and music, which is perfectly in order since he have my permission and was a little too young to have an own credit card. He have never synced his iPhone with iTunes, only downloaded the apps and songs from App store directly on the phone. But now he is going to get his own credit card to use with his own Apple account, and of course he wants to keep, his music, photos, videos and the apps he have downloaded and purchased (and I have paid for =)
    I'm not really sure how to make this happen so any help is appreciated.
    He have inherited my old iMac that I have recently made a clean install of Mavericks on, and I have a new Macbook that I haven't yet synced my iPhone with, but I copied my old iTunes folder to an external USB drive and is planning to replace the empty iTunes folder on my new Macbook. The apps and music my son have purchased with my account is installed on his iPhone only.
    Don't know if this is even resolvable, but thought I give it a go here to see what you clever people can come up with.

    Unfortunately, apps are not transferrable between iTunes accounts, which means he won't be able to keep those apps.  It doesn't matter if he uses an old computer of yours, once he logs into the iTunes store with his ID and syncs his iPhone the apps may be removed (and if not, he'll have to enter your password each time there's an update to those apps, which may not be what you'd want).
    Music can be shared between accounts.  If you are passing on your iMac, but have erased the iTunes library in the process of installing Mavericks, he can still re-download the songs from iTunes as long as he's logged into your account in iTunes (click the "Purchased" link in the store).  Once he re-downloads the songs he wants, he can log out of the iTunes account and log in with his, and the music will remain playable and can sync to his iPhone.  Future purchases would go against his account.  While logged into your account, resist the temptation to re-download apps since once he logs out of your account and into his, those apps will prompt him for your password on each update.
    Alternative to re-downloading songs to the computer, if he first signs into iTunes with your account and connects his iPhone, he should be prompted to transfer all purchased content, including apps.  Once the transfer to the iMac is complete, then sign out of iTunes and sign back in with his new ID.  But again, delete the apps purchased on your account to avoid problems.
    One warning though, once he syncs the iPhone with the iMac it may prompt him to erase it.  But if it has never been synced with any computer, maybe not.  If it is, at least he'll have the music in the iMac's library to re-add to the iPhone.  But to save photos and settings, etc. it may be best to backup the iPhone to iCloud first.

  • Tricky upload file problem

    Hi,
    I have created a page to allow people to upload a file, OR
    just insert the url of the file. I am getting errors when I choose
    the option not upload the file.
    The first page has two input fields, one is text and the
    other is file - they both go to the same page. And I use
    enctype="multipart/form-data" in the form header.
    The second page checks to see if the form variable containing
    the file name exists - if it does, it loads the file. If not, then
    it just uses the url supplied in the text field.
    I can upload a file ok, but when I don't want to upload a
    file, and just enter the url, it comes back with an error. Is what
    I am trying to do possible, or do I need two different forms with
    two different destination pages??

    quote:
    Originally posted by:
    cakesy
    Hi,
    I have created a page to allow people to upload a file, OR
    just insert the url of the file. I am getting errors when I choose
    the option not upload the file.
    The first page has two input fields, one is text and the
    other is file - they both go to the same page. And I use
    enctype="multipart/form-data" in the form header.
    The second page checks to see if the form variable containing
    the file name exists - if it does, it loads the file. If not, then
    it just uses the url supplied in the text field.
    I can upload a file ok, but when I don't want to upload a
    file, and just enter the url, it comes back with an error. Is what
    I am trying to do possible, or do I need two different forms with
    two different destination pages??
    Assuming you are doing as you have actually indicated, you
    pretty much figured out the problem already, but I'm not certain
    you realize it.
    With the exception of checkboxes (
    and some weird radio button configs) all form fields
    exist whether they are blank or not.
    What you should be doing on your action page is checking to
    see
    if the fields are blank,
    not whether they exist. Make sure you use the TRIM function
    when you do this as well so it's not possible for people to submit
    the field with just a space in it.
    <CFIF TRIM(fileformfield) NEQ "">
    do action for file upload
    </CFIF>
    <CFIF TRIM(urlformfield) NEQ "">
    do action for url addition
    </CFIF>
    You could use a CFELSE in there, but I prefer to test for
    either possibility since (
    theoretically) the form fields could be submitted with
    blanks in each of them. Also, (theoretically) they could submit the
    form with both fields completed, so then you may also want to
    incorporate some cross-testing so that if both are filled out, you
    either choose one as the default, or you send an error back to the
    user to choose one or the other.

  • Forwarding WMV files problems since 10.4.11

    I am now running 10.4.11 since the last update which took place 11/15. Here is my problem.....
    "Prior to the last update from Apple which included Safari 3.0 everything in my mail worked fine. Here is the problem. If someone sends me a WMV clip, i would download it to the desktop so that I could forward it to someone else and it plays fine on the desktop after double clicking the WMV icon. Prior to the update I could forward the WMV simply by dragging it into the new mail and it would open the player and download the file in a standard size player. Now when I do this the player is about the size of a postage stamp. I have looked everywhere to see if there is a way to bring it back to a viewable size. It is really frustrating. Any idea how I can get this to back to a viewable size when I drag it into the new mail?" I was on the phone with Apple for 3 hours to no avail.
    Many thks
    Bill

    Sounds a bit tricky...first thing is, wmv files will only play via Flip4Mac. If you were able to see wmvideo before, then you have had F4M installed before. Possibly the update did something to affect the prefs?
    One option is to approach a solution beginning with a reinstall of Flip4Mac. There should be an Uninstaller within the F4M folder. Run that, then make sure you've got the latest version, and reinstall.
    Another consideration is to assume F4M is working fine and only the preference of Quicktime has changed to affect your player size. Since F4M plays WMV's thru Quicktime, then you should see if you can alter the window size within QT on any wmv's you might have available. It is possible to change the view size by the pull down menu, or using command key with numbers 1,2,3, etc.
    Let us know if anything changes, and any other details.

  • Tcode FILE problem

    I am trying to use the Direct Input method in the LSMW (It is my first time using the Direct Input method) but I encounter a problem during the Specify File step saying that No Logical Path was specified. I look into the forums and they told me that I needed to define one with the FILE Tcode but when go to the FILE Tcode a message pops up saying Changes to Repository or cross-client Customization are not permitted.
    What would cause this? How should I deal with it?

    Hi Obie,
    I guess you are testing in Testing client .
    Do it in development client.
    Mohinder

  • Macbook Air 11" i7 corrupt files problem with Adobe Illustrator CS4

    Hi
    this problem may not be entirely related but maybe someone could help anyways or knows how I can proceed...
    I'm running Illustrator CS4 on a Macbook Air 11" (latest 2011 model, with i7, 4GB, 128SSD), and lately some files are getting corrupted. specifically, adobe illusrator CS4 files with weeks of work. interestingly, the time machine backups are also getting corrupted.
    its like I'm working on a file for a few days, backing up with time machine as well
    closes the file, after a few days returns to it… (normal behavior)
    then when i try to get back to the file then sometimes it says "Cant open the illustration, could not complete the operation" and opens a blank canvas.
    restoring the file via time machine also gives the same error (its like all versions get corrupted simultaneously), even 4-5 versions backwards, even though they worked before when the file worked
    it happened quite a few times, ruining weeks of work.
    I tried the following:
    reinstalling CS4 - didn't work
    Opening the files on CS5 - still don't open
    doing the file recovery thing and then opening it in a notepad - didn't work at all
    using Time machine - the files are still corrupt
    it only happenes with AI files, not photoshop files, for example.
    I thought maybe it has anything to do with SSD? since my previous macbook pro (15", 2007) never did these errors…
    please help
    Eido

    If at all, this would be I/O performance and bandwidth issues with Time Machine, but I don't think that's the problem. More to the point I think that it's a case of Preview opening the files to genereate thumbnails and icons and something going wrong there. I'd look up some guides on how to edit the relevant plist and conf files to exclude your AIs or turn off the behavior to generate these previews globally. This may help hugely...
    Mylenium

Maybe you are looking for