Dov'è la stima del peso del file da esportare?

Ciao. quando esporto un file in premiere, nel box delle opzioni non c'è la stima del peso del file. come mai? uso un imac e premiere pro in italiano. Grazie

Salve!
Cosa intendete per valore caratteristico (indicabile manualmente sulla curva)?
Intendete che quel valore caratteristico non si puó calcolare ma deve essere "puntato" (per esempio con un cursore) sulla curva e poi salvato in un canale?
La creazione dei vari cicli e il calcolo del massimo puó essere fatto abbastanza velocemente, il fatto é che se create un canale per ogni ciclo (piú i canali originali) vi ritrovate con veramente tanti dati nella memoria RAM e questo puó rallentare il sistema.
Nell'esempio sotto creo solo canali per i risultati, dove per ogni ciclo calcolo il valore massimo.
Per quanto concerne il vostro secondo valore (quello manuale), potete precisarmi cosa intendete?
Saluti
Ken
Allegati:
Calcolo canali.txt ‏5 KB

Similar Messages

  • Buongiorno, ho questo problema, quando cerco di aggiornare alcuni programmi, nella fase di disinstallazione  mi esce il messaggio "errore durante la lettura del dati di protezione del file c/documents and settings/lorenzo/dati applicazioni/microsoft/inter

    Buongiorno, ho questo problema, quando cerco di aggiornare alcuni programmi, nella fase di disinstallazione  mi esce il messaggio "errore durante la lettura del dati di protezione del file c/documents and settings/lorenzo/dati applicazioni/microsoft/internet explorer/quick launch/getlasterror 87" la disintallazione si interrompe e non permette l'aggiornamento. Qualcuno può aiutarmi? Grazie

  • Del file without trash can

    If you del a file in NT, the file just only is deleted, but the same code in W98 take the file into the trash can.
    Can we delete it definitively?
    Thanks

    Actually in either case....files are not deleted, just the reference to them are deleted. If you want to make files "unrecoverable" then you would need to overwrite the location on the disk where they reside with something else. Java gives you no such fine-grained control but you could do one of two things:
    Either write a routine using C, put into a DLL and use JNI to call that routine to remove the file.
    or
    Write a routine in C - an executable that you call using java that you use to delete the file.
    First method is best but harder to do.

  • Print to a Comma Del. file

    I know how to generate a report to a comma delimited file after the report has already ran and is displayed on the screen.
    How do I generate the delimited file programtically the first time a report is ran? Help is very much appreciated. Thanks,
    RW
    null

    Hello,
    Try DESFORMAT=DELIMITED.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                       

  • All'accensione del pc non trovo più i dati acquisiti oggi ed elaborati

    Oggi ho acquisito dei dati importanti con il pc ed un programma in labview. Durante l'acquisizione i dati son stati salvati nell'apposita cartella in documenti e verificati in real time con diadem.
    Al termine della prova ho spento il pc e solo in ufficio l'ho riacceso.
    Non trovo più alcun dato, anzi, pur risultando che tra le mie operazioni recenti ho elaborato i file, non son più in grado di aprirli perchè mi dice che è stato cambiato il percorso del file o il nome.
    Dove posso trovarli?
    Durante l'accensione del pc, al primo collegamento ad internet son stati eseguiti degli aggiornamenti del computer.
    è la prima volta che mi accade una cosa simile.
    Grazie

    Salve,
    che tipo di aggiornamento ha fatto il pc? Conosce il percorso in cui veniva salvato il file precedentemente? Che tipo di file era?
    Nel caso in cui non riesce a trovare questi file, anche con una semplice ricerca, è possibile che non siano stati salvati a causa di un'errata operazione di salvataggio. Ha fatto un backup di questi dati?

  • I need to create an action or script to save the file with the name of the selected layer

    I need to create an action or script to save the file with the name of the selected layer (not including the hidden layers, but including those visible).
    How could modify the script: 'Layer Comps To Files.jsx' to get the result?
    Warning: I do not need to export all layers as files.
    Who can help me?
    THX in advance

    Versione in Italiano (Further down the English version)
    NB - Nella versione inglese ho messo tutte le immagini dei menu in italiano.
    Versione per Mac, ma credo sia identico per Windows.
    Spiego passo passo cosa ho fatto:
    - Ho creato un file esempio con tre Livelli, salvato sulla scrivania e ho chiuso il file.
    - Ho aperto il file e selezionato il Livello al centro per iniziare a registrare una azione che ho chiamato: Save with Name of Selected Layer
    - Nuova azione
    - Dare il nome e premere Registra
    Ora salva…
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Ancora una volta Menu --> Livello... --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello --> Ordina --> Dietro
    - Menu --> Livello --> Unisci sotto
    - Menu --> Livello --> Unisci visibili
    - Menu --> Livello --> Nuovo --> Livello... e premi -ok-, (lascia il nome che viene mostrato)
    - Menu --> Livello - Nascondi Livello
    - Menu --> Elimina --> Elimina livelli nascosti (press -Yes-)
    - Menu --> Livello --> Nuovo --> Livello... Inserisci questo: 'Move this to the trash' e premi ok
    - Menu --> File --> Script --> Esporta Livelli in File... (Nella finestra che si apre scegliere l’opzione che si desidera, ma togliere il prefisso del nome) e premere -Esegui-
    - Selezionare il pannello Storia cliccare su Elimina premendo -Si- ogni volta che si apre la finestra di dialogo (Ripetere 8 volte questa operazione sino ad arrivare nella storia alla condizione di partenza. Ho visto che è meglio di Ripristina -F12-)
    - Fermare la registrazione.
    A questo punto, mandando in esecuzione questa Azione, ho raggiunto parzialmente l’obiettivo perché i file così creati mantengono, purtroppo, dei prefissi numerici per evitare probabilmente la sovrascrizione di file (credo senza avviso) nel posto dove vengono creati.
    Per ottenere l’obiettivo occorre un nuovo passo ed a proposito di questo riferisco quanto segue:
    ATTENZIONE - L’operazione descritta qui di seguito deve essere fatta su di una copia del file, per cui:
    - Duplicare il file,
    - Spostare l’originale in altra cartella
    - Lavorare sul file duplicato.
    mi riferisco a questo...
    ATTENZIONE - Questa modifica è effettuata a proprio rischio e pericolo ed il sottoscritto non si assume alcuna responsabilità su quanto venga fatto soprattutto da mani inesperte.
    ATTENZIONE - Questa modifica sovrascrive qualsiasi file che abbia nome uguale al layer che viene selezionato più l’estensione del file naturalmente.
    Comunque la modifica è banalissima e a portata di chiunque.
    Procedere così:
    - Chiudere Photoshop
    - Aprire (nel percorso specificato dall’immagine) il file “Export Layers to Files.jsx” (Export Layers To Files.jsx 1.0.0.16) con un editor di testo puro.
    - cercare la stringa (dovrebbe essere in riga 1029)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4);
    fileNameBody += "_" + layerName;
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += layerName;
    - cercare la stringa (dovrebbe essere in riga 1047-46)
    var fileNameBody = fileNamePrefix;
    fileNameBody += "_" + zeroSuppress(i, 4) + "s";
    - sostituirla con:
    var fileNameBody = fileNamePrefix;
    fileNameBody += "";
    - salvare e uscire.
    - riavviare Photoshop
    - provare l’azione registrata facendo attenzione che il nome del layer non sia identico al nome di un file già presente altrimenti questo verrà sovrascritto.
    Domanda:
    Perché ho creato livelli che poi ho eliminato ecc.
    Risposta:
    Semplice per evitare errori di esecuzione delle azioni nel caso di operazioni con livelli mancanti o altro.
    Semplice... no?
    English version
    Mac version, but I think it's the same for Windows.
    First of all, I'm translating the actions that I made using the Italian version of Photoshop, you look at the position of the menu that I have chosen to do the work with other languages.
    I explain step by step what I did:
    - I created a sample file with three layers, saved to the desktop and I closed the file.
    - I opened the file and select the layer at the center to start recording an action that I called: Save with Name of the Selected Layer
    - New action
    - Give the name and press Save ( I think it is so in English )
    Now save ...
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Once again Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - > Arrange (order) -> Behind
    - Menu -> Layer - > Merge Down
    - Menu -> Layer - > Merge Visible
    - Menu -> Layer - > New —> Layer… and press -ok- , (leave the name that is shown)
    - Menu -> Layer - Hide Layer
    - Menu - > Delete - > Delete hidden layers (press -Yes- )
    - Menu -> Layer - > New —> Layer… Enter this: ' Move this to the trash ' and press ok
    - Menu -> File - > Scripts -> Export Layers To Files... (In the window that opens select the option you want, but take away the name prefix) and press - Run -
    - Select the History panel and click Delete (on menu opened) pressing -Yes- every time when open the dialog box (8 times Repeat this step until you get into the story to the starting condition. Not use Restore -F12-).
    - Stop recording.
    At this point, by executing this action, I have reached the goal partly because the files created in this way remain, unfortunately, the numerical prefixes to avoid possibly overwriting of files (I think without notice) in the place where they are created.
    To achieve the goal we need a new step and thinking about this as follows:
    WARNING - The operation described below should be made on a copy of the file, so :
    - Duplicate the file
    - Move the original folder to another
    - Work on the duplicate file.
    WARNING - This modification is performed at your own risk and the undersigned assumes no responsibility on what is done mostly by inexperienced hands.
    WARNING - This change will overwrite any files with the same name as the selected layer plus the file extension of course.
    However, the change is trivial and within reach of anyone.
    Proceed as follows:
    - Close Photoshop
    - Open (in the specified path from the image ) file " Export Layers to Files.jsx " (Export Layers To Files.jsx 1.0.0.16) with a pure text editor.
    - Search for the string (should be in line 1029 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody = + "_" + zeroSuppress (i, 4 ) ;
    fileNameBody + = "_ " + layerName ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = layerName ;
    - Search for the string (should be in line 1047-46 )
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "_ " + zeroSuppress (i, 4) + "s" ;
    - Replace it with :
    var = fileNameBody fileNamePrefix ;
    fileNameBody + = "";
    - Save and exit.
    - Restart Photoshop
    - Try the recorded Action, making sure that the layer name is not identical to the name of an existing file otherwise it will be overwritten.
    Question:
    Why I created levels which I then deleted etc..
    Answer:
    Simple to avoid errors of execution of the actions in the case of transactions with missing levels and other.
    Simple ... is not it?
    Sorry for my bad English...
    Thanks in advance for any hint.
    --->>> Please think about this... Adobe <<<---

  • Converting a text file into a String

    I need to convert a text file (in whatever format, in my case it would be xml and xsl files) in a String.
    I made this methods:
    public static String createStringFromFile(File f) {
            StringBuffer buf = new StringBuffer();
            try {
                FileInputStream fInp = new FileInputStream(f);
                byte[] byteArray = new byte[fInp.available()];
                int bLetti = fInp.read(byteArray);  
                if (bLetti == fInp.available()) {
                    for (int i=0; i<fInp.available(); i++)
                        buf.append(Byte.toString(byteArray));
    else
    throw (new IOException("Errore nella lettura del file"));
    fInp.close();
    } catch (Exception e) {
    ErrorManager.getError(e);
    return (buf.toString());
    public static String createStringFromFile(String fileName) {
    StringBuffer buf = new StringBuffer();
    try {
    FileInputStream fInp = new FileInputStream(fileName);
    byte[] byteArray = new byte[fInp.available()];
    int bLetti = fInp.read(byteArray);
    if (bLetti == fInp.available()) {
    for (int i=0; i<fInp.available(); i++)
    buf.append(Byte.toString(byteArray[i]));
    else
    throw (new IOException("Errore nella lettura del file"));
    fInp.close();
    } catch (Exception e) {
    ErrorManager.getError(e);
    return (buf.toString());
    There are no compilation or runtime errors, but the result string is empty. Not null, empty. What should I do? :)

    Do you really want to use bytes and so on when java does it all for you?
    Here's how I did it, hope it's useful.
    public String getFileAsString(String fileName){
         StringBuffer buffer = new StringBuffer();
         try{
         BufferedReader bRead = new BufferedReader(new FileReader(new File(fileName)));
         String str = "";
         while( (str = bRead.readLine()) != null ){
              buffer.append(str);
         }//end while
         bRead.close();
         }catch(Exception e){
         System.err.println("in getFileAsString(): " + e.toString());
         }//end try
         return buffer.toString();
    }//end getAsString()

  • Does Time Machine use a differential/delta file compression when copying files ?

    Hello,
    I would like to use Time Machine to backup to a MacBook Air but that computer is using a Virtual Machines store in a single file of 50 GBytes.
    Once the initial backup will be done, does Time Machine will only copy the changes in this large file or will everyday copy the full 50 Bytes?
    In other word does Time Machine use a differential/dela file compression algorithm (like un rsync)?
    If it is not yet the case, can you please file for me an application request to the development team internally?
    If others are also interested in such a feature, you’re welcome to vote for it.
    Kind regards,
    Olivier

    Ok, it looks like the current version of Time Machine cannot handle efficiently in network terms large files like Virtual Machine files and this a real issue today.
    Is anybody here able to file an official feature request to Apple to be able to use Time Machine efficiently also with large files (let's stay > 5 GBytes) ?
    I should propably mean using a differential compression algorythm over the network like the examples below:
    http://rsync.samba.org/tech_report/tech_report.html
    http://en.wikipedia.org/wiki/Remote_Differential_Compression

  • Data insertion in the file?

    I have a text file with some content. I have some text to be inserted at some line number. I tried using RandomAccessFile class to do it. However it's overwriting the pre-existing content. Is it possible to avoid overwriting of the pre-existing content and at the same time append new content at given line.
    There are other approaches where I read the content from the file. Put it in a buffer. Append the new content when it's required and then finally write to the file. But instead of using this approach if it's possible to append the new content directly to the same file without using any buffer it'll be very good. Let me know if that's possible.
    Thanks in advance,
    Sandesh

    You can use RandomAccessFile. Try this:
    public static void addText( String arg0, String path ) {
              long pos;          
              try {
                   raf = new RandomAccessFile( path , "rw" );
                   pos = raf.length();
                   raf.seek( pos ); //mi sposto alla fine del file
                   raf.writeBytes( "\n" ); // new line
                   raf.writeBytes(arg0);
                   raf.close();
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         }

  • How do I save Lightroom image edits in source file?

    My experience with the trial version of lightroom is very positive in terms of the convenient and powerful capabilities for editing images and the associated metadata.  But I can't find a way to save the "develop" edits to images into the source file for the photo I am working with.  So far, I am able to save the metadata into the file but not the image editing.  From what I read, I fear this is not possible without silly round about exporting to new files then copying / moving multiple copies around, etc. Without this ability, I am pretty sure I will not purchase lightroom and will miss out on all the powerful features.  Without an OPTION that turns on the equivalent of a SAVE button, managing my photos collection would be a nightmare. 
    So my question is: How do I save the edited (i.e., developed) version of a photo back into the same file where the original photo was stored?
    Please, please spare me all the reponses telling me how stupid I am for wanting to do this and that the cognisenti and professionals would NEVER do this.    But please just tell me there is a secret place to turn on this option in lightroom.
    Thanks in advance.

    I had the same requirement to save in JPEGs files all non-metadata edits performed in Lightroom, in order to share modified pictures without duplicating files. By the way, I think it’s going to be more and more required by casual Lightroom users, as people get used to instant photo sharing in many situations where quantity matters more than quality
    Here’s a nearly automatic (at least, scalable) solution that works, although it slightly lowers the quality by re-compressing the original pictures.
    Once for all:
    Download and install the wonderful Lightroom plugin “jf Run Any Command”, provided as donationware by Jeffrey Friedl here: http://regex.info/blog/lightroom-goodies/run-any-command. This “export filter” plugin allows you to run a command of your choice with each exported file, as part of the export while it’s going on. (You may also browse Jeffrey’s blog to find many other useful and beautiful things.)
    In Lightroom, pre-define an export settings as follows:
    Export to the hard drive, to the original picture folder, without adding the exported file to the catalog
    Name the exported file “EXPORTED-{Filename}” (or anything different from the original file name)
    JPEG format, 76% quality (see An Analysis of Lightroom JPEG Export Quality Settings at http://regex.info/blog/lightroom-goodies/jpeg-quality)
    Keep all metadata
    Here’s the interesting part, the Run Any Command settings:
    Command to execute for each exported picture: copy "{FILE}" "{Path}\{LIBRARYFILENAME}" (this replaces the original file with a copy of the exported file)
    Command to execute upon export completion: del {FILES} (this deletes all exported files).
    NB: One could wonder why not directly export with the original file name and silently replace the original files (I believe Lightroom would allow this). It’s just a matter of error handling: in case the export goes wrong, no original file is changed at all.
    The easy part: each time you want to save edits:
    In Lightroom, select the pictures to save, and export them with the pre-defined settings. You're almost done. The JPEG files are ok, but inside Lightroom you see the modification effects doubled, as their specifications remain in the catalog database and they apply on modified JPEG instead of the original files.
    While the entire set of "saved" pictures is still selected, in the Develop module switch Autosync on and click Reinit to erase all modification specifications from the catalog for all pictures, then press CTRL-S to write down to disk any metadata updated by Lightroom -and accept if required to confirm that Lightroom values should replace externally set values.
    Stephane
    PS: Papa Ben, I'm curious about the decision you  finally made

  • How to include commandline options in Batch File

    Hi i have following code for batch file now i want to include one more optionas -savemndl
    command is
    loader.bat -savemndl (savedmndl file) (inputmndl file) (output Logfile)
    @echo off
    set JAVAOPTS= -Xms20m -Xmx500m %JAVAOPT%
    set FILE=
    set OPTIONS=
    :loop
      if "%1" == ""             goto break
      if "%1" == "-v"           goto setOptions
      if "%1" == "-print_mndl"  goto setOptions
      if "%1" == "-verbose"     goto setOptions
      if "%1" == "-seed"        goto setJavaOpt
      if "%1" == "-help"        goto help
      goto break
    :setOptions
      set OPTIONS=%OPTIONS% %1
      shift
      goto loop
    :setJavaOpt
      shift
      set JAVAOPTS=%JAVAOPTS% -Drandom.seed=%1
      shift
      goto loop
    :break
    if not exist "%1" goto notFound
    native2ascii %1 > %1.tmp
    set FILE=%1.tmp
    shift
    java %JAVAOPTS% -classpath classes;lib\simcore.jar;lib\loader.jar jp.go.nict.msf.loader.MNDLParser %OPTIONS%  %FILE% %1
    del %FILE%
    goto end
    :help
    echo usage: loader -help
    echo usage: loader [-v] [-seed value] [-print_mndl] filename.mndl [traceLogFile]
    java -classpath classes;lib\simcore.jar;lib\loader.jar jp.go.nict.msf.loader.MNDLParser -help
    goto end
    :notFound
    echo loader: Error "%1" is not found.
    echo usage: loader -help
    echo usage: loader [-v] [-seed value] [-print_mndl] filename.mndl [traceLogFile]
    :end

    And what is the actual quesion then? Because the batch file given above is itself a good example how to use parameters.
    Mike

  • Version Document Info Record and File Management

    Hi all!
    want to edit DMS document info records (as in cv04n - add, del files) without deleting original DIR -> Version management of DIRs.
    I use the following BAPI scenario:
    - BAPI_DOCUMENT_GETACTVERSION (get the highest version of a DIR)
    - BAPI_DOCUMENT_GETDETAIL2 (to get the object links of the DIR)
    - BAPI_DOCUMENT_CREATENEWVRS2 (create a new version of the DIR, copyoriginals = X, object links are copied as well)
    - again BAPI_DOCUMENT_GETACTVERSION (get this new version number)
    - again BAPI_DOCUMENT_GETDETAIL2 to get the files of the new version DIR)
    - to delete single files, i change the file record of the files table ( set deletevalue = X).
    - then BAPI_DOCUMENT_CHANGE2  as suggested in a nother thread of mine by 2 community members.
    the latest step runs for version = 00, but when having a version gt 00, the bapi_document_change2 returns : "original is already checked in and stored".
    also i checked the ph_objid and lo_objid (the ids are the same for Version n and n+1), which might be the reason for the error mentioned above.
    i can't find any solution.
    thanks for replies in advance,
    Christoph

    Hi all!
    got the solution: - finally !!!
    Problem:
    you want to edit Document info records - using a new version of this DIR. in the new version it is possible to add and delete files.
    Solution:
    - CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'
    and get the actual hightest version of the DIR
    - ls_objtype-OBJECTTYPE = '*'.
    append ls_objtype to myobjectlinks. to be able to copy all the objectlinks of the DIR.
    - lv_dokvr_new = lv_dokvr_ref + 1. - increment the DIR version number
    - CALL FUNCTION 'BAPI_DOCUMENT_CREATENEWVRS2 to create a new version of the DIR.
    - * get again the actual version
    CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'
    - * get files of the new version
    CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
    - * set the delete flag for those you want to delete in the table documentfiles.
    - CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
    IMPORTANT ***
    !!! transfer O N L Y the files you want to delete O R transfer all files but C L E A R the STORAGE_CATEGORY field !!!
    any questions? feel free to ask...

  • How to check if the file already exists in the client directory

    Hi all.
    I'm on devsuite 10g. I'm using webutil to download files from DB using webutil function db_to_client.
    What I need is to check if the file already exists in the client directory and if yes to display a message to ask the user if he wants to overwrite or no. How can I make this???
    Here is the code that I'm using to download the file.
    Thanks all for the collaboration.
    Fabrizio
    declare
    file_path varchar2(2000) := null;
    BEGIN
    /** I ask where saving the file on the client machine **/
    file_path:= webutil_file.file_selection_dialog
    (directory_name => null,
    file_name => :bin_docs.name,
    file_filter => '',
    title => 'Saving file',
    dialog_type => save_file, --save_file
    select_file => TRUE);
    /** I download the file from DB to client **/
    if webutil_file_transfer.DB_To_Client_With_Progress
    ( file_path ,
    'BIN_DOCS',
    'DOC' ,
    'doc_id = '||:bin_docs.doc_id,
    'Downloading file',
    ' '||:bin_docs.name) then
    msg_alert('Download del file avvenuto con successo','I',false);
    else
    msg_alert('Si è verificato il seguente errore in fase di download '||SQLERRM,'I',false);
    end if;
    end;

    How about something like the below:
    Note: I have a yes/no alert to asking if they want to over-write the existing file.
    DECLARE
    file_path VARCHAR2(2000) := null;
    over_write BOOLEAN := TRUE;
    BEGIN
    /** I ask where saving the file on the client machine **/
    file_path:= webutil_file.file_selection_dialog
    (directory_name => null,
    file_name => :bin_docs.name,
    file_filter => '',
    title => 'Saving file',
    dialog_type => save_file, --save_file
    select_file => TRUE);
    IF webutil.file_exists(file_path) THEN
    /** check a file by the same name exists in the selected directory **/
    IF show_alert('Ask_overright') != alert_button1 THEN
    /** If we say no then set over_write value to false **/
    over_write := FALSE;
    END IF;
    END IF;
    IF over_write THEN
    /** I download the file from DB to client **/
    IF webutil_file_transfer.DB_To_Client_With_Progress
    ( file_path ,
    'BIN_DOCS',
    'DOC' ,
    'doc_id = '||:bin_docs.doc_id,
    'Downloading file',
    ' '||:bin_docs.name) then
    msg_alert('Download del file avvenuto con successo','I',false);
    ELSE
    msg_alert('Si è verificato il seguente errore in fase di'
    ||' download '||SQLERRM,'I',false);
    END IF
    END IF;
    END;
    cheers
    Q

  • FCP captured files showing as Unix Executable

    I know there's been a bit of discussion about this problem but I wanted to see if someone could shed a bit more light on my situation. For the past few years we've been doing all our video capturing (using FCP 5.1.4 capturing in HDV) and editing on a PowerMac G5 running 10.4. Once finished with a project it would get packaged to a larger Dell file server. When we upgraded to a new imac and FCP 7 all of our projects mov files were showing up as Unix Executable. I tried chmod -x but it didn't really solve the problem. What does work is this:
    1. Transfer an entire project from the dell file server to my PowerMac G5.
    2. Connect to the PowerMac G5 from my Core i5 iMac through network.
    3. The project movie files from the G5 show up normally in the finder of my i5.
    4. Connect to dell file server from my i5.
    5. Transfer files from the G5 to the dell file server via my i5.
    6. Files show up properly from the dell server on my i5.
    Now this is all well and good cause it seems to work. The problem is we have thousands of files and terabytes of projects. Obviously OS X is just changing something small in the file about how it reads it. Is there a way I could alter this directly on the dell server without having to transfer all my files in the way described above?
    Hope this makes sense. Thanks.

    Looks like I may have fixed my own problem. FCP never used to put an mov extension on any of it's captured files. Simply putting it on seems to have fixed the problem. Still really doesn't explain why the previous method worked, but it's a lot easier making an automator action to put extensions on than transferring terabytes of data.

  • Upload a file in a BLOB Oracle variable

    Hello all,
    i am developing a web application to upload a binary file in an Oracle database (9i) in a BLOB variable.
    the input is stored in a FILE object wich is temporary stored in a folder (C:\\APP). after the upload in the BLOB the file should be deleted. I get the following error
    java.lang.NullPointerException
         at com.merck.cdm.BlobOracle.insertBLOB(BlobOracle.java:98)
    when I try to get the file for the FileInputStream. It seems I am not able to acces the FILE object once defined.
    any help is welcome
    thanks
    claudio
    this is the code:
    package com.merck.cdm;
    import java.sql.*;
    import java.io.*;
    import java.sql.PreparedStatement;
    import java.util.*;
    import com.oreilly.servlet.MultipartRequest;
    import com.oreilly.servlet.multipart.DefaultFileRenamePolicy;
    import javax.servlet.http.HttpServletRequest;
    import oracle.jdbc.driver.*;
    import oracle.sql.BLOB;
    * Insert record in the MEDIA table
    * MEDIA (file_name varchar2(256), file_content BLOB);
    public class BlobOracle
    private final static String hostname = "itpo0002.merck.com";
    private final static String port = "1521";
    private final static String sid = "TIRWEB";
    private final static String username = "test_blob";
    private final static String password = "password";
    private static String fileLocation;
    private static Connection connection;
    public BlobOracle()
    public boolean processAddRequest(HttpServletRequest request, String sAbsolutePath)
    throws IOException, SQLException, Exception
         boolean bParamsOk = true;
    boolean bAttachOk = true;
    //Acquire request parameters we need .
    //5 MB's limit
    //the work directory will be "TOMCAT_HOME\bin, and the user can provide another one like C:\workDir
    //the file will be deleted as soon as the message will be sent
    //m_mpReq = new MultipartRequest(request, ".", 5 * 1024 * 1024);
    //m_mpReq = new MultipartRequest(request, "/opt/www/corp/ats-crf/java/ats-crf/attachment/", 5 * 1024 * 1024);
    //String sWorkDir = File.separator + sAbsolutePath + "attachment" + File.separator;
    MultipartRequest mpRequest = new MultipartRequest(request, "C:\\app", 8 * 1024 * 1024);
    // upload file in a temp dir
              //il form � di tipo enctype="multipart/form-data" e quindi il metodo getParameter di java.lang.string non funziona
              //bisogna quindi usare l'analogo metodo di MultipartRequest
              String fileName = mpRequest.getFilesystemName("upload_file");
    System.out.println("fileName is " + fileName);
    File file; //creo un oggetto di tipo "file" dal file nella cartella temporanea
    file = mpRequest.getFile("C:\\app");
    //String fileName = file.getName();
    //Connection;
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@"+hostname+ ":"+ port +":"+ sid , username , password);
    con.setAutoCommit(false);// we must control the commit SE METTO TRUE FUNZIONA MA DA UN ALTRO ERRORE;
    insertBLOB(fileName, file, con);//passo il nome del file e l'oggetto file
    return (bAttachOk && bParamsOk);
    public void insertBLOB(String strFileName, File AttachedFile, Connection connection) throws SQLException, Exception
    long ts1 = System.currentTimeMillis();
    ResultSet rs = null;
    Statement stmt = null;
    //Create a statement.
    StringBuffer sbSql = new StringBuffer();
    sbSql.append("INSERT INTO media\n");
    sbSql.append("(file_name, file_content)\n");
    sbSql.append("values ('" + strFileName + "', empty_blob())");
    connection.setAutoCommit(false);
    stmt = connection.createStatement();
    stmt.execute(sbSql.toString());
    System.out.println(sbSql);
    //Take back the record for update (we will insert the blob)
    StringBuffer sbSqlBody = new StringBuffer();
    sbSqlBody.append("SELECT file_content FROM media\n");
    sbSqlBody.append("WHERE file_name = '" + strFileName + "' for update");
    //Execute the query, and we must have one record so take it
    rs = stmt.executeQuery(sbSqlBody.toString());
    rs.next();
    System.out.println(sbSqlBody);
    //Use the OracleDriver resultset, we take the blob locator
    BLOB blob = ((OracleResultSet)(rs)).getBLOB("file_content");
    //copyFileIntoBlob(AttachedFile, blob);
    System.out.println("Start copyFileIntoBlob");
    System.out.println("attached length = " + AttachedFile.length()); <-GOT THE ERROR HERE
    FileInputStream instream = new FileInputStream(AttachedFile);
    System.out.println("before getBinaryOutputStream");
    OutputStream outstream = blob.getBinaryOutputStream();
    System.out.println("after getBinaryOutputStream");
    //Call getChunkSize() to determine the ideal chunk size to write to the BLOB,
    //then create the buffer byte array.
    int chunk = blob.getChunkSize();
    byte[] buffer = new byte[chunk];
    int length = -1;
    while ((length = instream.read(buffer)) != -1)
    outstream.write(buffer, 0, length);
    instream.close();
    outstream.close();
    System.out.println("End copyFileIntoBlob");
    long ts2 = System.currentTimeMillis();
    connection.commit();
    connection.close();
    //cancella il file
    AttachedFile.delete();
    //cancella il file
    System.out.println("\n"+ (ts2 - ts1) +" ms" );
    ******************************************************

    You are getting NullPointerException because the input parameter AttachedFile to the function
    public void insertBLOB(String strFileName, File AttachedFile, Connection connection)is null.
    First check if the file object is null here: before passing it on to the function.
    File file; //creo un oggetto di tipo "file" dal file nella cartella temporanea
    file = mpRequest.getFile("C:\\app");I don't think file = mpRequest.getFile("C:\\app"); will work if
    app is just a directory, try specifying a file name there.
    Message was edited by:
    appy77

Maybe you are looking for

  • .tdm file storage vi's slow editing vi's

    I am developing software using Labview 8.5 and have recently added some file storage vi's for the .tdm format for use in DIAdem 10.2.  Upon using the open storage, set file properties, write channel group, write channel, and close storage vi's, the e

  • Error while importing Item MAster Data using DTW

    Hi, when we are importing item master data using items template it is giving error. Error:":connected value 1 was not found " can any one send the oitems template that is working fine wthout any error. Thanks, Neetu

  • Datagrid checkbox renderer

    Hi all, I have a datagrid with checkbox as item renderers and checkbox as header renderer in one of its columns. I created a custom datagrid column extending from datagrid column. The visible property of checkbox in a row is based on a condition. All

  • Workbook is not reflecting changes

    Hi Friends,    I have done some changes in existing structure at1 existing query and same structure are using in different query also, that also reflected and working fine, but these 2 queries are already added in 1 workbook as in 2 worksheets, the p

  • Preview not rendering PDF accurately

    I have PDF documents that I have downloaded and can view them perfectly in Adobe Reader 9.3.2. When I try to view the same PDF in Preview or PDFpen the text show missing or as random symbols. I have already validated my fonts using the OSX Font Book