Receive Pipeline In Decoder Stage to Extract Single Or Multiple Files From A Zipped Folder In Biztalk Server 2010

Hi,
I need help in developing a customized pipeline for the Decoder Stage.
Requirement : Extract single or multiple files from a zipped folder with any format and extension (X12/EDIFACT/Flat/XML) and send to Disassemble stage for further action.
Need Urgent help.
Any suggestion or help is much appreciated.
Thanks & Best Regards

Hi Siddharth,
Have look at article: BizTalk Server 2010: Processing Zip Message Having Multiple Type
Files and http://tech-findings.blogspot.com/2013/10/custom-zipreceivepipeline-to-unzip.html
Maheshkumar S Tiwari|User
Page|Blog|BizTalk
Server : Scheduling Orchestration using Trigger Message

Similar Messages

  • MulticastSocket Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
              I need some help.
              Product=weblogic5.1.0
              Revision=(Release Level)=
              Problem Description=
              I am doing cluster of weblogic server, I have no problem to set up the
              cluster and to run servlet and EJB examples.
              However, on my command line for startcluster I got a lot of message as
              followed:
              Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
              error: java.lang.RuntimeException: I/O error opening JAR file from
              file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              .java, Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              , Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              StreamBase.java, Compiled Code)
              at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              The message freshed about every 20 seconds.
              Another question, I used a iplanet web server as a proxy server with a
              cluster of two weblogic servers pluged in, although I set
              weblogic.properties to round-robin, however, when I run a fibonacci servlet,
              it does not do the round-robin. It always go to one machine for a lot of
              times. Any idea?
              Thank you for your help.
              Tom
              

    May i presume that your cluster is configured on a shared file system?.
              I have seen this problem only if you cluster is configured on different machines
              and if the directory structure is not identical.
              let us know..
              Kumar
              Cameron Purdy wrote:
              > First, update to SP4 (or SP5 if it is out now). Second, follow the cluster
              > instructions on setting up deployments for a cluster. The only
              > implementation that I have used is the single shared location that all the
              > servers load from.
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              > "Tom Gan" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > > I need some help.
              > >
              > > Product=weblogic5.1.0
              > > Revision=(Release Level)=
              > > Problem Description=
              > > I am doing cluster of weblogic server, I have no problem to set up the
              > > cluster and to run servlet and EJB examples.
              > > However, on my command line for startcluster I got a lot of message as
              > > followed:
              > > Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket
              > receive
              > > error: java.lang.RuntimeException: I/O error opening JAR file from
              > > file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              > > java.util.zip.ZipException: error in opening zip file
              > > at java.util.zip.ZipFile.open(Native Method)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              > > Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              > > .java, Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              > > , Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              > > StreamBase.java, Compiled Code)
              > > at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              > > Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > > Code)
              > >
              > > The message freshed about every 20 seconds.
              > >
              > > Another question, I used a iplanet web server as a proxy server with a
              > > cluster of two weblogic servers pluged in, although I set
              > > weblogic.properties to round-robin, however, when I run a fibonacci
              > servlet,
              > > it does not do the round-robin. It always go to one machine for a lot of
              > > times. Any idea?
              > > Thank you for your help.
              > > Tom
              > >
              > >
              > >
              

  • I can't extract the msi and files from the 11.0.02.exe it is asking for a password!

    I can't extract the msi and files from the 11.0.02.exe it is asking for a password!!!!  Help

    From where did you download the exe?
    How exactly are you trying to extract it?

  • How to extract single file from multipart zip archives?

    Hello,
    I have a 10 parts of zip files that contains single file. When I extracted these, each program taking an action seperatly to each parts and gave me 10 files in a different folders. In a Windows, it is so simple. Winzip,winrar automaticaly discovering that are the parts of a single file and give me that.
    My question is simple: How to extract single file from a multipart zip/rar archives ?
    I know a way in "Terminal" but it is not comfortable for big parts.

    I tried with UnArchiver but it extracted each file seperately like showen in a photo

  • Extract files from a zip file

    Here is my scenario:
    I have a zip file, DataStore.zip, which as two layers of zip files.
                                         DataStore.zip
                                               |
               01.zip       02.zip         03.zip      04.zip etc
                                 |
                     02a.zip          02b.zip         02c.zip        
     etc
                         |
                cert1.zip   cert2.zip     cert3.zip     etc
    I need to search for  any cert.zip embedded at layer3, for which I have written the following program.
    I have two issues. First one is, when the files at level 1 (01.zip etc are written to the disk folder c:\ extract, it doesn't allow me to read back from that folder., I get "access to path c:\extract is denied". I researched and found that this
    is a security issue with windows 8 and 7. ( I tried both versions). How can I overcome this?
    second issue is, if in the  first read cycle  it fails with "unknown block type, stream may be corrupted", I need to bypass that corrupted zip file and continue, until I get my target file.
    The code is give below. Appreciate any help.. Thanks.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.IO;
    using System.IO.Compression;
    namespace TPMCert
    {   // Utility to copy a TPM certificate from the master file.
        public partial class Form1 : Form
            public Form1()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
            private void btnSelDrv_Click(object sender, EventArgs e)
                if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
                    string filePath1 = this.folderBrowserDialog1.SelectedPath; //
                    this.txtDrv.Text = filePath1;
            }//btnselDrv
            private void btnTpmReq_Click(object sender, EventArgs e)
                    OpenFileDialog openFile1 = new OpenFileDialog();
                    if (openFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                        txtRqstFileName.Text = openFile1.FileName.Remove(0, 3); //remove first 3 chars which is c:/ etc
            private void btnGo_Click_1(object sender, EventArgs e)
                    string zPath = txtDrv.Text + "\\" +"TpmDataStore.zip"; //drive & filename to to search.....
                    string extractPath= txtDrv.Text
    +@"\extract";
                    string extractPath2 = txtDrv.Text + @"\extract\certs";
                    string copyPath = txtDrv.Text; // location of the tpm certificate finall written to..
                    bool filefound = false;
                     //look for the file. read only allowed...
                   // try
                        using (ZipArchive archive = ZipFile.OpenRead(zPath)) //open Tpm file for reading
                            txtInfo.AppendText("Processing ....  Please wait!" + "\n");
                            Cursor.Current = Cursors.WaitCursor; //busy cursor
                            foreach (ZipArchiveEntry zEntry in archive.Entries) //each top level zip file is written to \extract dir
                                zEntry.ExtractToFile(Path.Combine(extractPath, zEntry.FullName), true); //true- overwrite
                                txtInfo.AppendText(" First write passed...");
                                //next iterate thro' all zip files in \extract dir
                               using (ZipArchive archive2 =ZipFile.Open(extractPath, ZipArchiveMode.Update)) //read files in extract
                                   foreach (ZipArchiveEntry childEntry in archive2.Entries)
                                       childEntry.ExtractToFile(Path.Combine(extractPath2,
    childEntry.Name), true); //true- overwrite
                                       MessageBox.Show(childEntry.Name);
                                       txtInfo.AppendText(" Second cycle....");
                                       if (childEntry.Name == txtRqstFileName.Text)
                                               filefound
    = true; //
                                               //MessageBox.Show(zEntry.FullName);
                                               txtInfo.AppendText("Found
    file " + childEntry.Name + "\n");
                                               txtInfo.AppendText("File
    copied as " + copyPath + "\\" + childEntry.Name + "\n");
                                }//second using..
                            }//foreach
                            if (filefound == false ) // given file is not there
                                txtInfo.AppendText("File not found" +  "\n");
                        }//using
                    }//try
                       // catch (Exception ex)
                               // MessageBox.Show(" Error:" + "\n" + ex.Message);
                                return;
                             //finally
                            { Cursor.Current = Cursors.Default;
                // next
            } //btnGo..
        }//class form1
    }//namespace

    Hi friend,
    We'd better to ask one question in each thread. If you have another issue, you can consider to open up a new thread in this forum.
    Now for the first question, do you mean this picture? It throws access exception in archive2.
    If so , because your extractPath is a path, not a directory.You should add +"xxx.zip". For more information, please refer to
    ZipFile.Open
    Method (String, ZipArchiveMode).
    For the second question, you can use the following code to skip the error message.
    while (true)
    try
    //do something;
    catch (Exception ex)
    { continue; }
    Good day!
    Kristin
    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.
    Click
    HERE to participate the survey.

  • Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
    I need some help.
    Product=weblogic5.1.0
    Revision=(Release Level)=
    Problem Description=
    I am doing cluster of weblogic server, I have no problem to set up the
    cluster and to run servlet and EJB examples.
    However, on my command line for startcluster I got a lot of message as
    followed:
    Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
    error: java.lang.RuntimeException: I/O error ope
    ning JAR file from
    file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
    Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
    .java, Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
    , Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
    StreamBase.java, Compiled Code)
    at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
    Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    The message freshed about every 20 seconds.
    Another question, I used a iplanet web server as a proxy server with a
    cluster of two weblogic servers pluged in, although I set
    weblogic.properties to round-robin, however, when I run a fibonacci servlet,
    it does not do the round-robin. It always go to one machine for a lot of
    times. Any idea?
    Thank you for your help.
    Tom

    Hi,
    I need some help.
    Product=weblogic5.1.0
    Revision=(Release Level)=
    Problem Description=
    I am doing cluster of weblogic server, I have no problem to set up the
    cluster and to run servlet and EJB examples.
    However, on my command line for startcluster I got a lot of message as
    followed:
    Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
    error: java.lang.RuntimeException: I/O error ope
    ning JAR file from
    file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
    at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
    Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
    .java, Compiled Code)
    at
    weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
    , Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
    StreamBase.java, Compiled Code)
    at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
    Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
    jectInputStreamBase.java, Compiled Co
    de)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
    treamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
    tStreamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
    eamBase.java, Compiled Code)
    at
    weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
    treamBase.java, Compiled Code)
    at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    The message freshed about every 20 seconds.
    Another question, I used a iplanet web server as a proxy server with a
    cluster of two weblogic servers pluged in, although I set
    weblogic.properties to round-robin, however, when I run a fibonacci servlet,
    it does not do the round-robin. It always go to one machine for a lot of
    times. Any idea?
    Thank you for your help.
    Tom

  • Insert multiple files from a single form

    i'm trying to create a form to allow users to upload and attribute 10 image files at once to a single table. i followed the howto document:
    http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.html#MANUAL
    and was able to create a form w/ten blank rows for insertion. however, the htmldb_item package that is used to write out the form controls does not provide an api to write out a file browse form control. is there another api i can use? if not is there a known kludge?

    Scott,
    i modified your suggestion and came up w/a more straight forward solution. here's the complete solution...
    1. create a report based on a sql query:
    select
    x.IMG_SKEY
    ,x.IMG_TITLE_TX
    ,x.IMG_SRCH_KEYWORDS_TX
    ,x.file_browse
    ,x.CATEGORY_CD
    from
    (select
    htmldb_item.hidden(1,IMG_SKEY) img_skey
    ,htmldb_item.text(2,IMG_TITLE_TX,12) img_title_tx
    ,htmldb_item.text(3,IMG_SRCH_KEYWORDS_TX,12) img_srch_keywords_tx
    ,'<input type="file" name="f50" size="30">' file_browse
    ,htmldb_item.select_list_from_query(4,null,'select category_name_tx , category_cd from image_categories order by 1',null,'NO',null,null,null,null,'NO') CATEGORY_CD
    from "#OWNER#"."IMAGES"
    where rownum < 0
    union all
    select
    htmldb_item.hidden(1,null) img_skey
    ,htmldb_item.text(2,null,12) img_title_tx
    ,htmldb_item.text(3,null,12) img_srch_keywords_tx
    ,'<input type="file" name="f50" size="30">' file_browse
    ,htmldb_item.select_list_from_query(4,null,'select category_name_tx, category_cd code_value from image_categories order by 1',null,'NO',null,null,null,null,'NO') CATEGORY_CD
    from dual
    union all
    select
    htmldb_item.hidden(1,null) img_skey
    ,htmldb_item.text(2,null,12) img_title_tx
    ,htmldb_item.text(3,null,12) img_srch_keywords_tx
    ,'<input type="file" name="f50" size="30">' file_browse
    ,htmldb_item.select_list_from_query(4,null,'select category_name_tx, category_cd code_value from image_categories order by 1',null,'NO',null,null,null,null,'NO') CATEGORY_CD
    from dual
    note: union the null selects to get as many null rows as you want. i named the file control f50 to avoid conflicts. this control name is an array parameter in the wwv_flow.accept procedure that the form submits to. also, i unioned the null selects to the original table query which fetches no rows. this probably isn't necessary, but i left it in from the original example and had it select nothing because i wasn't sure if htmldb refrenced the column datatypes at all.
    2. create a page item with the same name as your file control(f50) and change the display = never.
    question: Scott, can you give me some insight into why you need this page item for the files to be uploaded. the files won't upload w/o the page item.
    3. create a submit button which submits the page to itself. *make sure the button "database action = SQL INSERT action" or your files will not be uploaded to the wwv_flow_file_objects$ table
    4. create a process to handle the processing of the form:
    process point - after computations and validations
    run process - once per page visit(default)
    process:
    declare
    v_img_skey number;
    begin
    for i in 1..htmldb_application.g_f50.count
    loop
    if htmldb_application.g_f50(i) is not null then
    begin
         select universal_seq.nextval
         into v_img_skey
         from dual;
    insert into images(
    img_skey
    ,img_title_tx
    ,img_srch_keywords_tx
    ,icat_category_Cd
    ,img_owner_name_tx
    ,img_last_updated_dt
    values(
    v_img_skey
    ,htmldb_application.g_f02(i)
    ,htmldb_application.g_f03(i)
    ,htmldb_application.g_f04(i)
    ,:APP_USER
    ,sysdate
    end;
    end if;
    end loop;
    end;
    note: the value returned from the array htmldb_application.g_f50(i) will be the internal name of the file uploaded. i stripped down my code and removed the sections that move the file from flows_files.wwv_flow_file_objects$ into an image object and inserts it into my custom table, but anyone can use the technical notes on otn and metalink to figure it out.

  • Extract an embedded pdf file from xml in ADF

    Hi,
    I have a xml file containing an embedded pdf like below
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <dbtx>
    <response>
    <transaction_rs>
    <EMBEDDED_FILE>
    <DOCUMENT>
    JVBERi0xLjMKJaqrrK0KNCAwIG9iago8PCAvVHlwZSAvSW5mbwovUHJvZHVjZXIgKG51bGwpID4+CmVuZG9iago1IDAgb2JqCjw8IC9MZW5ndGggMTQzOCAvRmlsdGVyIC9GbGF0ZURlY29kZSAKID4+CnN0cmVhbQp4nK1Y23LiRhB95yv0tPFWzOzcR/OILxBSvgXIVqVCHmQsE1WB5Mhia8tfnyOEpJG4KVvZfTAW6nO6e/p09/hq1rud9f7pMY8Sn+KfRz0vXXrNB5OR11NEa+sZLYhW0mOSESO419eKCKO8NPSee7/1rjrDMWmIpKwCNPhe6x/H48wnXJsKTzBGfMaOAeZ2FA7kCFvAxoNtvIISavwKUGmi7dGALV7OETyVf9jlinEiYblY976M18y7Sf6fiJRpefBlyDymwDt77eX0swXCWeaI+M+8CkhaInzpzdbenxc3n64+e31ufLx/cbtJk7cwiOsn18n6LVhkn72/vNmv/9ljbokx1mPWJ5Irr88E+YEjlaxIeQUHGOHvw+Xh61307WPdywGXxDesyMEkeHtL0iypw/4WvW+CVfTxERRPhcqTLqR3QXX9VrB0TDhldJemPTL8ZHxH9rBZh6lj9xI5gM/PSRysw7hg5RRFtmWd3A77Gb5wz6HM0rL6NCrFSTXhSJTyGWHQVj8HP1f4hanWmiiOHEvCjPBYYfjqVviuwG1V39qg5kBX1Ddv1vf+SVjiS14RKfy0OWGDaVvJsjjLOpuFocHJcVMkc/yCXEWv0SL4iJI4rDP5qf44TdbrII2SXe6+DBEWbULjcIXwPS0FKGwBfTUZ3PxRo4xng7vxwEGd3LVOuwTBYSu7A3kK4iQN1vDPQYpf8HuWpFGzCA6CUWi89GgSvS/+
    </DOCUMENT>
    </EMBEDDED_FILE>
    </response>
    </transaction_rs>
    </dbtx>Requirement: I want to extract the pdf from xml and store it in local drive. How can I do this in java?
    Jdev : 11.1.1.3
    Any help will be appriciated.
    ~Abhijit

    I have made this procedure to convert the input clob to a decoded base 64 binary, i then obtain a pdf file but its' corrupted or damaged.
    any ideas?
    thks guys.
    Andrea
    create or replace FUNCTION c2b_64( c IN CLOB ) RETURN BLOB
    -- typecasts CLOB to BLOB (binary conversion)
    IS
    pos PLS_INTEGER := 1;
    buffer RAW( 32767 );
    buffer64 RAW( 32767 );
    res BLOB;
    lob_len PLS_INTEGER := DBMS_LOB.getLength( c );
    BEGIN
    DBMS_LOB.createTemporary( res, TRUE );
    DBMS_LOB.OPEN( res, DBMS_LOB.LOB_ReadWrite );
    LOOP
    buffer := UTL_RAW.cast_to_raw( DBMS_LOB.SUBSTR( c, 78, pos ) );
    buffer64 := UTL_ENCODE.base64_decode (buffer);
    IF UTL_RAW.LENGTH( buffer64 ) > 0 THEN
    DBMS_LOB.writeAppend( res, UTL_RAW.LENGTH( buffer64 ), buffer64 );
    END IF;
    pos := pos + 78;
    EXIT WHEN pos > lob_len;
    END LOOP;
    RETURN res; -- res is OPEN here
    END c2b_64;

  • How to Upload Multiple Files from a folder at a single go?

    Hi friends,
    My requriment is to Upload many txt or excel files in a single shot.
    If its a single file i can upload through Ws_upload or Gui_upload.
    in the same way is there any function modules to upload many files at a time.
    Regards
    Venkatesh.S

    Hi Venkatesh,
    Try this code..
    data: l_filename type string OCCURS 0 WITH HEADER LINE.
    l_filename = 'c:\temp1.xls'.
    APPEND L_FILENAME
    l_filename = 'c:\temp2.xls'.
    APPEND L_FILENAME
    LOOP AT L_FILENAME
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = l_filename
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = '#'
    TABLES
    DATA_TAB = itab1.
    OPEN DATASET <applicationfilename> FOR OUTPUT IN TEXT MODE.
    IF sy-subrc = 0.
    LOOP AT ITAB1
    TRANSFER ITAB1 TO pt_infil .
    ENDLOOP.
    ENDIF.
    CLOSE DATASET pt_infil.
    ENDLOOP.
    OR
    use CL_GUI_FRONTEND_SERVICES->DIRECTORY_LIST_FILES
    Regards,
    Goutham.

  • Change on input to cater for single and multiple files?

    This script currently allows me to drop a single file on to the droplet and it processes it, I would like to be able to drop 1 or more items on it at the same time.
    How can I get it to do all that are dropped on the droplet please?
    Matt
    property type_list : {"8BPS"}
    property extension_list : {"psd"}
    script o
              property theseNames : {}
    end script
    on open this_item
              set thefile to this_item as text
              tell application "Finder" to set TheName to (name of file thefile) --> the name
              set the1stLetter to the first character of TheName --> the first letter
              set the2ndLetter to the second character of TheName --> the first letter
              set brandInitial to {the1stLetter, the2ndLetter} as text
              if brandInitial is equal to "BH" then ¬
                        set brandName to "BH"
              if brandInitial is equal to "AL" then ¬
                        set brandName to "BH"
              if brandInitial is equal to "SM" then ¬
                        set brandName to "BH"
              if brandInitial is equal to "BU" then ¬
                        set brandName to "Bu"
              if brandInitial is equal to "ES" then ¬
                        set brandName to "Dai"
              if brandInitial is equal to "DV" then ¬
                        set brandName to "DIV"
              if brandInitial is equal to "DJ" then ¬
                        set brandName to "Dons"
              if brandInitial is equal to "RA" then ¬
                        set brandName to "Dons"
              if brandInitial is equal to "FR" then ¬
                        set brandName to "Free"
              if brandInitial is equal to "GT" then ¬
                        set brandName to "Inter"
              if brandInitial is equal to "CW" then ¬
                        set brandName to "Inter"
              if brandInitial is equal to "MA" then ¬
                        set brandName to "Mata"
              if brandInitial is equal to "MC" then ¬
                        set brandName to "Mata"
              if brandInitial is equal to "FI" then ¬
                        set brandName to "Mata"
              if brandInitial is equal to "MF" then ¬
                        set brandName to "Mata"
              if brandInitial is equal to "MB" then ¬
                        set brandName to "Mata"
              if brandInitial is equal to "MH" then ¬
                        set brandName to "Mata"
              if brandInitial is equal to "NN" then ¬
                        set brandName to "Nord
              if brandInitial is equal to "TM" then ¬
                        set brandName to "Top"
              if brandInitial is equal to "WA" then ¬
                        set brandName to "Wallis"
              if brandInitial is equal to "PR" then ¬
                        set brandName to "Press"
              set weekNumber to ""
              display dialog "Please enter the week number:" default answer weekNumber
              set weekNumber to text returned of result
              try
                        if weekNumber = "" then error
                        set theWeekNumber to theWeekNumber as number
              on error
                        set thePrefix to "INVALID ENTRY! "
              end try
      --Folder location Setup
              set this_local_folder to "Images:2012-2013"
              set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
              set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
              set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
              set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2013:"
              set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
              set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
      --all files for website
              set website_images to "DCKGEN:Website_Images:"
      --set up names to destination folders and create over Network for FTP collection (based on a mounted drive)
              set this_ftp_folder to "Impulse:"
              set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
              set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
              set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
              set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
      --set theFolder to eachItem as string -- I think this is the line that could be causing the problem.
      --taking the folder identify which process it must follow.
              if brandName is equal to "BH" then
                        tell application "Adobe Photoshop CS5.1"
      -- I remove the command activate, Photoshop stay in background
                                  set ruler units of settings to pixel units
                                  try
      open (alias thefile) showing dialogs never
                                            set origName to name of current document
                                            set myOptions to {class:JPEG save options, quality:12}
                                            set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                            tell current document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                      if (quick mask mode) then delete channel ¬
                                                                "Quick Mask"
      --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                      if (exists layer "Original Layer") then ¬
                                                                tell layer "Original Layer" to set name to "Original Image"
      save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                      (delete layer "Original Image") flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
      --get file path, return path of the JPEG file, work with (without copying)
      -- (with copying) : it return path of PSD file
                                                      set newFile to file path --( return path of type alias )
      -- duplicate file using the Finder  -->on duplicateFile(..)
                                                      my duplicateFile(newFile, {ftpBrandFolder_High_Res})
      --Prepare for Low RES by resetting image history
                                                      set current history state to history state 3
      flatten
      resize image width 1348
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options {amount:50, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                      set newFile to file path
                                                      set newFile2 to newFile as string -- for testing end of name
                                                      if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "_11.jpg" then -- exclude website_images
                                                                my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                      else
                                                                my duplicateFile(newFile, {ftpBrandFolder_Low_Res, website_images})
                                                      end if
      close saving no
                                            end tell
                                  end try
                                  do shell script "afplay /System/Library/Sounds/Glass.aiff"
                                  tell application "System Events"
                                            tell application processes
      key code 28 using {command down, option down, shift down}
                                                      delay 0.05
      key code 28 using {command down, option down, shift down}
                                            end tell
                                  end tell
                        end tell
      --End BH
      --taking the folder identify which process it must follow. B U
              else if brandName is equal to "Bur" then
      --    B U R    Folder Photoshop Process
              else if brandName is equal to "Press" then
      --    P R E S S     Folder Photoshop Process
    --Do some photoshop stuff
      --End P R E S S
              end if
    end open
    --then the next etc.
    on duplicateFile(tFile, foldersPath) -- tFile is an alias, foldersPath is a list of folder
              tell application "Finder" to repeat with folderPath in foldersPath
                        with timeout of 200 seconds -- adjust it,  error if the copy  is longer that 200 seconds
      duplicate tFile to folder folderPath with replacing
                        end timeout
              end repeat
    end duplicateFile
    on getFolderPath(tName, folderPath)
              tell application "Finder" to tell folder folderPath
                        if not (exists folder tName) then
                                  return (make new folder at it with properties {name:tName}) as string
                        else
                                  return (folder tName) as string
                        end if
              end tell
    end getFolderPath

    here is the whole thing I tried shortening the script to post I think thats how the " got dropped
    property type_list : {"8BPS"}
    property extension_list : {"psd"}
    script o
              property theseNames : {}
    end script
    on process(this_item)
              set thefile to this_item as text
              tell application "Finder" to set TheName to (name of file thefile) --> the name
              set the1stLetter to the first character of TheName --> the first letter
              set the2ndLetter to the second character of TheName --> the first letter
              set brandInitial to {the1stLetter, the2ndLetter} as text
              if brandInitial is equal to "BH" then ¬
                        set brandName to "BHS"
              if brandInitial is equal to "AL" then ¬
                        set brandName to "BHS"
              if brandInitial is equal to "SM" then ¬
                        set brandName to "BHS"
              if brandInitial is equal to "BU" then ¬
                        set brandName to "Burton"
              if brandInitial is equal to "ES" then ¬
                        set brandName to "DaisyAndEve"
              if brandInitial is equal to "DV" then ¬
                        set brandName to "DIVA"
              if brandInitial is equal to "DJ" then ¬
                        set brandName to "DorothyPerkins"
              if brandInitial is equal to "RA" then ¬
                        set brandName to "DorothyPerkins"
              if brandInitial is equal to "FR" then ¬
                        set brandName to "Freedom"
              if brandInitial is equal to "GT" then ¬
                        set brandName to "International"
              if brandInitial is equal to "CW" then ¬
                        set brandName to "International"
              if brandInitial is equal to "MA" then ¬
                        set brandName to "Matalan"
              if brandInitial is equal to "MC" then ¬
                        set brandName to "Matalan"
              if brandInitial is equal to "FI" then ¬
                        set brandName to "Matalan"
              if brandInitial is equal to "MF" then ¬
                        set brandName to "Matalan"
              if brandInitial is equal to "MB" then ¬
                        set brandName to "Matalan"
              if brandInitial is equal to "MH" then ¬
                        set brandName to "Matalan"
              if brandInitial is equal to "NN" then ¬
                        set brandName to "Nordstrom"
              if brandInitial is equal to "TM" then ¬
                        set brandName to "TopMan"
              if brandInitial is equal to "AL" then ¬
                        set brandName to "BHS"
              if brandInitial is equal to "WA" then ¬
                        set brandName to "Wallis"
              if brandInitial is equal to "PR" then ¬
                        set brandName to "Press"
              set weekNumber to ""
              display dialog "Please enter the week number:" default answer weekNumber
              set weekNumber to text returned of result
              try
                        if weekNumber = "" then error
                        set theWeekNumber to theWeekNumber as number
              on error
                        set thePrefix to "INVALID ENTRY! "
              end try
      --Folder location Setup
              set this_local_folder to "Images:2012-2013"
              set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
              set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
              set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
              set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2013:"
              set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
              set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
      --all files for website
              set website_images to "DCKGEN:Website_Images:"
      --set up names to destination folders and create over Network for FTP collection (based on a mounted drive)
              set this_ftp_folder to "Impulse:"
              set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
              set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
              set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
              set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
      --set theFolder to eachItem as string -- I think this is the line that could be causing the problem.
      --taking the folder identify which process it must follow.
              if brandName is equal to "BHS" then
                        tell application "Adobe Photoshop CS5.1"
      -- I remove the command activate, Photoshop stay in background
                                  set ruler units of settings to pixel units
                                  try
      open (alias thefile) showing dialogs never
                                            set origName to name of current document
                                            set myOptions to {class:JPEG save options, quality:12}
                                            set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                            tell current document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                      if (quick mask mode) then delete channel ¬
                                                                "Quick Mask"
      --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                      if (exists layer "Original Layer") then ¬
                                                                tell layer "Original Layer" to set name to "Original Image"
      save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                      (delete layer "Original Image") flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
      --get file path, return path of the JPEG file, work with (without copying)
      -- (with copying) : it return path of PSD file
                                                      set newFile to file path --( return path of type alias )
      -- duplicate file using the Finder  -->on duplicateFile(..)
                                                      my duplicateFile(newFile, {ftpBrandFolder_High_Res})
      --Prepare for Low RES by resetting image history
                                                      set current history state to history state 3
      flatten
      resize image width 1348
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options {amount:50, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                      set newFile to file path
                                                      set newFile2 to newFile as string -- for testing end of name
                                                      if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "_11.jpg" then -- exclude website_images
                                                                my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                      else
                                                                my duplicateFile(newFile, {ftpBrandFolder_Low_Res, website_images})
                                                      end if
      close saving no
                                            end tell
                                  end try
                                  do shell script "afplay /System/Library/Sounds/Glass.aiff"
                                  tell application "System Events"
                                            tell application processes
      key code 28 using {command down, option down, shift down}
                                                      delay 0.05
      key code 28 using {command down, option down, shift down}
                                            end tell
                                  end tell
                        end tell
      --End BH
      --taking the folder identify which process it must follow. B U R T O N
              else if brandName is equal to "Burton" then
      --    B U R T O N    Folder Photoshop Process
                        tell application "Adobe Photoshop CS5.1"
      -- I remove the command activate, Photoshop stay in background
                                  set ruler units of settings to pixel units
                                  try
      open (alias thefile) showing dialogs never
                                            set origName to name of current document
                                            set myOptions to {class:JPEG save options, quality:12}
                                            set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                            tell current document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                      if (quick mask mode) then delete channel ¬
                                                                "Quick Mask"
      --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                      if (exists layer "Original Layer") then ¬
                                                                tell layer "Original Layer" to set name to "Original Image"
      save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                      (delete layer "Original Image") flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
      --get file path, return path of the JPEG file, work with (without copying)
      -- (with copying) : it return path of PSD file
                                                      set newFile to file path --( return path of type alias )
      -- duplicate file using the Finder  -->on duplicateFile(..)
                                                      my duplicateFile(newFile, {ftpBrandFolder_High_Res})
      --Prepare for Low RES by resetting image history
                                                      set current history state to history state 3
      flatten
      resize image width 1020
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                      set newFile to file path
                                                      set newFile2 to newFile as string -- for testing end of name
                                                      if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "_11.jpg" then -- exclude website_images
                                                                my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                      else
                                                                my duplicateFile(newFile, {ftpBrandFolder_Low_Res, website_images})
                                                      end if
      close saving no
                                            end tell
                                  end try
                                  do shell script "afplay /System/Library/Sounds/Glass.aiff"
                                  tell application "System Events"
                                            tell application processes
      key code 28 using {command down, option down, shift down}
                                                      delay 0.05
      key code 28 using {command down, option down, shift down}
                                            end tell
                                  end tell
                        end tell
      --End B U R T O N

  • How to extract data into excel file from more than one internal table

    Hi Guys
                 I want to extract the data from module pool screen.
                 In screen there are two internal tables
                      1. header
                      2. items.
                 I want to extract the data as same format looking in the screen.
                 With simple Download FM we cannot do this one, because in this we   will display as continuous rows.
    <b> But my requirement is saving as table with heading, date, header details</b>
    Note that it is not the simple down load . Suggest me with example  coding

    Hi Guys,
      I think it depends on which software you will use to see the result.
      If U are using Excel, it's very easy to achieve it.
      1. Define a structure as string, the lenth depend on your need.And use the structure to define a internal table, supposed is as A..
      2. Concatenate the head data using some separator, for ex. a comma; and then add this into A.
      3. The above step's concatenate is depend on your format for request;For ex, you want to place the date at the 4th cell in excel, that means you should put three separator before the date field.
      4 Concatenate the item data into the download table.
      5. Download the table to file.
      6. Display the file, using your defined separator.
    Hope this helpful.
    Bob

  • Call Multiple Files From Single ColdFusion Scheduled Task

    Our host only allows us to have 5 scheduled tasks per account but we need to run cfml applications to import data for multiple sites (at least 15 processes).  What I'd like to do is combine all the 'sample requests' for all sites into ONE scheduled task that will run them one after another thus cutting back on the number of scheduled tasks needed.
    We're using ColdFusion to connect to a MySQL DB to gather all sample requests. First the app retrieves all the unflagged records from a remote db then begins looping through all the returned records. On the each loop, the app 'scrubs' the data by properly formatting phone numbers, fixing address abbreviations, etc. Next the app saves the scrubbed data to a local MS SQL table then starts the loop over on the next row. Lastly the app sends out an email saying it has completed successfully.
    What I'm trying to do is Create a New Parent App that will run as a scheduled task to do the following:
    - New Parent App Runs as Scheduled Task and calls/includes first of X sample request app files
    - New Parent App runs first sample request app as described above (which can take up to a minute to process)
    - Parent app waits until after first sample request app completes, then Parent App goes on to second sample request app, etc.
    - After all sample requests are complete New App sends completion email with date and time
    The problem I'm having is getting the scheduled task to wait for apppage1.cfm to finish before loading apppage2.cfm and so on. Can you give me a simple codeset that accomplishes this?
    I've attached a sample of the include page the needs to complete before moving on!

    Our approach is a bit more comprehensive.
    First, we (meaning my co-workers) wrote a custom tag that does something like this:
    <cftry>
    <cfinclude the template>
    <cfcatch>
    log any errors
    Then our actual scheduled job go like this:
    set a really long timeout (and none of the actual jobs can have their own timeout)
    set some variables
    use the custom tag for each job we want to run
    send mail if any errors occurred.

  • Downloading multiple files from a site with single request?

    Interesting Scenario:
    User clicks on check boxes indicating which files they want to download from a site, then clicks a "Download" button. Is there a way (other than ZIPPING them) to download each file individually to the directory they specify?
    We have a reason for wanting individual files, instead of one lumped ZIP.
    We use Java for our appserver and JSPs for our pages.

    User clicks on check boxes indicating which files
    they want to download from a site, then clicks a
    "Download" button. Is there a way (other than
    ZIPPING them) to download each file individually to
    the directory they specify?I would think the answer is "no", since HTTP is request, response (1 response) and don't know how you'd get that one response to be "here are 2 files for the user to save to one directory".

  • How to upload multiple files into a server location at a single time

    Hi All,
    In my application i need to send multiple files from a particular page into the server location. In this page there will be an option to upload a file and after selecting the file , we will have an option asking if we were interested to send another file. It works just similar to google mail where we can multiple files at the same time. Right now though i had coded the uploading files concept i am facing some problems when trying to upload multiple files. All the files are being appended to a single file but i want them to be placed as different files at the specified location. Plz help me in this regard...
    Thanks in advance................,,

    Hi,
    i am sending the code in my prg. Have a look at it.
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ),3);
    In the above line i am specyfying that the maximum no. of files to be uploaded is 3. So if i upload less than 3 files, the program doesn't work and is not reading the uploaded files. If i upload 3 files it works fine. So please suggest me how to make this work irrespective of the no. of files uploaded using apache commons.
    My code is as follows:
    <form action="./servlet/Sample" method = "post" enctype="multipart/form-data">
         <!-- The file element -- NOTE: it has an ID -->
         <input id="my_file_element" type="file" name="file_1" >
         <input type="submit" name="submit1" value="submit">
    </form>
    Files:
    <!-- This is where the output will appear -->
    <div id="files_list"></div>
    <script>
         <!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->
         var multi_selector = new MultiSelector( document.getElementById( 'files_list' ),3);
         <!-- Pass in the file element -->
         multi_selector.addElement( document.getElementById( 'my_file_element' ) );
    </script>

  • How to use custom pipeline dlls in Biztalk Projects so that they appear in the send/receive pipeline configuration after deployment?

    I have a existing Biztalk application that uses custom pipelines for receiving excel files. I have the dll of that custom pipeline. Now i created another BT application that needs to use that same custom pipeline. But after i deploy the application in
    Biztalk, i can't see the  pipeline available in Receive pipeline configuration combo box during configuration. I have referenced the custom pipeline dll in my project before deploying, but that doesn't help. I also copied the dll in the C:\Program Files
    (x86)\Microsoft BizTalk Server 2010\Pipeline Components folder and C:\Program Files (x86)\Microsoft BizTalk Server 2010 folder, but that doesn't make the pipelines appear during configuration too.
    Can anyone give any idea on how can i use these custom pipeline dlls in project so that they appear in configuration after deployment?

    If you plan on using the deployed pipeline across multiple applications in BizTalk, the BizTalk Application (using the BizTalk Server Administration Console) should have the other application [where the pipeline is deployed] as reference.
    For e.g.: Custom Pipeline (myCustomPipeline) part of a BizTalk Project (dll - myCustomProject.dll) deployed under Application [Some Application] also to be used in another BizTalk Application [Some Other Applicaiton] then using BizTalk Server Administartor
    right click the "Some Other Application" and select "Properties"
    on the "Properties" page, left hand side, select "References"
    on the right-hand side, use "Add" to add the "Some Project" as a reference.
    Doing so will ensure that ALL resources (maps, schemas, orchestrations, send ports, receive locations, rules, etc.) deployed for "Some Application" are available/referensible in "Some Other Application".
    Regards.

Maybe you are looking for