Problems with moving files to ora directory UTL_FILE.PUT_RAW - ORA-29285

hi,
i'm using apex 4.1
i have a procedure which moves my file from apex_application_files to ORA directory.
if i choose a text file or small word document which is 1kb, it works. but if i have pdf file (85kb) or word document (16kb) it gives me ORA-29285: file write error
what's my problem?
PROCEDURE put_file_to_server (p_filename IN VARCHAR2,p_cert_type IN VARCHAR2,p_cert_pk IN NUMBER)
AS
l_file UTL_FILE.file_type;
l_blob_len INTEGER;
l_pos INTEGER := 1;
l_amount BINARY_INTEGER := 32767;
l_buffer RAW (32767);
v_new_filename VARCHAR2(100);
v_bfile BFILE ;
BEGIN
-- delete from apex_application_files;
--Neuen Dateinamen generieren
v_new_filename := p_cert_type||'_'||p_cert_pk;
v_bfile := BFILENAME (v_directory, v_new_filename);
--Datei erstellen
l_file := UTL_FILE.fopen(v_directory,v_new_filename,'w');
IF DBMS_LOB.FILEEXISTS (v_bfile) = 1 THEN
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'File exists');
FOR rec IN (select blob_content lblob from apex_application_files where rownum = 1)
LOOP
l_blob_len := DBMS_LOB.getlength(rec.lblob);
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Filesize is '||l_blob_len);
WHILE l_pos < l_blob_len LOOP
DBMS_LOB.read (rec.lblob, l_amount, l_pos, l_buffer);
UTL_FILE.put_raw (l_file, l_buffer, FALSE);
l_pos := l_pos + l_amount;
END LOOP;
COMMIT;
END LOOP;
--Datei schließen
UTL_FILE.fclose(l_file);
else
cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Datei doesn't exist');
end if;
EXCEPTION
WHEN OTHERS
THEN
-- Close the file if something goes wrong.
IF UTL_FILE.is_open (l_file) THEN
UTL_FILE.fclose (l_file);
END IF;
delete from apex_application_files;
RAISE;
delete from apex_application_files;
END put_file_to_server;

Sorry but din't test this...Can you give it a try and see if this works?
PROCEDURE put_file_to_server(
    p_filename  IN VARCHAR2,
    p_cert_type IN VARCHAR2,
    p_cert_pk   IN NUMBER)
AS
  l_file UTL_FILE.file_type;
  l_blob_len INTEGER;
  l_pos      INTEGER      := 1;
  l_amount BINARY_INTEGER := 32767;
  l_buffer RAW (32767);
  v_new_filename VARCHAR2(100);
  v_bfile BFILE ;
  vblob BLOB;
  vstart NUMBER := 1;
  my_vr RAW(32000);
  bytelen NUMBER := 32000;
  LEN     NUMBER;
BEGIN
  -- delete from apex_application_files;
  --Neuen Dateinamen generieren
  v_new_filename := p_cert_type||'_'||p_cert_pk;
  v_bfile        := BFILENAME (v_directory, v_new_filename);
  --Datei erstellen
  --l_file                          := UTL_FILE.fopen(v_directory,v_new_filename,'w');
  l_file                          := UTL_FILE.fopen(v_directory,v_new_filename, 'WB', 32760);
  IF DBMS_LOB.FILEEXISTS (v_bfile) = 1 THEN
    cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'File exists');
    FOR rec IN
    (SELECT blob_content lblob,
      LENGTH(blob_content) LEN
    FROM apex_application_files
    WHERE rownum = 1
    LOOP
      cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Filesize is '|| LEN);
      IF LEN < 32760 THEN
        utl_file.put_raw(l_file,lblob);
        utl_file.fflush(l_file);
      ELSE -- write in pieces
        vstart      := 1;
        WHILE vstart < LEN
        LOOP
          dbms_lob.read(vblob,bytelen,vstart,my_vr);
          utl_file.put_raw(l_file,my_vr);
          utl_file.fflush(l_file);
          -- set the start position for the next cut
          vstart := vstart + bytelen;
          -- set the end position if less than 32000 bytes
          x         := x - bytelen;
          IF x       < 32000 THEN
            bytelen := x;
          END IF;
        END LOOP;
      END IF;
     END LOOP;
    ELSE
      cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Datei doesnt exist');
    END IF;
    utl_file.fclose(l_file);
  EXCEPTION
  WHEN OTHERS THEN
    -- Close the file if something goes wrong.
    IF UTL_FILE.is_open (l_file) THEN
      UTL_FILE.fclose (l_file);
    END IF;
    DELETE FROM apex_application_files;
    RAISE;
    DELETE FROM apex_application_files;
  END put_file_to_server;Edited by: Vitor Rodrigues on 17/Fev/2012 12:03

Similar Messages

  • Help.....problem with obtaining files from a directory

    Anaybody knows how to obtain list of files from a directory from j2me
    as in j2se ?

    I don't think it's possible because a MIDlet lives isolated from the rest of the device's filesystem. It can only store persistent data on the Record Media Store, which is unique for each MIDlet.

  • Problems with moving directories

    Hi, i have a problem with moving one subdirectory from one directory to another. Here is the code
         public static boolean moveToDir(String filename, String dirname)
         if( XFileUtils.fileExists(filename) )
         return onMoveSingleFileToDir(filename,dirname);
         File dir = new File(".");
         FileFilter fileFilter = new WildcardFilter(filename);
         File[] files = dir.listFiles(fileFilter);
         boolean _flag = true;
         for (int i = 0; i < files.length; _i++)
         String _cfilename = files[_i].getName();
         if( !XFileUtils.fileExists(_cfilename) )
         throw new RuntimeException("file or dir does not exists"+_cfilename);
    flag = flag && onMoveSingleFileToDir(_cfilename, dirname);
         return _flag;
    Can anyone help me?
    Thank you very much!
    Elias

    Also, a sample DAD would look like:
    <Location /database1>
    SetHandler pls_handler
    Order allow,deny
    Allow from All
    AllowOverride None
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDatabasePassword This_Password
    PlsqlDatabaseConnectString database1 TNSFormat
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlDefaultPage f?p=130
    </Location>
    <Location /database2>
    SetHandler pls_handler
    Order allow,deny
    Allow from All
    AllowOverride None
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDatabasePassword This_Password
    PlsqlDatabaseConnectString database2 TNSFormat
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDocumentPath docs
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlDefaultPage f?p=131
    </Location>
    The tnsnames.ora file would then look similar to:
    DATABASE1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = the_database_server)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DATABASE1)
    DATABASE2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = the_database_server)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DATABASE2)
    Again, these are edited copies of what I use, but something similar should work for you.
    Bill Ferguson

  • Error: There is a problem with the file and it cannot be copied

    I've been trying to copy (and essentially move) the contents of an NTFS-formatted external HDD to my iMac's internal HDD so I can then format the external HDD to Mac OS Extended. However, when I simply try to drag and drop, I get an error during the transfer that states:
    There is a problem with the file and it cannot be copied.
    I tried a basic cp command in Terminal to copy all contents of the external HDD to a folder on my iMac's desktop, and found that while there were no errors, there were many individual files missing full chunks of data (ie. original file would be 4GB on my external HDD, but only 350MB on my desktop).
    Any ideas on how I can successfully copy a large amount of data (approx. 170GB) from my external HDD to my internal HDD while avoiding this error, so I can ultimately format my external HDD to Mac OS Extended? ANY help is greatly appreciated.

    That's not a good error to see. It indicates something is very wrong. Pulled out of an old programming header file:
    ioErr = -36, /*I/O error (bummers)*/
    If Apple labelled it "bummers," they had a good reason! Unfortunately, that doesn't bode well for you.
    Try running Disk Utility again. Keep repairing over and over until one of two things happens: 1) Disk Utility says no repair was needed, or 2) Disk Utility reports the same error in two sequential repair sessions and is unable to repair it both times.
    If you hit the second case, or if you hit the first but still can't copy files, then you've got two basic options:
    = Buy a third-party disk utility or two and try them. Try TechTool as a first choice.
    = Recover what files you can and write the rest off as gone.
    = Send your drive to a data recovery service and hope they can extract more than you can.
    Of course, none of this is necessary if you have a backup of the contents of that hard drive. (If you don't, this is your learning experience. Once bitten, twice shy, so they say.) Also, regardless of the outcome, once you've got your data or have decided it's gone, you're going to want to wipe that drive completely clean. Reformat the drive with Disk Utility, then when it's done, select the drive in Disk Utility and hit command-i. (Don't select the new volume you just created on that drive, select the drive itself. Mine looks like "232.9 GB Hitachi ..." with the volume name indented underneath.) Look for an item that says S.M.A.R.T. Status, and if it doesn't say Verified, you might as well throw out the drive. Don't trust any more data to it.
    If all appears safe, you can start moving data back onto it. But, as always, make sure you have a backup of everything!

  • [SkyDrive] Files can't be uploaded because there's a problem with a file or folder.

    On Windows 8.1 RTM, the SkyDrive metro client shows a message that "Files can't be uploaded because there's a problem with a file or folder." and lists one particular file. When I installed the PC, I have switched then Access all files offline
    option to On.
    The file resides in a directory I have deleted from the disk. When attempting to get rid of this "problem" (as there are no hints nor UI available) I have manually checked that the directory does not exists on the disk any more, as well as deleting
    the directory from cloud storage using a web browser. However, the message is still there.
    Restarting the computer several times nor keeping it idle for a significant amount of time did not help.
    How to get rid of that "problem" / how to fix it?

    Hi
    Let’s try to redirect the skydrive folder and sync again to see what’s going on:
    1. Open regedit and find following key:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\SkyDrive
    2. Change “UserFolder” to another location.
    3. Open the SkyDrive Metro app to confirm your files and new directory.
    Then check the issue again. 
    Regards,
    Kate Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Problem with Offline Files with Cisco NSS322 (firmware 1.3)

    Hi
    We've recently bought a new NSS322 NAS box to replace an ageing Windows SBS 2003 file server. We've upgraded the firmware to 1.3, and begun moving files across from the Windows server to the new NAS box. However, we're having a problem with Offline Files on the NAS, as attempting to make directories available offline on Windows clients (only tried Vista Business 32-bit so far) we get loads of errors stating that these files cannot be made available offline "because they are in use" (or something like that).
    Any suggestions as to why this might be? It doesn't appear to affect all files, but most of them.
    I've read somewhere that the "allow oplocks" setting can affect this if disabled, but it is already enabled on the device, so this can't be the cause of the problem.
    Any help you could provide would be much appreciated, as at the moment this issue is rendering our NAS unusable as we rely heavily on the offline files functionality.
    Thanks in advance.
    I have some more information - this appears to be related to the ownership permissions of the files on the NAS. New files created on the NAS can be made available offline, and have the ownership of the person who created the file, however, the files we moved across from the server are all listed as being owned by the user "guest" (I think this may be related to the fact that when we moved the files over, the user was logged in as "admin" rather than a user on the AD Domain). I should be able to resolve this through changing the owner of the files on the NAS, but I can't seem to do this, as I get an "access denied" error each time I try to change ownership.
    Message was edited by: redcitrus
    Is there any chance someone's going to be able to help me with this? I've currently spent £500 on a box that I can't use. If it can't handle Offline Files satisfactorily, it's no use to us.
    I've been looking at this a bit more - if appears that each user can make files they have created available offline, but files created by other people cannot - the error message that appears is: "The process cannot access the file because it is being used by another process".
    I'm getting desperate here...can anyone help?
    Message was edited by: redcitrus

    Sorry, but I don1 speak very good english..
    I was Try this quick test: As a quick test, you can do a forward all and make sure you can get into the ftp server.
    but result it is to same.
    I think, that problem is in firmware, becasue I know more people who own this router with to same firmware version (2.0.1.3), and have they to same problem how I.
    I have DISABLED FIREWALL on my router and problem hold over.
    If I replace router Cisco Linksys WRVS4400N by Ovislink router or any other, issue (problem) already no is.
    Configuration in Cisco Linksys WRVS4400N and configurations in any other router is to same, but FTP connection via Cisco Lynksys always will crash.
    If I connect to any other FTP server, sometimes requieres from me ftp login and password. It is OK, but if I assign login and password, after connect me to this FTP server, i see folders and files on this server, but without reason connecting fall down.
    Few seconds later if I connect to the to same FTP server, sometime either not request login and password and connection fall down.

  • RH7 problem with FPJ files

    We are having a problem with missing files in R7. I've never seen all the files become .FPJ files. They were .htm files and now they are all .fpj - not sure what to do besides change the file extension and try to import all the files back into the project. Our group is quite perplexed.
    Result after trying to change file extension:
    No success in this.
    We still have an output, so we have the .htm files with the content, so we'll be recreating the project.

    Suzie
    I have created a new thread as your problem relates to RH7, not the RH8 problem that is running currently. Also I have moved it to the RH HTML forum as it is specific to that edition.
    I cannot say RH did not do that but I completely fail to see how. Unlike some specialised programs, RH has no function to change file extensions and if reverting it to HTM does not put things right, then I would say something else has clobbered your project.
    You say you are going to use the output files. That is not a simple task. The link below explains what you will need to do.
    http://www.robowizard.com/RoboWizard/NewProject.htm#MonthlyScry/062004.htm
    You will still lose various features introduced in later versions of RoboHelp. My Opening RH Projects may help you there, depending on whether other file extensions have been affected.
    Do you not have any backup procedures in place?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Problem with OutBound file binding

    Hi,
    I have a problem with sun-file-binding for write files in a directory.
    I have a service engine that send a message to the file-binding and the binding-component must write the file
    on a directory.
    But I have this error:
    FILEBC-E00791: Solicited Read Failed. service: {http://www.sun.com/jbi/examples/sample-service/echo}echoService2, endpoint: echoEP_JBIPort2, operation: {http://www.sun.com/jbi/examples/sample-service/echo}echo. Error was: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo]..
    Consumer:Processing Message Exchange with status Error
    The log message is null.
    java.lang.Exception: Consumer:INOUT Message Exchange status ERROR.
    java.lang.Exception: FILEBC-E00791: Solicited Read Failed. service: {http://www.sun.com/jbi/examples/sample-service/echo}echoService2, endpoint: echoEP_JBIPort2, operation: {http://www.sun.com/jbi/examples/sample-service/echo}echo. Error was: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo]..
    at com.sun.jbi.filebc.OutboundMessageProcessor.setError(OutboundMessageProcessor.java:820)
    at com.sun.jbi.filebc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:301)
    at com.sun.jbi.filebc.OutboundMessageProcessor.run(OutboundMessageProcessor.java:174)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.Exception: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo].
    at com.sun.jbi.filebc.OutboundMessageProcessor.validateOutboundMessageExchangeProperties(OutboundMessageProcessor.java:1499)
    at com.sun.jbi.filebc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:272)
    ... 2 more
    at it.ditech.jbi.component.utils.RingOneMessageHandler.processInOutMessageExchangeOnConsumer(RingOneMessageHandler.java:262)
    at it.ditech.jbi.component.utils.RingOneMessageHandler.doInOutMessageExchange(RingOneMessageHandler.java:130)
    at it.ditech.jbi.component.utils.RingOneMessageHandler.processInOutMessageExchangeOnProvider(RingOneMessageHandler.java:325)
    at it.ditech.jbi.component.utils.RingOneMessageHandler.receiveAndProcessMessageExchange(RingOneMessageHandler.java:355)
    at it.ditech.jbi.component.utils.RingOneMessageHandler$1.run(RingOneMessageHandler.java:191)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    this is my WSDL file:
    <?xml version='1.0' encoding="UTF-8" standalone="yes" ?>
    <definitions
    targetNamespace="http://www.sun.com/jbi/examples/sample-service/echo"
    name="echo"
    xmlns:tns="http://www.sun.com/jbi/examples/sample-service/echo"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:file="http://schemas.sun.com/jbi/wsdl-extensions/file/">
    <types>
    <xsd:schema targetNamespace="http://www.sun.com/jbi/examples/sample-service/echo">
    <xsd:element name="item">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element type="xsd:string" name="value"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    <message name="echo">
    <part name="part"
    element="tns:item">
    </part>
    </message>
    <portType name="echo">
    <operation name="echo">
    <input name="echo" message="tns:echo"/>
    </operation>
    </portType>
    <binding name="Binding" type="tns:echo">
    <file:binding/>
    <operation name="echo">
    <file:operation verb="write">
    <input name="echo" message="tns:echo">
    <file:message use="literal" fileName="output-%t.xml" fileNameIsPattern="true"/>
    </input>
    </file:operation>
    </operation>
    </binding>
    <service name="echoService2">
    <port name="echoEP_JBIPort2" binding="tns:Binding">
    <file:address fileDirectory="/home/roger/Scrivania/in-out"/>
    </port>
    </service>
    </definitions>
    Is there anyone that can help me?
    Thanks
    Roberto

    Hi,
    I have a problem with sun-file-binding for write files in a directory.
    I have a service engine that send a message to the file-binding and the binding-component must write the file
    on a directory.
    But I have this error:
    FILEBC-E00791: Solicited Read Failed. service: {http://www.sun.com/jbi/examples/sample-service/echo}echoService2, endpoint: echoEP_JBIPort2, operation: {http://www.sun.com/jbi/examples/sample-service/echo}echo. Error was: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo]..
    Consumer:Processing Message Exchange with status Error
    The log message is null.
    java.lang.Exception: Consumer:INOUT Message Exchange status ERROR.
    java.lang.Exception: FILEBC-E00791: Solicited Read Failed. service: {http://www.sun.com/jbi/examples/sample-service/echo}echoService2, endpoint: echoEP_JBIPort2, operation: {http://www.sun.com/jbi/examples/sample-service/echo}echo. Error was: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo]..
    at com.sun.jbi.filebc.OutboundMessageProcessor.setError(OutboundMessageProcessor.java:820)
    at com.sun.jbi.filebc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:301)
    at com.sun.jbi.filebc.OutboundMessageProcessor.run(OutboundMessageProcessor.java:174)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.Exception: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo].
    at com.sun.jbi.filebc.OutboundMessageProcessor.validateOutboundMessageExchangeProperties(OutboundMessageProcessor.java:1499)
    at com.sun.jbi.filebc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:272)
    ... 2 more
    at it.ditech.jbi.component.utils.RingOneMessageHandler.processInOutMessageExchangeOnConsumer(RingOneMessageHandler.java:262)
    at it.ditech.jbi.component.utils.RingOneMessageHandler.doInOutMessageExchange(RingOneMessageHandler.java:130)
    at it.ditech.jbi.component.utils.RingOneMessageHandler.processInOutMessageExchangeOnProvider(RingOneMessageHandler.java:325)
    at it.ditech.jbi.component.utils.RingOneMessageHandler.receiveAndProcessMessageExchange(RingOneMessageHandler.java:355)
    at it.ditech.jbi.component.utils.RingOneMessageHandler$1.run(RingOneMessageHandler.java:191)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    this is my WSDL file:
    <?xml version='1.0' encoding="UTF-8" standalone="yes" ?>
    <definitions
    targetNamespace="http://www.sun.com/jbi/examples/sample-service/echo"
    name="echo"
    xmlns:tns="http://www.sun.com/jbi/examples/sample-service/echo"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:file="http://schemas.sun.com/jbi/wsdl-extensions/file/">
    <types>
    <xsd:schema targetNamespace="http://www.sun.com/jbi/examples/sample-service/echo">
    <xsd:element name="item">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element type="xsd:string" name="value"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    <message name="echo">
    <part name="part"
    element="tns:item">
    </part>
    </message>
    <portType name="echo">
    <operation name="echo">
    <input name="echo" message="tns:echo"/>
    </operation>
    </portType>
    <binding name="Binding" type="tns:echo">
    <file:binding/>
    <operation name="echo">
    <file:operation verb="write">
    <input name="echo" message="tns:echo">
    <file:message use="literal" fileName="output-%t.xml" fileNameIsPattern="true"/>
    </input>
    </file:operation>
    </operation>
    </binding>
    <service name="echoService2">
    <port name="echoEP_JBIPort2" binding="tns:Binding">
    <file:address fileDirectory="/home/roger/Scrivania/in-out"/>
    </port>
    </service>
    </definitions>
    Is there anyone that can help me?
    Thanks
    Roberto

  • Re-associating play-lists with moved files

    I know this topic comes up a lot but I am not clear on the answer. How do I Re-associate play-lists with moved files?
    I used to have all my music stored under- Music/My Music, on my Macs HD. ( I did not use the iTunes folder in the same music directory)
    I then moved the entire Music folder to an external hard drive.
    Is there a simple way of re-associating all my playlists to Music/My Music, on my external drive with one setting?
    Thxs

    As Katrina says it is easiest, if possible, to switch the letters back. It would help, however, to be precise about what has changed as it may be that with a little assistance iTunes can cope with the change.
    If, for example, your database files are still on drive C: and you had relocated the *iTunes Media* folder to say *D:\iTunes Media*, which is now *E:\iTunes Media* then changing the media folder location in iTunes preferences, followed by closing & reopening iTunes ought to resolve things.
    If things were more randomly organised, i.e. not inside the iTunes Media folder, then it becomes harder. It is possible, in principle, to write a script which performs a seach and replace on the iTunes track paths, but because iTunes won't report the original location of a "missing" file this is not so eash to do in practice. I do however have a script I'm working on that can switch the location from A to B if the file can be made to appear in both locations using say a Junction or Symbolic Link or a SUBST command. Once all the files have been remapped the Junction/SymLink or SUBST could be removed.
    tt2

  • Problems with .ARW files and auto toning

    problems with .ARW files and auto toning
    let me try to explain this because this has happened in past and never found a way to resolve but i lived with it
    now that I have a Sony A7R the problem is more serious
    Firstly i take pride it making the picture happen all in camera, i use DRO lvl 5 to get enough light, like when i'm shooting at dusk. DRO its like doing HDR but in a single file, it lightens the darks. in my camera i'm happy with results
    but when I upload them to lightroom, they come out near black.
    allow me to explain
    lets say I import 100 images
    i double check my preferences and everything is UNCHECKED when it comes to importing options, there is no auto toning, nothing.
    as the images import i see a preview in the thumbnail which looks fine.
    i double click on one to enlarge it, hence leave grid view.
    for a brief 1 or 2 seconds, i see the full image in all its glory but than lightroom does something funny, it darkens the image
    one by one as it inspects each image, if it was a DRO image it makes it too dark.
    to make this clear, the image is perfect as it was in the beginning but after a few seconds lightroom for some reason thinks it needs to correct it.
    how to prevent lightroom from doing this, i want the image exactly as it is, why must lightroom apply a correction>?
    i think it has to do something with interpreting the raw file and lightroom applies its own algorithm.
    but here is what i dont get.....before lightroom makes the change i'm able to witness the picture exactly as it was taken and want it unchanged..
    now i have to tweak each file or find a profile for it which is added work.
    any ideas how to prevent lightroom from ruining my images and just leave them as they were when first detected...
    there are 2 phases...one is when it originally imports and they look fine
    second is scanning each image and applying some kind of toning which darkens it too much.
    thanks for the help

    sorry thats the auto reply message from yahoo email.
    i've disabled it now
    thing is, there is no DRO jpg to download from the camera
    its only ARW. so my understanding is when i use DRO setting, the camera makes changes to the ARW than lightroom somehow reads this from the ARW.
    but then sadly reverts it to no DRO settings.
    because i notice if i take normal picture in raw mode its dark but if i apply dro to it, it comes out brighter, yet when i d/l the image from camera to lightroom, which is an ARW - there are no jpgs. lightroom decides to mess it up
    so in reality there is no point in using DRO because when i upload it lightroom removes it.
    is there a way to tell lightroom to preserve the jpg preview as it first sees it.
    its just lame, picture appears perfect...than lightroom does something, than bam, its ruined,.
    what do i need to do to prevent lightroom from ruining the image? if it was good in the first place.

  • Problems with compressing  files with right hand click. it does not work.

    Problems with compressing files with right hand click.
    I am using the compress function in the Mac OS (File > Compress XX) from time to time. Today it does not work anymore. OS 10.5.6
    I get a message: The content list cannot be created for compressing.
    I tried it with files and folders and keep getting this message. Anybody any idea as to how to fix this

    Thanks I love my macbook!!!!
    I also got further problems such as copy-paste not working etc.
    so I fixed it just this morning by running Applejack 1.5 and am back up running noticing your post.
    thanks for helping though!

  • Problem with Image file

    Hi,
    Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
         Button=new JButton(Upload);
         Button.setToolTipText("Upload");
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
              int returnVal = fc.showOpenDialog(ActionDemo4.this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              File file = fc.getSelectedFile();
    String aa=file.getAbsolutePath();
              textArea3.append(aa);
                   textArea2.append("Local URL:");
    long l=file.length();
              try
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff);
              String str1=textArea10.getText();
    url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
         urlConn = url.openConnection();
         urlConn.setDoInput (true);
         urlConn.setDoOutput (true);
         urlConn.setUseCaches (false);
         urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
         printout = new DataOutputStream (urlConn.getOutputStream ());
    String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);
    printout.flush ();
    printout.close ();
    Best Regards
    Bikash

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • How can I create a array with all files from a directory

    How can I create a array of files or varchar with all files from a directory?

    I thought the example could be improved upon. I've posted a solution on my blog that doesn't require writing the directory list to a table. It simply returns it as a nested table of files as a SQL datatype. You can find it here:
    http://maclochlainn.wordpress.com/2008/06/05/how-you-can-read-an-external-directory-list-from-sql/

  • What is the exact problem with this file?

    Hi all,
    There is an old form , which was not in use from many days.
    Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
    When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
    FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
    The login button has the following code:
    DECLARE
      UNAME VARCHAR2(30);
      --USER_ID PARAMLIST;
      V_USER APUSERMA.USER_NAME%TYPE;
      V_PASSWED APUSERMA.USER_PASSWD%TYPE;
    BEGIN
    select user_CD INTO :GLOBAL.USER_ID from apuserma 
    where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
    AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    :global.compname := :compname;
    compnm(:compname);
    --USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
    call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
    exception
      when no_data_found then
      MESSAGE('Incorrect Username or Password.  Please Re-Enter');
      message(' ');
      RAISE FORM_TRIGGER_FAILURE;
    END;
    EXIT_FORM;
    When i tried to compile, i got error saying ,
    Error 201 at line 10, column 28
    identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
    I am not getting to know What is the exact problem with this file?
    Help me with this please.
    Thank You.
    Oracle forms builder 6i.
    Oracle 9i.

    Vijetha wrote:
    I also want to know what is the use of  win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
    What does it do??
    If i comment the following line , will it be a problem??
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    Because i commented the above line & compiled, so it is not giving any error now.
    So please tell me what win_api_environment.read_registry does??
    it's read windows registry value. So, no problem if you comment it.
    Thanks

  • Problem with Receiver File adapter

    Hi
    I have a problem with receiver file FTP adapter, while writting file in target folder, connection is failing, after retries, it writting file again. How to avoid this situation, is there any way to write the leftout part in the file.
    VS

    Hi
    Thank u all,  Problem is solved, i changed write mode to Over write existing file. It is working fine.
    VS

Maybe you are looking for

  • Unable to sync iPhone 4 after upgrading to ios 5

    My itunes prompted me to upgrade to ios 5.  During the download it stated it was restoring my phone to factory settings.  When the update was complete, it synced all of my contacts, however my apps and music were deleted.  Now when I try to sync it s

  • Do I need the NVIDIA GeForce 8800 GS w/512MB?

    I'm looking at purchasing the 24" iMac. However, I'm wondering if I will need the higher end graphics card. I don't intend to do any gaming on the system, but will definitely use Aperture, iMovie and more than likely Final Cut Express for home movies

  • Problem in creating Function Modules

    At present i am using ECC 6.0 version. Now i want to write a function module for inserting data  into function module. When i try to declare internal table usingTABLES keyword.it is giving error "TABLE PARAMETERS ARE OBSOLUTE".so for this i declared

  • Portal themes for SAP GUI for HTML

    Dear SDNs, We have a portal theme designed with good and look and feel, but most of our applications are SAP Transaction iViews for HTML GUI. can we apply the same theme to HTML GUI applications? or at least can we change the background color and win

  • HT1338 I cannot install napster 5 on my Mac OS X VERSION 10.4.11 anybody have any ideas ?

    I cannot install napster 5 on my Mac OS X VERSION 10.4.11 anybody have any ideas ?