WebUtil File transfer

Hi
Can anybody give me example of WEBUTIL_FILE_TRANSFER_AS_TO_CLIENT(I want to transfer file from AS to Client).
Thanks in advance
Murthy

If WEBUTIL_FILE_TRANSFER.AS_to_client( 'client_file_name', 'AS_file_name') Then
Else
     message('!!! Transfert error : client_file_name !!!');
End if ;

Similar Messages

  • WebUtil file transfer in multiple user implementation

    Hi
    Installed WebUtil and able to integrate forms/reports in Web enviroenment 10gAs.
    Around 30 to 40 people will use this application, Now to do client side integration (To Save generated output to Cleint m/c) we are geerating file on AppServer and transferring using Webutil file transfer but my question if multiple users running same report from form and generates two different date ranges to generate to same file on Appserver, How Can I use WebUtil file tranfer for two people running same report. Is that going to be problem in concurrent user environment.
    Setup 10gAs, User A select report A and run with two different data ranges and file saved on Appserver as test.pdf and now user b want to run same report with time range little bit different time range and file has to be saved to same test.pdf on ApopServer, Now how oracle going to handle this ???????.
    Pl answer this is very important as we are running this reports in Web implementation with more than 30 users.
    Many thanks in advance.
    Murthy

    Surely the real issue is that you are always generating to the same filename? Incorporate an identifier into the filename. e.g. the username
    Regards,
    Robin Zimmermann

  • Oracle.forms.webutil.file Transfer.File Transfer bean not found

    I've followed tons of instructions for 2 days to install and configure webutil and I finally have success with the demo. However, when I add this to my own form and use the CLIENT_IMAGE.READ_FILE_IMAGE
    I end up with error oracle.forms.webutil.file Transfer.File Transfer bean not found WEBUTIL_FILE_TRANSFER.getMaxTransfer will not work.
    What am I missing? Thanks for any help.

    Make sure your form subclasses object group webutil.olb, and that webutil.pll is also attached. Make sure that your forms folder contains webutil.plx (a compiled version of webutil.pll). Unless the default config (in formsweb.cfg) includes the entries required for webutil support, you must specify a config that does have these entries. 10g, which comes configured for webutil, provides a config called webutil for this. An example URL might look like:
    http://myappserver/forms/frmservlet?form=myform.fmx&config=webutil
    There could be other problems, but since you're able to run the demo forms, I'm guessing that what I've mentioned are the first things for you to check.
    Hope this helps,
    Eric Adamson
    Lansing, Michigan

  • WebUtil File Transfer - file size limit

    Does anybody know what the file size limit is if I want to transfer it from the client to the application server using WebUtil? The fileupload bean had a limit of 4 Mb.
    Anton Weindl

    Webutil is only supported for 10g. THe following is added to the release notes:
    When using Oracle Forms Webutil File transfer function, you must take into consideration performance and resources issues. The current implementation is that the size of the Forms application server process will increase in correlation with the size of the file that is being transferred. This, of course, has minimum impact with file sizes of tens or hundreds of kilobytes. However, transfers of tens or hundreds of megabytes will impact the server side process. This is currently tracked in bug 3151489.
    Note that current testing up to 150MB has shown no specific limits for transfers between the database and the client using WebUtil. Testing file transfers from the client to the application server has shown no specific limit up to 400Mb; however, a limit of 23Mb has been identified for application server to client file transfers.

  • The application suspends in webutil file transfer

    Dear all,
    I have an application that reads pdf files from the harddisk and uploads them to the database using
    WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB_WITH_PROGRESS( doc_path_v, table_name_v, 'DOC', 'DOC_ID = ' || doc_id_v,
                   'Saving the file to the database..', 'Please wait..');
    but, when there are a lot of files the application suspends as if the session has expired and I need to log in agnain..
    Is there any help with this problem?
    thanks.

    Hi,
    sometime it happens with webutil in 10g. I also faced the same problem. If i transfer a big file. Then system
    shows the progress bar when progress bar reaches upto 30% then system stops transferring the file. Then
    i need to relogin again and when i try to transfer again. It shows one error "Already transfer in progress".
    Then i need to kill the session from AS Console.
    -Ammad

  • How do I make the webutil file transfer works correctly?

    Hello,
    I'm using Oracle 10g Database and form builder in developer suite 10g release 2. Running on Windows XP SP2.
    I've created a database user, executed the create_webutil_db.sql , and created a table as below:
    CREATE TABLE DOCS
    (DOC_ID VARCHAR2(15) NOT NULL,
    DOC_IMAGE BLOB,
    TEXT_DESCRIPTION CLOB,
    FILENAME VARCHAR2(80),
    FILE_SIZE NUMBER NOT NULL,
    CONSTRAINT PK_DOCS PRIMARY KEY (DOC_ID)
    I've created two buttons in the from, one for upload and one for download
    the upload code:
    DECLARE
         fname VARCHAR2(1000);
         fext VARCHAR2(1000);
         result BOOLEAN;
    BEGIN
         fname := Client_Get_File_Name(null,null,null,null,OPEN_FILE,TRUE);
         fext := fname;
         WHILE instr(fext,'.') <> 0 LOOP
              fext := substr(fext,instr(fext,'.')+1);
         END LOOP;
         IF LOWER(fext) <> 'doc' THEN
              message('Only Microsoft Word Document (*.doc) can be uploaded');
         ELSE
              result := Webutil_File_Transfer.Client_To_DB
              (trim(fname),'DOCS','DOC_IMAGE','DOC_ID = ' || '''' || :DOC_ID || '''');
              IF result THEN
                   message ('Upload success');
                   :FILENAME := fname;
                   :FILE_SIZE := WebUtil_file.file_size(:FILENAME);
                   WHILE instr(:FILENAME,'\') <> 0 LOOP
                        :FILENAME := substr(:FILENAME,instr(:FILENAME,'\')+1);
                   END LOOP;
              ELSE
                   message ('Upload failed');
              END IF;
         END IF;
    END;
    and the download code:
    DECLARE
         result BOOLEAN ;
    BEGIN
         IF :FILE_SIZE > 0 THEN
              result := Webutil_File_Transfer.DB_To_Client
         (trim(Client_Get_File_Name(null,:FILENAME,null,null,SAVE_FILE,TRUE)),'DOCS','DOC_IMAGE','DOC_ID = ' || '''' || :DOC_ID || '''');
              IF result THEN
                   message ('Download success');
              ELSE
                   message ('Download failed');
              END IF;
         ELSE
              message('No file to download');
         END IF;     
    END;
    I can upload the file to the database, and download the file.
    However, the file being downloaded is corrupted. I don't know why this will happen. I've tried to rebuild the form, re-attach the webutil library, rebuild the database users and tables, but all these doesn't work.
    Please help, thank you.
    Message was edited by:
    se072c23

    1 Can u try running the sample form available from OTN (WU_TEST) and check whether it works
    2 If it doesnt then enable the java console and check the error message
    Rajesh ALex

  • WebUtil - File Transfer to File Server instead of App Server of DB

    Is it possible to upload a file to server other than the db server or app server?
    Thanks.

    Hello,
    I don't think so. Notice that Webutil allows transfering files only on the App Server machine. With the DB Server, you can only transfert file to/from the database, not the file system.
    Francois

  • Webutil file transfer problem

    I have a problem, I am using webutil_file_transfer.AS_To_Client to copy a file in a directory, but when I want to delete the original file with webutil_file.delete_file I get the error that the file is in use and it remains blocked until I close the application and the console of Java is closed too.
    How can I solve this?
    Thanks in advance.

    v_origen := 'C:\archivo.pdf';
    v_destino := 'D:\archivo.pdf';
    l_success := webutil_file_transfer.client_to_As(v_origen,v_destino,false,null);
    if l_success then
    SET_ALERT_PROPERTY('ALT_INFO',ALERT_MESSAGE_TEXT,'File saved);
    ALERTA := SHOW_ALERT('ALT_INFO');
    else
    SET_ALERT_PROPERTY('ALT_INFO',ALERT_MESSAGE_TEXT,'ERROR File not saved);
    ALERTA := SHOW_ALERT('ALT_INFO');
    end if;
    -- delete de original file
    l_success := webutil_file.delete_file(v_origen);
    if l_success then
    SET_ALERT_PROPERTY('ALT_INFO',ALERT_MESSAGE_TEXT,'Deleted OK);
    ALERTA := SHOW_ALERT('ALT_INFO');
    else
    SET_ALERT_PROPERTY('ALT_INFO',ALERT_MESSAGE_TEXT,'Deleted NOT OK);
    ALERTA := SHOW_ALERT('ALT_INFO');
    end if;
    The first message is l_success=true, the second message is l_success=false.
    I want to copy the file of a directory to other one and to delete the original one (to move the file).

  • File transfer from client to AS

    hi,
    I want to transfer a text file from my c:\text.txt to application server c:\files\files.txt.
    Hw can I achieve this using oracle forms webutil file transfer?
    becasue when i read the file using client_text_io it takes a lot of time.
    thanks and regards
    Ajith

    Look at Francois's Blog
    Forms : TEXT_IO vs CLIENT_TEXT_IO
    http://fdegrelle.over-blog.com/article-1810290.html
    too.

  • File Transfer From Unix server to Windows Client System Using WebUtil

    Hi all,
    I want to Transfer a File from Unix Server to Window Client System using Webutil. But below mention code is not working.
    DECLARE
         V_Server_Path VARCHAR2(500) := Null;
         V_Client_Path VARCHAR2(500) := Null;
    BEGIN
         V_Server_Path := '/proj/oraapps/viper/dev/reports/cache/Saveauftr.txt';
         V_Client_Path := 'C:\Migration\EU_Applications\Lima\OAS_WorkArea\Client\Saveauftr.txt';
         IF WebUtil_File_Transfer.Is_AS_Readable(V_Server_Path) THEN
         IF WebUtil_File_Transfer.AS_To_Client(V_Client_Path,V_Server_Path) THEN
              Message('Downloading the File ..... .... ... .. .');
              Message('Downloading Was Successfull ...');
              Message('File Transfer from Server Was Successfull ...');
         END IF;
    END IF;
    END;
    Can anyone suggest me,Why the above code is not working and what to do for solve the Problem.
    Regards
    Gany

    Hello,
    You have more chances to get an answer in the Oracle Forms OTN Forum :
    Forms
    Regards

  • Webutil File upload

    I am using the webutil in our 9ias R2 server, when I try to upload a file to AS using the function WEBUTIL_FILE_TRANSFER.CLIENT_TO_AS_WITH_PROGRESS(fname,'/tmp/testing','Transfering','Transfer',true,null);
    The error WUT-121 prompt.
    I had the following setting in the webutil.cfg:
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.workAreaRoot=/tmp
    transfer.appsrv.accessControl=TRUE
    #List transfer.appsrv.read.<n> directories
    transfer.appsrv.read.1=/tmp
    #List transfer.appsrv.write.<n> directories
    transfer.appsrv.write.1=/tmp
    is there anything else I haven't taken care??
    Rgds

    yes this is a copy of that portion of the webutil.cfg file
    #NOTE: By default the file transfer is disabled as a security measure
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.workAreaRoot=c:\
    #c:\temp;
    transfer.appsrv.accessControl=TRUE
    #List transfer.appsrv.read.<n> directories
    transfer.appsrv.read.1=c:\temp
    transfer.appsrv.read.2=c:\
    #List transfer.appsrv.write.<n> directories
    transfer.appsrv.write.1=c:\temp
    transfer.appsrv.write.2=c:\
    the v_boolean variable seems to be null when the proc is finished.

  • "Windows - No Disk" error message on file transfer

    Hello!
    I updated our ZDM7 server from plain old ZDM7 with no updates to ZDM7 SP1
    IR1. Now, when initiating File Transfer operation with any workstation, up
    comes this error message:
    "Windows - No Disk"
    "Exception Processing Message c0000013 Parameters 75b6bf9c 4 75b6bf9c 75b6bf9c"
    [Cancel] [Try Again] [Continue]
    If I click "Continue" 4 times, file transfer starts up successfully.
    Any ideas about how to get rid of this annoying message?
    Toomas Aas

    Toomas,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • UCMA 4 and back to backing a file transfer request

    OK, I know that file transfer isn't technically supported on UCMA 4.0, but I wanted to take another look at it and see whether there was a way to b2b a file transfer request. After all, there's no reason that it shouldn't work if the messaging is correct,
    right? The scenario I have is A <-b2b-> app <-b2b->B.  I have an IM conversation going on between A and B, so now I'm trying to set it up so that A can send a file to B. 
    So far I've extended the platform to accept file transfer requests by creating my own call and factory classes, and then registering them using RegisterPlatformExtension.  This means that when A sends a file, the INVITE gets delivered to my application. 
    Now I'm taking that INVITE and creating a new b2b call.  A file transfer request looks something like this:
    TL_INFO(TF_PROTOCOL) [0]16A8.4B28::02/10/2015-19:53:05.007.001d492f (SIPStack,SIPAdminLog::ProtocolRecord::Flush:ProtocolRecord.cpp(265))[3939761282] $$begin_record
    Trace-Correlation-Id: 3939761282
    Instance-Id: FDB3
    Direction: incoming
    Peer: 10.0.154.20:49282
    Message-Type: request
    Start-Line: INVITE sip:[email protected] SIP/2.0
    From: <sip:[email protected]>;tag=eafd3e699d;epid=ccd5657cac
    To: <sip:[email protected]>
    Call-ID: 0acf0330423241258576d7c5cc42aa01
    CSeq: 1 INVITE
    Contact: <sip:[email protected];opaque=user:epid:d2lIs-103l2YSpDwCSajtAAA;gruu>
    Via: SIP/2.0/TLS 10.0.154.20:49282
    Max-Forwards: 70
    Content-Length: 1920
    Content-Type: multipart/mixed;boundary="----=_NextPart_000_0026_01D04541.4641C2D0"
    Message-Body:
    ------=_NextPart_000_0026_01D04541.4641C2D0
    Content-Type: application/sdp
    Content-Transfer-Encoding: 7bit
    Content-ID: <[email protected]>
    Content-Dis; handling=optional; ms-proxy-2007fallback
    v=0
    o=- 0 0 IN IP4 192.168.200.71
    s=session
    c=IN IP4 192.168.200.71
    b=CT:99980
    t=0 0
    m=data 21300 TCP/RTP/SAVP 127
    a=ice-ufrag:lYAu
    a=ice-pwd:y0gkW4r9zGSW6E2VdtMprlEh
    a=candidate:1 1 TCP-PASS 2120613887 192.168.200.71 10856 typ host
    a=candidate:1 2 TCP-PASS 2120613374 192.168.200.71 10856 typ host
    a=candidate:2 1 TCP-ACT 2121006591 192.168.200.71 21300 typ host
    a=candidate:2 2 TCP-ACT 2121006078 192.168.200.71 21300 typ host
    a=candidate:3 1 TCP-PASS 2120612863 10.0.154.20 31624 typ host
    a=candidate:3 2 TCP-PASS 2120612350 10.0.154.20 31624 typ host
    a=candidate:4 1 TCP-ACT 2121005567 10.0.154.20 3921 typ host
    a=candidate:4 2 TCP-ACT 2121005054 10.0.154.20 3921 typ host
    a=cryptoscale:1 client AES_CM_128_HMAC_SHA1_80 inline:4CZbzYM/GYDbygj8JwMTodKo85C4Xx7TMzeMIuBU|2^31|1:1
    a=crypto:2 AES_CM_128_HMAC_SHA1_80 inline:Ohlo65gDsUvxCF39A382Rl4vGL+SG9R/lUEYU/br|2^31|1:1
    a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:EZ7Zm3K0H/WW5K49LAk9/C0T8x8nhkumJOycSek7|2^31
    a=setup:active
    a=connection:new
    a=rtcp:21300
    a=mid:1
    a=sendonly
    a=rtpmap:127 x-data/90000
    ------=_NextPart_000_0026_01D04541.4641C2D0
    Content-Type: application/ms-filetransfer+xml
    Content-Transfer-Encoding: quoted-printable
    Content-ID: <[email protected]>
    Content-Dis; handling=optional
    <request xmlns=3D"http://schemas.microsoft.com/rtc/2009/05/filetransfer" =
    requestId=3D"13">
    <publishFile>
    <fileInfo embedded=3D"true">
    <id>{67190A30-C59F-480D-96DD-5F3941C39C49}</id>
    <name>dbchange.log</name>
    <size>3609</size>
    </fileInfo>
    </publishFile>
    </request>
    ------=_NextPart_000_0026_01D04541.4641C2D0--
    $$end_record
    I've got my b2bed invite looking almost identical to the original invite by creating a custom MIME type on the CallEstablishOptions for the back to back call using something like this:
    Regex r = new Regex(@"^((.|\n)*)(\<request)((.|\n)*)(request\>)((.|\n)*)$");
    Match m=r.Match(args.RequestData.GetMessageBodyString());
    content=string.Format("Content-Transfer-Encoding: quoted-printable\r\n{0}{1}{2}",m.Groups[3],m.Groups[4],m.Groups[6]);
    opt.CustomMimeParts.Add(new MimePartContentDescription(new ContentType("application/ms-filetransfer+xml"),System.Text.ASCIIEncoding.UTF8.GetBytes(content)));
    opt.CustomMimeParts[0].ContentDispositionHeader = new SignalingHeader("Content-Disposition", "render; handling=optional");
    So far the only differences I can see in my outbound message vs the original SDP are that the Content-Transfer-Encoding might not be seen as a header (since the SignalingHeaders property on the MimePartContentDescription is read only), and the Content-Transfer-Encoding
    on the first MIME part (created by the BackToBackCall) is missing (even though I specified it on the PassThroughHeaders).  Even with all of this though, I still get a 488 on client B when I attempt the transfer (even though the invite goes through). 
    What I'm wondering though, is whether there's any way at all to get this working the way I'd expect, where a file gets transferred directly between A and B, without my bot having to receive it first.  The other approach I've looked at is binding my
    own media provider class to customize the SDP, but if this MIME part approach isn't going to work, then I have a feeling the media provider won't work either. 
    Any suggestions on where to look next? 
    Thanks!
    Chris

    Chris,
    I am trying to do something similar to this and from what I have read and in talking to MS is that you need to extend the Call and Flow class which it looks like you have been able to do. Could I bother you to share what you have written? Maybe we can help
    each other out on this. I am basically trying to create an application that will be able to capture a file transfer and save it, then send the original request on to the intended recipient.
    Thanks in advance,
    Anthony

  • I have an old ipod i just got the new iphone 4s but the songs that are on my ipod are not on my itunes how can i transfer them from my old ipod to my itunes. reason they are not on my itunes becasue i've change computer also and didn't a file transfer bef

    i just purchase the new iphone 4s. I also have an old ipod with a lot on songs which are not on my itunes becasue i didn't do a file transfer when i got my new computer a ew months ago. How can i add my songs from the old ipod to my itunes.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • MBP (mid-2009) freezing, slow installations and file transfer

    I bought the latest MacBook Pro model and installed Snow Leopard on a cleanly formatted hard drive. I have tried migrating via ethernet and FireWire from my iMac, but the migrations failed either due to freezing (via FireWire after roughly 24 hours of file transfer) or by an error message (ethernet with Migration Assistant).
    Only through a Time Machine backup was I able to transfer my account files to the MBP, which again totaled at over 20 hours of transferring. The system was a mess, clogged constantly by freezing and spinning beach balls of death for durations lasting around 10-20 seconds during which music would clip after 5-10 seconds of everything not responding, this being accentuated especially during installations. I decided to format and try anew.
    Now I've formatted the hard drive, installed Snow Leopard and will transfer my files manually onto a clean account. Installations take a long time although SL installation is within 30 minutes, iLife took 1.5 hours to install 5 GB. During the installation Safari stopped responding, as did the entire system, and the spinning beach ball would keep spinning. Watching a 480p trailer in Quicktime made the entire computer freeze up (no video/audio) for 10 seconds halfway. Transferring 136 GB (my Music folder) will take around 15 hours according to the estimate after 10 minutes of transferring.
    I've sold my iMac now and all I have are the files on my external hard drive. I want to get them onto my MBP ASAP but the slowness is preventing me from doing what needs to be done and it's very frustrating. When I try to boot into Hardware Testing by holding D down the computer doesn't do it no matter what (Application DVD in or not, plugged into power or not). I've tried resetting PRAM but I get the same inaction.
    Any ideas?
    Edit: I've done Disk Utility to no avail, it finds nothing wrong.

    Installed, still getting freezes with spinning beach balls. Transfer says it would take 1 hour opposed to that 15 hours, but it stops transferring after X amount of gigabytes (from 0.5 to 5), not do anything for a while and then continue, stretching the estimate to over 2 hours after some time. I don't know if this is just with the hard drive.
    The freeze-ups are frustrating as **** and make for a very poor experience. Any ideas to get to the bottom of this? I still haven't been able to boot into the Hardware Test no matter how much I try.

Maybe you are looking for

  • Help with openning pdf's

    Even though items are labeled as pdf's, they have a different icon and when I try to open them, I get an error message saying that they are "not a supported file type" or they have been damaged via email.  These are files that have never been emailed

  • Change of User Account in E-Recruiting

    Did E-Recruiting ever intend for the change of a User Account in R/3 for an Internal Employee who is a Recruiter, or a Manager, or an Administrator? For example, an employee's 0105-0001 user id is initially set to 'xxx'. So, in E-Recruiting this empl

  • How to add material group in rvinvoice standard script?

    how to add material group in rvinvoice standard script? regards

  • ERR_PROXY_AUTH

    I am able to get to a site that is CAC authentication required. However, when I try to download a video from the site or Save Target As.. from the site I get Internet Explorer errors.  So, when I go to our local proxy server and do a policy trace I g

  • Displaying Asian Type

    Working in Adobe Illustrator CS2, I'm trying to get the Asian fonts to work. I went into Illustrator Help and it gave minimal instruction but also a note saying "Your operating system must support the languages in which you wish to work. Consult your