Import CSV file and the conversion of an array

Hi all

I'm working on a site that is to import a CSV (comma separated values) published via actionscript 3.0 URLloader().  Now I just try to get actionscript to successfully enter the data imported from the CSV file as a table, then the CSV file has 1 single cell that contains "athleticMaroon, charcoal, colonialBlue, kellyGreen, fullColor".

Here is the code I use:

create table

var shirtLiveIntense_btn_Colors:Array = new Array();

run the import from CSV data

URLLoaderCSV();

shirtLiveIntense_btn.addEventListener (MouseEvent.CLICK, selectingLogo);

function selectingLogo(e:MouseEvent):void {}

trace ("current logo');

var colorButtons:Array = this [e.currentTarget.name + "_Colors"];

for (var i: uint = 0; i < colorButtons.length; i ++) {}

.Ivar colorButtons [i] = i;

colorButtons [i] .addEventListener (MouseEvent.CLICK, shirtColorOption);

}

}

CSV data import function

function URLLoaderCSV() {}

var loader: URLLoader = new URLLoader();

configureListeners (loader);

var request: URLRequest = new URLRequest ("https://docs.google.com/spreadsheet/pub?hl=en_US & hl = en_US & key = 0AlJnOKOffTSxdFk0RVlEUTVHeF9 DMHZfZ0JzSkJjZFE & single = true & gid = 1 & output = csv");

try {}

Loader.Load (request);

} catch (error: Error) {}

trace ("unable to load requested document.");

}

}

function configureListeners(dispatcher:IEventDispatcher):void {}

dispatcher.addEventListener (Event.COMPLETE, completeHandler);

dispatcher.addEventListener (Event.OPEN, openHandler);

dispatcher.addEventListener (ProgressEvent.PROGRESS, progressHandler);

dispatcher.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

dispatcher.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);

}

function completeHandler(event:Event):void {}

var loader: URLLoader = URLLoader (event.target);

trace ("completeHandler:" + loader.data);

shirtLiveIntense_btn_Colors.push (loader.data);

}

function openHandler(event:Event):void {}

trace ("openHandler:" + event);

}

function progressHandler(event:ProgressEvent):void {}

trace ("progressHandler loaded:" + event.bytesLoaded + "total:" + event.bytesTotal);

}

function securityErrorHandler(event:SecurityErrorEvent):void {}

trace ("securityErrorHandler:" + event);

}

function httpStatusHandler(event:HTTPStatusEvent):void {}

trace ("httpStatusHandler:" + event);

}

function ioErrorHandler(event:IOErrorEvent):void {}

trace ("ioErrorHandler:" + event);

}

Here is the result:

openHandler: [event type = "open" bubbles = false cancelable = false eventPhase = 2]

progressHandler loaded: 57 total: 0

httpStatusHandler: [HTTPStatusEvent type = "httpStatus" bubbles = false cancelable = false eventPhase = 2 status = 200]

completeHandler: athleticMaroon, colonialBlue, kellyGreen, charcoal, fullColor

chosen logo

ReferenceError: Error #1056: cannot create ivar String property.

at main_fla::MainTimeline/selectingLogo()

Review of results of release, I see it's clearly to load the data from the CSV file correctly, but what I think it does is important data as a single string, aka 'athleticMaroon, charcoal, colonialBlue, kellyGreen, fullColor' and push for shirtLiveIntense_btn_Colors:Array = new Array().  But, as I see the error selectingLogo(e:MouseEvent) service cannot treat the table because it contains a string of.

If I switch to shirtLiveIntense_btn_Colors.push (loader.data); with shirtLiveIntense_btn_Colors.push (charcoal, colonialBlue, kellyGreen, athleticMaroon, fullColor); everything works like a charm, but I need the table to assign dynamic in the CSV file data

Can anyone help to get imported CSV data to strings pushed a table accessible?

Thank you!


It is an error caused by:

var colorButtons:Array = this [e.currentTarget.name + "_Colors"];

for (var i: uint = 0; i

.Ivar colorButtons [i] = i;

colorButtons [i] .addEventListener (MouseEvent.CLICK, shirtColorOption);

}

your table is an array of strings.  If you try to force these strings into objects on the timeline that contains your code, use array notation:

var colorButtons:Array = this [e.currentTarget.name + "_Colors"];

for (var i: uint = 0; i

This .ivar [colorButtons [i]] = i;

This [colorButtons [i]] .addEventListener (MouseEvent.CLICK, shirtColorOption);

}

Tags: Adobe Animate

Similar Questions

  • Not possible to export a list of virtual machines that are created in the past 7, 30, 120 and 180 days since an imported csv file containing the date of creation of virtual machine

    Not possible to export a list of virtual machines that are created in the past 7, 30, 120 and 180 days since an imported csv file containing the date of creation of virtual machine. My questions is the correct statement to the variable: $VmCreated7DaysAgo: $_CreatedOn "-lt" $CDate7.

    # #SCRIPT_START

    $file = "C:\Users\Admin\Documents\WindowsPowerShell\08-18-2014\VM-Repo.csv".

    $Import = import-csv $file

    $VMCreatedLast7RDayRepoFile = "C:\Users\Admin\Documents\WindowsPowerShell\08-18-2014\Last7Days.csv".

    $start7 = (get-Date). AddMonths(-1)

    $CDate7 = $start7. ToString('MM/dd/yyyy')

    $VmCreated7DaysAgo = $Import | Select-object - property name, Powerstate, vCenter, VMHost, Cluster, file, Application, CreatedBy, CreatedOn, NumCpu, MemoryGB | Where-Object {$_.} CreatedOn - lt $CDate7} | Sort-Object CreatedOn

    $TotalVmCreated7DaysAgo = $VmCreated7DaysAgo.count

    $VmCreated7DaysAgo | Export-Csv-path $VMCreatedLast7RDayRepoFile - NoTypeInformation - UseCulture

    Write-Host "$TotalVmCreated7DaysAgo VMs created in 7 days" - BackgroundColor Magenta

    Invoke-Item $VMCreatedLast7RDayRepoFile

    # #SCRIPT_END

    You can use the New-Timespan cmdlet in the Where clause, it returns the time difference between 2 DateTime objects.

    An example of this cmdley

    New-TimeSpan-start (Get-Date). AddDays(-7)-end (Get-Date). Select days - ExpandProperty

    In your case, you could do

    Where {(New Timespan-démarrer ([DateTime] $_.))} CreatedOn) - end $start7). {7 days - gt}

    But beware of negative numbers.

  • Is there a way to select an area of some of the elements of a csv file and read in LabVIEW?

    Hello everyone, I was wondering if there was a way to select only a certain "box" of the elements of a .csv file in LabVIEW? I have LabVIEW 2011 and my main goal is to take two tables and graphs against each other. I can import the .csv perfectly and separate each line and each column to be his own, but I have a 8 X 8 but want graphic in the middle of 4 X 5 or something like that. Is it possible to extract a table without starting at the beginning and end in the end? Thank you in advance.

    Hi Szklanam,

    as a CSV file is a TXT file with a different suffix, you can read a number of lines in this file. For example, you can limit the number of rows in your table of resultung. To limit the number of columns, you must always use an ArraySubset, so maybe it is much easier to read the complete CSV file and select interesting places with ArraySubset...

  • Anyone has any experience of importing a csv file and store it in a database in MS SQL

    Anyone has any experience of importing a csv file and store it in a database MS SQL. Outside sql injection there is any another converns security?

    Draft of the steps.

    1. use to download the file from the client to the server see
    http://www.dennismiller.TV/index.cfm/2007/12/26/file-upload-using-ColdFusion-and-Flex

    2. use to read the contents of the file into a variable.

    3. perform a loop on the content of variables for each line, dealing with the variable as a list delimited by a newline rather then a comma

    4. use list functions on each line to get the data you need, and then to transmit these data to SQL with CFQUERY or CFPROCPARAM.

  • How can I extract the data from a csv file and insert it into an Oracle table? (UTL_FILE)

    Hi, please help me whit this query

    Im trying to extrate the data in a file csv and im using the ULT_FILE package
    I have this query that read the file and the first field, but if the field has a different length does not work as it should

    For example if I had this .csv file:

    1, book, laptop

    2, pen, Eraser

    3, notebook, paper

    And in the table, I had to insert like this

    ID descrption1 description2

    laptop 1 book

    Eraser pen 2

    paper laptop 3

    For now, I have this query, which displays only with DBMS:

    Declare

    -Variables

    Cadena VARCHAR2 (32767).

    Vfile UTL_FILE. TYPE_DE_FICHIER;

    Dato varchar2 (200);                                             -Date

    dato1 varchar2 (200);

    dato2 varchar2 (200);

    Identifier varchar2 (5): = ', ';                             -Identifier (en)

    v_ManejadorFichero UTL_FILE. TYPE_DE_FICHIER;     -For exceptions

    -Table variables

    I_STATUS GL_INTERFACE. % OF STATUS TYPE.

    I_LEDGER_ID GL_INTERFACE. TYPE % LEDGER_ID;

    I_USER_JE_SOURCE_NAME GL_INTERFACE. TYPE % USER_JE_SOURCE_NAME;

    I_ACCOUNTING_DATE GL_INTERFACE. TYPE % ACCOUNTING_DATE;

    I_PERIOD_NAME GL_INTERFACE. TYPE % PERIOD_NAME;

    I_CURRENCY_CODE GL_INTERFACE. CURRENCY_CODE % TYPE;

    I_DATE_CREATED GL_INTERFACE. DATE_CREATED % TYPE;

    I_CREATED_BY GL_INTERFACE. CREATED_BY % TYPE;

    I_ACTUAL_FLAG GL_INTERFACE. TYPE % ACTUAL_FLAG;

    I_CODE_COMBINATION_ID GL_INTERFACE. TYPE % CODE_COMBINATION_ID;

    I_ENTERED_DR GL_INTERFACE. TYPE % ENTERED_DR;

    I_ENTERED_CR GL_INTERFACE. TYPE % ENTERED_CR;

    I_ACCOUNTED_DR GL_INTERFACE. TYPE % ACCOUNTED_DR;

    I_ACCOUNTED_CR GL_INTERFACE. TYPE % ACCOUNTED_CR;

    I_TRANSACTION_DATE GL_INTERFACE. TRANSACTION_DATE % TYPE;

    I_REFERENCE1 GL_INTERFACE. REFERENCE1% TYPE;

    I_REFERENCE2 GL_INTERFACE. REFERENCE2% TYPE;

    I_REFERENCE3 GL_INTERFACE. REFERENCE3% TYPE;

    I_REFERENCE4 GL_INTERFACE. REFERENCE4% TYPE;

    I_REFERENCE5 GL_INTERFACE. REFERENCE5% TYPE;

    I_REFERENCE10 GL_INTERFACE. REFERENCE10% TYPE;

    I_GROUP_ID GL_INTERFACE. GROUP_ID % TYPE;

    BEGIN

    Vfile: = UTL_FILE. FOPEN ('CAPEX_ENVIO', 'comas.csv', 'R');

    loop

    UTL_FILE. GET_LINE(Vfile,Cadena,32767);

    dato1: = substr (cadena, instr(cadena, identificador,1,1)-1, instr(cadena, identificador,1,1)-1);

    dato2: = substr (cadena, instr (cadena, identifier, 1, 1) + 1, instr(cadena, identificador,3,1)-3);

    dbms_output.put_line (dato1);

    dbms_output.put_line (dato2);

    -The evidence

    -dbms_output.put_line (cadena);

    -dbms_output.put_line (substr (dato, 3, instr(dato, identificador,1,1)-1));

    -dbms_output.put_line (substr (dato, instr (dato, identifier, 1, 2) + 1, instr(dato, identificador,1,1)-1));

    -dbms_output.put_line (substr (cadena, 1, length (cadena)-1));

    end loop;

    UTL_FILE. FCLOSE (Vfile);

    -----------------------------------------------------------------------------------EXCEPTIONS------------------------------------------------------------------------------------------------------------------------------------------------------------

    EXCEPTION

    When no_data_found then

    dbms_output.put_line ('Todo Correcto');

    When utl_file.invalid_path then

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20060,'RUTA DEL ARCHIVO NULLIFIED: (');)

    WHEN UTL_FILE. INVALID_OPERATION THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR ('-20061,'EL ARCHIVO NO PUDO SER ABIERTO ");

    WHEN UTL_FILE. INVALID_FILEHANDLE THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20062, 'INVALIDO MANAGER');

    WHEN UTL_FILE. WRITE_ERROR THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20063, 'ESCRITURA ERROR');

    WHEN UTL_FILE. INVALID_MODE THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20064, 'MODO INVALIDO');

    WHEN UTL_FILE. INTERNAL_ERROR THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20065, 'ERROR INTERNO');

    WHEN UTL_FILE. READ_ERROR THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20066, 'LECTURA ERORR');

    WHEN UTL_FILE. FILE_OPEN THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR ('-20067,'EL ARCHIVO ARE ESTA ABIERTO ");

    WHEN UTL_FILE. THEN ACCESS_DENIED

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20068, 'REFUSED ACCESS');

    WHEN UTL_FILE. DELETE_FAILED THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20069, 'OPERACIÓN BORRADO FALLO');

    WHEN UTL_FILE. RENAME_FAILED THEN

    UTL_FILE. FCLOSE (V_ManejadorFichero);

    RAISE_APPLICATION_ERROR (-20070, 'OPERATION SOBREESCRITURA FALLO');

    END;

    Hello

    Try something like this:

    POS1: = INSTR (cadena, idntificador, 1, 1);
    POS2: = INSTR (cadena, idntificador, 1, 2);

    ID: = SUBSTR (cadena, 1, pos1 - 1);
    description1: = SUBSTR (cadena, pos1 + 1, (pos2 - pos1)-1);
    Description2: = SUBSTR (cadena, pos2 + 1);

    where pos1 and pos2 are numbers.

    Rather than use UTL_FILE, consider creating an external table.  You won't have to write any PL/SQL, and this means that you won't be tempted to write a bad article of EXCEPTION.

  • I also have a .csv file with the name of a jpeg file in a column and a text description of each jpeg format in a second column. Is it possible to automatically insert a jpeg (picture) and its corresponding text, each pair on one page, in an Indesign docum

    I also have a .csv file with the name of a jpeg file in a column and a text description of each jpeg format in a second column. Is it possible to automatically insert a jpeg (picture) and its corresponding text, each pair on one page, in an Indesign document?

    Read about to merge data in the help files.

  • Error importing CSV files with "hidden" characters using the external Table

    Hi people

    Bit of a strange here.

    Well, we are accustomed to the use of the external Table method to load data from CSV files in the database, but a recent event presented us a problem.

    We have received some CSV files that "look like" regular CSV files, but Oracle will not load them.

    When we looked at the CSV using VIM on a UNIX machine, we saw the following characters 'hidden' between each regular character in the file.
    ^@
    If a string that looks like this when opened in Excel/Wordpad etc.
    "TEST","TEXT"
    Looks like this when exmained with VIM
    ^@"^@T^@E^@S^@T^@"^@,^@"^@T^@E^@X^@T^@"
    Has anyone encountered this before?

    Thank you very much

    Simon Gadd
    Oracle 11g 11.2.0.1.0

    Hi Simon,.

    ^ @ represents the ZERO character (0x00).
    So, most likely, you have a file encoded in Unicode.

    You need to specify the character set in the record specification (and if necessary the byte order mark), for example:

    CREATE TABLE ext_table
    (
      col1 VARCHAR2(10),
      col2 VARCHAR2(10)
    )
    ORGANIZATION EXTERNAL
    (
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY dump_dir
      ACCESS PARAMETERS
      (
       RECORDS DELIMITED BY '
    ' CHARACTERSET 'UTF16'
      FIELDS TERMINATED BY ','
      )
      LOCATION ('dump.csv')
    )
    REJECT LIMIT UNLIMITED;
    

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e16536/et_params.htm#i1009499

  • WMM edition error message - ' cannot publish to the specified location. Check the source files and the location is still available and that there is enough disk space. »

    I made a movie of 30 minutes or more in WMM, some of the videos that I imported I had to convert to wmv, to import into WMM. Once I went to publish the movie, after the publication of about 1%, an error message pops up saying something like "cannot publish to the specified location. Check the source files and the location is still available and that there is enough disk space. "I have 8 GB of free space on my hard drive and I tried to burn a cd on a dvd, and save to memory stick, none of them have worked, the same message is displayed even if they have sufficient space available. There is no red x in the videos or photos that I imported, so no files are missing. Some files have been moved when they were converted, but the movie plays well in WMM.  I want to export to is in my documents is therefore always available. I spent hours trying to figure this out and I I still don't know what the problem with it! Help! I've also spent a lot of time to their conversion to avi to see if this helped and the same message appeared again.

    What is the format of your source of debtor files and how did you convert
    TO WMV?

    I can only imagine that you are using Vista Movie Maker 6?

    It's not really about the location... error messages can be very cryptic...
    The error that you mentioned usually appears when the source files in the project
    are damaged or are not fully compatible with Movie Maker and made
    in a movie file cannot continue. In addition, large complex projects can cause
    in this issue.

    In some cases, it may be possible to record in DV - AVI, during registration as
    . WMV fails: the following article explains how to save... Publish it in film...
    6 machine and the graphic link shows where the option:

    Windows Vista - publish a movie in Windows Movie Maker
    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

    The following chart shows where the DV - AVI option.
    http://www.Papajohn.org/IMGs/Vista-PublishToComputerChoices.jpg

    If the recording as long as DV - AVI fails... see the following articles:

    Movie Maker - problem resolution - "cannot record a movie.
    http://www.Papajohn.org/MovieMaker-issues-CantSaveMovie.html

    Windows Movie Maker error
    Cannot complete the Save Movie Wizard
    http://moviemakererror.blogspot.com/

    Several formats are apparently compatible with
    Movie Maker, but the most reliable choices are:

    Photos - bmp
    Video - wmv
    Audio - wav, wma, wmv

    Sometimes, it can help if you are going to... Tools / Options / Compatibility tab...
    and uncheck all filters.

  • How to *. ZIP has *. CSV file in the Oracle Directory?

    Hello! How are you doing guys?

    I have a question;

    How to Zip, a CSV file in the oracle directory?

    I use this method, but a mistake;

    Error; Invalid file operation, this line: utl_file.get_raw (v_arquivo_out, strbufferdd);

    ___The Script___

    v_arquivo_out: = utl_file.fopen ('ORA_DIR',-/ oracle/files/ORA/ORADIR /)

    "DOC. CSV', - file name

    "WORLD BANK");

    UTL_FILE.get_raw (v_arquivo_out, strbufferdd);  <-this line a mistake.

    strbufferdd: = UTL_COMPRESS.lz_compress (strbufferdd, 6);

    V_SDIRECTORY: = TO_CHAR (SYSDATE, ' DD_MM_YYYY_HH24.MI.) SS') | "_RETORNA. ZIP';

    psDsc_File: = v_sDirectory;

    v_arquivo_out2: = utl_file.fopen ('ORA_DIR',-/ oracle/files/ORA/ORADIR /)

    psDsc_File,

    'W');

    -as_zip.

    Utl_File.Put_Raw (v_arquivo_out2, strbufferdd);

    UTL_FILE.fclose (v_arquivo_out);

    UTL_FILE.fclose (v_arquivo_out2);

    ___End SCRIPT___

    Help me?

    Thank you to all the world, I have the solution;

    Please see the procedure;

    CREATE OR REPLACE PROCEDURE 'PR_RELAT_CSV '.

    (

    peCod_Prog in DOCUMENT. Type of Cod_Prog %,

    psDsc_File out varchar2

    )

    IS

    -variaveis para land

    v_arquivo_out utl_file.file_type;

    v_separator varchar2 (1): = "";

    v_sDirectory varchar2 (200);

    src_file BFILE.

    v_content BLOB;

    v_blob_len INTEGER.

    v_file UTL_FILE.file_type;

    v_buffer RAW (32767).

    v_amount directory: = 32767;

    v_pos INTEGER: = 1;

    BEGIN

    -DADOS PREENCHIDOS. ABAIXO, CRIAR PREENCHER E O LAND CSV

    V_SDIRECTORY: = TO_CHAR (SYSDATE, ' DD_MM_YYYY_HH24.MI.) SS') |

    ' _RETORNA. CSV';

    psDsc_File: = v_sDirectory;

    v_arquivo_out: = utl_file.fopen ('ORA_DIR',-/ oracle/files/oradir/ora /)

    psDsc_File,

    'W');

    cabecalho - write

    UTL_FILE.put_line (v_arquivo_out,

    "Organize" | v_separator | ' OPTIONS / Options'.

    v_separator | "AP" | v_separator | "CODE" |

    v_separator | 'Description of the PN | v_separator |

    "Station". v_separator | "Initial SN | v_separator |

    "Final SN | v_separator | 'Note ' | v_separator |

    'Pos ' | v_separator,

    (FALSE);

    -write linhas

    / * n : = 0 ; Contador * /.

    for rec_ (SELECT DISTINCT a.*, d.DSC_ITEM, e.COD_PN_MAT

    OF pcm_subestacao one

    LEFT JOIN (select b.cod_prog,

    c.num_arj,

    c.cod_itens,

    c.DSC_ITEM,

    c.COD_SEST_CONJ

    of pcm_desenho b

    INNER JOIN TABLE (fu_pcm_Combinar_Subestacao ('SYSTEM', b.cod_prog, b.num_arj, 0, null, null, null,)) c

    ON b.num_arj = c.num_arj

    and b.cod_prog = peCod_Prog) d

    ON a.cod_sest_conj = d.cod_sest_conj

    INNER JOIN pcm_mat_geral e

    ON e.cod_cemb_mat = a.cod_cemb_estc

    WHERE a.cod_prog = peCod_Prog

    loop of the order of a.num_arj, num_ns_i, num_ns_fn)

    / * n : = n + 1 ; Contador linhas * /.

    UTL_FILE.put_line (v_arquivo_out,

    Chr (34) | Chr (32) | rec_. NUM_ARJ | Chr (32) |

    Chr (34) | v_separator | Chr (34) | Chr (32) |

    rec_. DSC_ITEM | Chr (32) | Chr (34) | v_separator |

    Chr (34) | Chr (32) | rec_. COD_PN_SEST | Chr (32) |

    Chr (34) | v_separator | Chr (34) | Chr (32) |

    rec_. COD_CEMB_SEST | Chr (32) | Chr (34) |

    v_separator | Chr (34) | Chr (32) | rec_. DSC_PN_SEST |

    Chr (32) | Chr (34) | v_separator | Chr (34) |

    Chr (32) | rec_. COD_PN_MAT | Chr (32) | Chr (34) |

    v_separator | Chr (34) | Chr (32) | rec_. NUM_NS_I |

    Chr (32) | Chr (34) | v_separator | Chr (34) |

    Chr (32) | rec_. NUM_NS_FN | Chr (32) | Chr (34) |

    v_separator | Chr (34) | Chr (32) | rec_. DSC_OBS |

    Chr (32) | Chr (34) | v_separator | Chr (34) |

    Chr (32) | rec_. IND_POS | Chr (32) | Chr (34) |

    v_separator,

    (FALSE);

    end loop;

    UTL_FILE.fclose (v_arquivo_out);

    src_file: = BFILENAME ('ORA_DIR', psDsc_File);

    DBMS_LOB. FileOpen (src_file, dbms_lob.file_readonly);

    v_content: = utl_compress.lz_compress (src_file);

    v_blob_len: = DBMS_LOB.getlength (v_content);

    V_SDIRECTORY: = TO_CHAR (SYSDATE, ' DD_MM_YYYY_HH24.MI.) SS') |

    ' _RETORNA. CSV. ZIP';

    psDsc_File: = v_sDirectory;

    v_file: = utl_file.fopen ('ORA_DIR',-/ oracle/files/ORADIR/ORA /)

    psDsc_File,

    "WORLD BANK");

    Everything v_pos< v_blob_len="">

    DBMS_LOB. READ (v_content, v_amount, v_pos, v_buffer);

    UTL_FILE.put_raw (v_file, v_buffer, TRUE);

    v_pos: = v_pos + v_amount;

    END LOOP;

    UTL_FILE.fclose (v_file);

    EXCEPTION

    WHILE OTHERS THEN

    IF UTL_FILE.is_open (v_file) THEN

    UTL_FILE.fclose (v_file);

    END IF;

    LIFT;

    END PR_RELAT_CSV;

  • import 1 file to the wrong file. How to correct?

    import 1 file to the wrong file. How to correct?

    First of all, make sure that you have backups of all your photos before doing this.

    In Lightroom, drag the folder in the Control Panel folder to the new location of the file where you want it to be.

    Another method: in your operating system, COPY (and not move) the photos where you want them to be. then in Lightroom with the right button on the folder and select the folder location of updated and point to the new location of the photos; Once this does not work, delete pictures from their original location using your operating system.

  • UTL_FILE import csv file

    Hello

    I am writing a procdeure use the utl_file.get_line to read csv files and then proceed to a treatment before inserting data into a table.

    The csv file has four columns. The third column data have a newline when reading the file I get an error value.

    The procedure cannot detect the length of the 3rd field, it cannot detect the 3rd decimal point because this column has a line break.

    To differentiate the length of the column between each ',' part of the code I use is below.

    BEGIN

    Starts: = UTL_FILE. FOPEN ("D:\TEST','CT. CSV', 'R', 32765);

    loop

    UTL_FILE. GET_LINE (starts, input_String);

    delChar varchar2 (1): = ', ';

    -first field
    v_Pos: = instr (input_String, delChar, 1, 1);
    v_lenString: = v_Pos - 1;
    v_compname: = substr(input_String,1,v_lenString);

    v_startPos: = v_Pos + 1;

    -This will get the second field
    v_Pos: = instr (input_String, delChar, 1, 2);
    v_lenString: = v_Pos - v_startPos;
    v_comptype: = substr (input_String, v_startPos, v_lenString);

    v_startPos: = v_Pos + 1;

    -3rd field
    v_Pos: = instr (input_String, delChar, 1, 3);

    v_lenString: = v_Pos - v_startPos;
    v_notes: = substr (input_String, v_startPos, v_lenString);


    v_startPos: = v_Pos + 1;
    -the last land - there is no delimiter for last field
    v_Pos: = length (input_String) + 1;
    v_lenString: = v_Pos - v_startPos;
    v_comptypemodel: = substr (input_String, v_StartPos, v_lenString);

    My csv file looks like this when it is open with notepad ++,.

    CA COOLER VSM 89 E, MSM 89 E, 'EL. AC-MOTOR UNITS.

    ABB WADA 500L2L BSMH 11000V/1720KW/105 A/3584 RPM 60 HZ S1
    COOLING WATER FLOW 12.3 m3/h
    AMBIENT TEMP. 45 DEG", 123421
    ABB WADA 500L2L BSMH 11000, V/1720KW/105 A/3584 RPM 60 HZ, EL S1. AC-MOTOR UNITS. ABB WADA, EL. AC-MOTOR UNITS.

    The value of v_pos = 0 and v_lenSting =-30 for the 3rd field.

    Hope someone can point me in the right direction on how to solve this problem.

    Thanks in advance.

    OK, my apologies, I don't see the real problem you're trying to solve in the first post (it helps us if you format code / data using a font courier etc. in the Advanced Editor)

    Here is the response from Tom Kyte...

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:2818047000346046084

    While there is an option in 11 GR 2 from an external preprocessor allows to process the file (which can be useful for files of decompression etc - see pretreatment: preprocess external Tables) it will probably not help in your case, because you will not easily be able to determine what 'new line' characters to substitute something else for you to make the difference when loading the data.

    Creating the CSV data can be modified to replace the line break characters in text by something else?  or use a different delimiter to the end of line?  That would be the ideal solution.

  • How import us files in the drop box in Photoshop. Thank you

    How import us files in the drop box in Photoshop. Thank you

    Hello

    Click file > open and and browse to the location where the dropbox files.

    Thank you

  • Is it possible to import Raw files into the LR catalog...... including all changes in an external file raw editor such as Capture One?

    Is it possible to import Raw files into the LR catalog...... including all changes in an external file raw editor such as Capture One?

    I can import the Raw file successfully, but can't see all the changes that have been applied in Capture One. IM assuming not, but just to check.

    Your assumption is correct, Capture One, Lightroom and other third party raw processors have their own exclusive process and profiles to render the raw data.

    They do not make permanent changes to the raw data and save changes to a .xmp file or to a Lightroom catalog file.

  • Read the csv file in the Windows directory

    Hi all

    I have a requirement to fill an Oracle table with the CSV file in the Windows directory.
    Please help me to achieve this goal.

    Thank you.

    Published by: Amit1cs on June 4, 2013 08:46

    Then I suggest you mark this thread as answered and repost on the SQL/PLSQL forum. This forum is for Developer SQL related questions.

    Good luck in your task!

  • can not import avi files in the pse12 catalogue

    I was wondering if anyone else is having a problem with import avi (my Nikon D5000 video files) in the catalogue of PSE 12.

    Windows 7 SP1 with all updates.

    The camera is a Nikon D5000

    type of file is AVI

    Whenever I go to import an AVI (my SD card or my HARD drive) Organizer comes up with the message that it has stopped working and windows is looking for a solution.

    I don't shoot much video so it is not a big concern, but it used to work in previous versions of the EP.

    Any help with this issue is appreciated.

    Ray

    I found it does not take much for the organizer of items 12 to shake an organizer of items received to close the message.

    Are you sure that there is one on a relationship between your import .avi files in the catalog and the message?

    I checked online and found that your camera is probably the record to give you the video files in MotionJPEG.avi. This can be a problematic format in time (especially on the forehead of Premiere Elements). Your camera is equipped with a utility that could introduce the video codec? Sometimes it's a draw on the question of whether the video codec is installed compared to the failure of the program to recognize.

    Later.

    RTA

Maybe you are looking for

  • Video rendering error 10008 when using PNG on clip

    As soon as I add a PNG above a video clip, it fails when I try to make. It gives the error code 10008 is. I tried several png. If you add in front of a video, it will work fine. As soon as you try to use the same image over the video (using a logo fo

  • HP 2000 model 2c32N4 main types of replacement for ABC etc.

    What are the main types of replacement for HP 2000 model 2c32N4?

  • HDMI plugged new spectrum HP i5, 4 GB, 128Meg, (WIN 8.1) on television, picture fine but no sound

    Hello.. HP G4X24PA #ABG spectrum, bought a few days ago links in via a cable HDMI to Sony HD TV - picture fine but no sound... tried the Panel, her etc, but no sound HDMI to click and be told by default?   IDT High Definition Audio Codec listed but n

  • Sort the contents of a folder

    I'm organizing my music files. I have files divided, #-C, D - F, and so on. Within these folders, I have folders by artist. I also have mp3 files in these folders. I would like to be able to sort by name, together. It is to sort the files by name, th

  • Delay WRT54G problems

    Can someone help me I'am a time hard, play games online because my wireless router keep because of the delay, but when I connect the cable directly to the pc, I'm not having delays can someone help me on this?