To save a word/xls document from server machine to client

Hi Folks,
I am facing a problem in storing a document from server to client machine.
I have a document in Oracle database BLOB column and i am able to read and open that document in client browser. But it is stored in the server machine when accessing from the client browser it is opening as a read only copy.
I want to open it as editable copy in client machine and once it is edited i want to save back to the databse. But it can be stored in server or client machine without promting to the user.
Any one can help me?
Senthil

Hi, I am wondering whether this will take time for a document/image which is about 3, 4 MB??? Cos customer has to scan documents one by one and the saving of the file in the DB and then using that to transfer to MSMQ (which is the requirement) should take less time than scanning 2 documents.

Similar Messages

  • How to download/save report from server machine to client machine?

    Hello All
    This is San,
    My problem is that i need to save pdf/html report in client machine while report running on client machine for this i have set destype as file and desformat as pdf/html.
    It is running and save automatically while report run on server machine (Application Server OS is Windows 20003 professional) but when i run it on client machine (Client machine OS is XP sp2) click on run button to run report then it give message as
    FRM-41214: Unable to run report
    When I do showjobs then it give message as
    Executed successfully but there were some errors when distribute the output<br>
    Please suggest me solution of the above mentioned.
    I am waiting for your reply.
    Thanks in Advance
    Edited by: user8752210 on Feb 11, 2011 11:46 PM

    Hello Mr.
    Thanks for quick reply.
    The e:\tempReport directory is on both app-server and client and it is shared folder, i am sending procedure that i have used as:
    PROCEDURE DOWNLOAD_AS IS
    l_success boolean;
    l_bare_filename varchar2(50);
    BEGIN
    --l_bare_filename := substr(:upload.file_name,instr(:download.file_name,'\',-1)+1);
    l_success := webutil_file_transfer.AS_to_Client_with_progress
    (clientFile => :GLOBAL.PATH3||:global.tmp--(\\client_ip_address\e:\tmpreports\file_name.html it is shared folder)
    ,serverFile => :GLOBAL.PATH2||:global.tmp--\\server_iip_address\e:\tmpreports\file_name.html it is shared folder)
    ,progressTitle => 'Download from Application Server in progress'
    ,progressSubTitle => 'Please wait'
    if l_success
    then
    message('File downloaded successfully from the Application Server');
    else
    message('File download from Application Server failed');
    end if;
    exception
         when others
         then
         message('File download failed: '||sqlerrm);
    END;
    Please suggest me what to do.
    Thanks

  • How to download a file from server machine to client machine using jsp

    Hi,
    In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java?
    Its an emergency for me to do this.
    Can anyone provide me the full code to download a file from server machine as I don't have
    time to browse through various sites.
    thanks in advance,
    Tiijnar

    Please post your code using code tags (click on CODE above the text area, when posting)
    response.setContentType("application/octet-stream");Why octet-stream? Set the correct mime-type.
    String disHeader = "Attachment; Filename=\"filename\"";The filename should just be the file's name. Not the complete path to the file! This will tell anyone where the file is located on the server. It's also inconvenient because by default,the browser will suggest it as the name for the download.
    Your way of writing to the output stream is just plain wrong. See this snippet (picked from [http://balusc.blogspot.com/2007/07/fileservlet.html])
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open streams.
                input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
                output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
                // Write file contents to response.
                byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                int length;
                while ((length = input.read(buffer)) > 0) {
                    output.write(buffer, 0, length);
                // Finalize task.
                output.flush();
            } finally {
                // Gently close streams.
                close(output);
                close(input);
            }

  • Allow users to Download documents from server

    Hello Everybody,
    I am working on an Flex application where I have to allow the
    users to Open/Save documents such as Word document, Excel sheet,
    PDFs, Jpeg, Media files (any digital format document) when a user
    clicks on a link present in a Flex application. To do this I am
    using the navigateToURL() method and simply passing the URL string
    as a URLRequest to the navigateToURL method. This works fine but
    whenenver the link is invoked and the user selects to Save the
    Excel sheet or any document it displays an unwanted browser window
    behind the Open/Save/Cancel dialog box saying action cancelled.
    I can not use "_self" as I require the Flex application to
    run as is. I tried using the javascript:window.open() but this did
    not work.
    1) Is there a process to stop the browser window from
    opening?
    2) How can we invoke a javascript using navigateToURL(), I
    tried to invoke javascript.alert('Ok') and also
    javascript:window.open() both did not function.
    3) Is there any other method or flex classes etc. to invoke
    external applications (allow to download documents from server)?
    Please help me.
    Thanks and Regards,
    Paromita

    Paromita,
    You could use the file download functionality. This is from
    the docs:
    You can let users download files from a server using the
    FileReference.download() method, which takes two parameters:
    request and defaultFileName. The first parameter is the URLRequest
    object that contains the URL of the file to download. The second
    parameter is optional--it lets you specify a default filename that
    appears in the download file dialog box. If you omit the second
    parameter, defaultFileName, the filename from the specified URL is
    used.
    The following code downloads a file named index.xml from the
    same directory as the SWF document:
    var request:URLRequest = new URLRequest("index.xml");
    var fileRef:FileReference = new FileReference();
    fileRef.download(request);
    To set the default name to currentnews.xml instead of
    index.xml, specify the defaultFileName parameter, as the following
    snippet shows:
    var request:URLRequest = new URLRequest("index.xml");
    var fileToDownload:FileReference = new FileReference();
    fileToDownload.download(request, "currentnews.xml");
    I think this will accomplish what you are trying to do.
    Vygo

  • Copy a .swf file from server side to client using signed applet

    Hello All,
    I already have my applet signed and its working pretty well. However I want to know how can I import a .swf file into clients machine. The .swf file initially is on server side, my applet checks whether this .swf file exists already on client machine. If not it copies it to his machine.
    I know how to chk if the file already exits on client machine but I am not sure how to copy this .swf file to his machine if its missing.
    May be I need to set some input buffers from server side and then copy them to his machine.
    Can some one throw some light on this issue ??

    Hello to all Java Code Masters out thr,
    I am trying to copy a .swf file from server side to client side, however I am unsuccessful in writing the correct data. By correct data I mean that , the data does gets saved on the client side in the .swf file, and the size of the .swf file on client side is as expected, but some how I don't know why the data is not the same as expected.
    I tried opening up both the swf file, one which is on server side and the other which is on client side. And both looked different in the notepad.
    When I opens up the client side .swf file on browser it shows nothing while the .swf file on server side worked fine.
    Here is a snap shot of the two .swf files when opened in notepad:
    clientside.swf
    &#22339;&#2131;&#51395;&#40056;&#48612;&#28681;&#56220;&#6234;&#31352;&#65363;&#27474;&#26039;&#46793;&#52076;&#11698;&#45679;&#32228;&#9617;&#45643;&#52076;&#54002;&#56237;&#62930;&#57181;&#27635;&#46965;&#48804;&#30062;&#60407;&#31086;&#2937;&#37359;&#28873;&#49741;&#8252;&#10112;&#503;&#8501;&#16164;&#43397;&#16140;&#10313;&#8264;&#537;&#13737;&#16956;&#43411;&#586;&#4917;&#43544;&#22918;&#4216;&#49632;&#40179;&#64495;&#64206;&#44335;&#61334;&#19077;&#57113;&#61099;&#53246;&#52863;&#52855;&#52985;&#32246;&#63967;&#27542;&#13055;&#32611;&#52219;&#26476;&#56728;&#25064;&#57340;&#63580;&#65317;&#56023;&#32706;&#57446;&#19865;&#24183;&#40928;&#65057;&#61684;&#25313;&#64294;&#45864;&#44950;&#25919;&#7115;&#8035;&#44004;&#31973;&#18921;&#32575;&#18967;&#25451;&#63915;&#44668;&#30262;&#32651;&#11230;&#60116;&#21241;&#51902;&#30302;&#2462;&#38913;&#38887;&#2904;&#47227;&#11350;&#25775;&#35978;&#25879;&#38313;&#61967;&#15065;&#8627;&#33840;&#11456;&#12040;&#52418;&#33633;&#6640;&#63050;&#65270;&#39008;&#42184;&#40462;&#49876;&#16324;&#15399;&#60051;&#62263;&#26562;&#19076;&#47084;&#16512;&#51385;&#58710;&#13280;&#42314;&#13071;&#55199;&#17948;&#14772;&#61464;&#8985;&#9032;&#16254;&#42612;&#16367;&#47121;&#16212;&#60451;serverside.swf
    CWS�� x���     p��ZxzS�Rk�e��l��-o��}�%K�l�������]��ku���nu��nyy���pM�< �'�5!$����I
    (H �
    5<B
    ��J5��Yx��������/����J������w����}���
    k�2c��lg���a��\�%��serverside.swf is what I expect to be saved, but clientside.swf is what i get.
    Below is a code snippet which I am trying :
      public void writeswftoclient(String swfcontent) {
        String userHome = System.getProperty("user.home" );
        String ImoracleDirectory = userHome + "\\MyFolder";
        File fdirectory = new File(ImoracleDirectory);
        if(!fdirectory.isDirectory()) {
          fdirectory.mkdir();
        String playlist = ImoracleDirectory + "\\clientside.swf";
        File fplaylist = new File(playlist);
        try {
          Writer output = null;
          output = new BufferedWriter(new FileWriter(fplaylist,true));
          *System.out.println(swfcontent);*
          *output.write(swfcontent);*
          output.close();
        catch (Exception e) {
          System.out.println("Cannot create or write to the playlist");
      }In above code I am trying to write the string swfcontent, which contains the data shown above in serverside.swf, to clientside.swf.
    Interesting thing is that I am doing System.out.println(swfcontent); just before writing the data to clientside.swf using output.write(swfcontent);. And System.out.println does print the write data on the java console. However I dont know out of what reason the data doesnt get written correctly on the client's computer.
    Kindly help me in this plzzzzzzzzzz.

  • Hi i am trying to download a .xls file from server but i cant

    I am using Tomcat 5.0, Where i am trying to download a .xls file.. which was uploaded by me.. when i try to download the file using line.. the content of the jsp file is there in the .xls file, i cant get the original .xls file
    here my code.. i am request this page by a button click...
    browser ask me to save download.jsp file....
    how to download a .xls file from the server... the file was uploaded by me to a folder temp
    <%@ page
    contentType="application/vnd.msexcel; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    %>
    <jsp:include page="http://localhost:9999/temp/B.xls"/>

    Help me please, I have this:
    File ficheroXLS = new File(strPathXLS);
    FacesContext ctx = FacesContext.getCurrentInstance();
    if (!ctx.getResponseComplete()) {
    String fileName = ficheroXLS.getName();
    String contentType = "application/vnd.msexcel";
    HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse();
    response.setContentType(contentType);
    response.setHeader("Content-Disposition", "attachment;filename=\"" + fileName + "\"");
    ServletOutputStream out = response.getOutputStream();
    out.write({color:#ff0000}ficheroXLS.toString().getBytes(){color});
    out.flush();
    out.close();
    ctx.responseComplete();
    My
    problem is marked with red color, I have a file. XLS and I want to
    download it, but to put what this red just showed me the PATH ...
    How can I do to make the contents of this file?
    What type of object must be the xlsReport?
    thanks greetings

  • Opening documents from server takes forever

    If I Lion users creates a document on the server in say something like TextEdit then reopens TextEdit later they are greated to a spinning beach ball while TextEdit tries to resume editing that previous document from the server. I dont want to turn off autoresume since they like being able to log out and return to where they left off when they log back in. But man watching that beach ball spin is painful and takes forever.

    Anyone else seeing this. If you have a network user just open a TextEdit document from an AFP share and see if it beachballs TextEdit when the document opens.
    Originally I thought it was the auto-resume feature so I turned that off but I am still seeing the beachballing with apps like TextEdit, Quicktime, and Preview. So I am led to believe it has something to do with the new auto-save/versioning feature that is having issues with files stored on network sharepoints.

  • Multiline variables are truncated in a Word task " Document from template"

    Hi everyone,
    I’d like to know if somebody have had the situation described below and how can I solve it.
    The problem is when I try to write in a word document (task created as a Document from template) a container element declared as a Abap dictionary referenced as TLINE-TDLINE (Char 132) with multiline flag activated, because when this variable has more than 3 lines during the execution of the workflow, the word document doesn’t gets the  whole value, it means the value is truncated and the word document just write or get 2 and a half lines (almost 350 or 400 characters)  and I don’t know why the rest of the value of this variable is missed.
    Does somebody knows what could be happen?, Does SAP have some kind of limit of the amount of characters to be written in a word document with a multiline variable? There’s a bug in the system and a “note”  to be applied? What can I do to write a variable wit multiple number of lines without missing any one?
    Thanks  a lot for your help.

    I have had a formal answer from SAP (OSS Note) for this issue, and It is no good at all to me (notes 375669, 559234, 724755);
    1.     There’s a restriction on the length for text variables 80 characters
    2.     to implement a long text you need to put several variables together
    If any one has another solution, I would appreciate your comments.
    Thanks a lot
    Felipe Uribe

  • Is there a way to programmatically save a Word 2013 document into a Word 2010 in compatibility mode?

    Hi,
    I have a Word 2013 document that I want to open in Word 2010.  The problem is this document has a repeating section content control and if I open it in Word 2010, the content control is removed so the data won't be seen.  Is there any way programmatically
    to save the document in Word 2010 compatible mode?  So that I can open in both Word 2013 and 2010.  By the way, I'm using C# and OpenXML for this.
    Thanks.

    Hi,
    Based on my tested, I created a "Rich Text" content control in Word 2013, and it'll works fine in Word 2010.
    As far as I know, in Word 2013, content controls provide three key improvements: improved visualization, support for XML Mapping for Rich Text content controls, and a new content control for repeating content.
    Please see the article "What's new with content controls in Word 2013" it may be helpful to you.
    If you have any further question about coding/programing, please post your question to MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes&sort=lastpostdesc
    Regards,
    George Zhao
    TechNet Community Support

  • Publishing documents from local machine onto Infoview

    Post Author: ak004
    CA Forum: Publishing
    Hi All,
    I am trying to upload/publish documents from my local drive on to Infoview so users can see them in infoview. We can do that by clicking "New" button and selecting the document. But is there a way to do this programatically? I have to upload documents into different folders based on the type of the document.
    My environment is Crystal Reports Server XI R2.
    Appreciate your help.
    thanks, Ajith

    Post Author: tomw
    CA Forum: Publishing
    Two routes for this.
    1) Install the local machine tools from your server disk, and use the publishing wizard.
    2) Inside crystal reports - Click file -> Save As -> Enterprise and choose which folder to save it in

  • How can i extract just documents from time machine backup?

    How can I extract just my documents from a time machine backup?   I had to re-install Lion after the update screwed things up, the Genius Bar guy told me to re-install each App, and then transfer just my data (documents) back but didn't tell me how.   I only see how you can restore the entire snapshot of what was on my MacBook that day, I don't see how to select specifics. 

    Hi,
    Install a fresh Lion OS on your Mac. After this is done, then connect your time capsule. Click on the time machine icon in the dock bar so you will enter in time machine. Select the document folder and any document or all you need. The same thing you can do with iPhoto, Emails, etc.
    Let me know
    Claudio

  • Copy a file from server to the client - URLConnection to a Portal page

    Hello:
    I have an application running on the client side. When the app startup it must open a file which is at the server side, to be more specific, the file is at KM content of the portal.
    I try to read it with URLConnection to copy the file from the server to the client, the app will do it, but "Server returned HTTP response code: 401 for URL:"
    If you copy&paste the url's file directly on the browser (http://host:port/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/ImagenesIM/file.txt) a login popup (look and feel windows) is display. After entering the user and psw the file is open without problem.
    Any idea what can I use or how do it ?.
    I think that probably I have to move the app to a was directory instead of portal directory.
    The app is execute via *.jnlp with a link at a portal page.
    Thanks a lot for your time.

    Javier,
    401 means authentication error, i.e. your application is not authenticated to KM.
    What you can do? Actually, it depends. Check current cookies in your application, probably there are SSO coockie or J2EE authentication cookie. You may try to set this cookies in URLConnection (via addHeader). Otherwise you have to supply authentication creadentials to URLConnection (also via addHeader, most probably, via Basic HTTP authentication scheme).
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How to send Subtopic Message From Server-Side to Client ?

    I’m new at flex and i have a new question about Flex
    Message Service.
    How to send messages from Server-Side Java Code with
    Subtopic?
    For example.
    I customed a Flex Message Adapter in Tomcat Server , with
    this Adapter , i can send message to Client with following code .
    ---------------------Send message to Client------------
    MessageBroker msgBroker =
    MessageBroker.getMessageBroker(null);
    String clientID = UUIDUtils.createUUID(false);
    AsyncMessage msg = new AsyncMessage();
    msg.setDestination("CustomMsgServiceDes");
    msg.setClientId(clientID);
    msg.setMessageId(UUIDUtils.createUUID(false));
    msg.setTimestamp(System.currentTimeMillis());
    msg.setBody(clientID + "this is my message from server! \n");
    msgBroker.routeMessageToService(msg, null);
    ---------------------Send message to Client------------
    But i want send a message that have Subtopic to the Client ,
    How to do ?
    Thank you for reply.

    There's a white paper that talks about this subject -
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=8f1eb6ea

  • I just connect portal from server machine. Help me!

    Please, can someone help me?
    I've instaled the Oracle portal 3.0.9.8.0 in the Oracle 8.1.7.
    From the server machine I can access the Portal, but if I try from a
    client machine, a error happens.
    If I try only the server machine's name, the Oracle Http Server shows up,
    but if I try to do machinename/pls, a error happens and with the server
    machine works.
    Do someone know what's going wrong? Do I need to configure somthing at the
    client machine?
    And what about the DAD? Whath do I need to configure?
    Thaks for helping,

    Pls ignore the previous one and refer to this one, its not identifying greater than & Smaller than sign, I have replaced them with square brackets ([]).
    Tiago,
    Where is your midtier, I mean where is your Http Server(Apache) is running? Is it running on the same machine where database is running or it is running on a different machine?? In either cases it doesn't actually matter, unless your are accessing the portal correctly.
    You should be accessing the portal in the following manner (From any machine, be it server or client).
    http://[midtier-machinename]:[Port]/pls/[DAD]
    [midtier-machinename]: The machine on which your Apache is running.
    [Port]: Port on which your Apache is running. (You can check it in your your setupinfo.txt file, which gets created when you install 9iAS).
    [DAD]: DAD, through which you identify your portal instance. You can check it by giving the following url
    http://[midtier-machinename]:[Port]/pls/bootstrap/admin_/dadentries.htm
    Just double check your settings on the basis of above mentioned guidelines. Hope it should work.

  • Import source from server machine

    hi,
    i want to import source data into my localhost system.
    source data is residing in server system in BD2 database;
    i want to design mapping using these source.
    so i want to know how we can import data from server system data
    and how we can use these data in mapping
    plz tell me procedure
    Edited by: user10373357 on Nov 3, 2008 10:49 PM

    LEARN OWB !
    1. I havent heard of BD2 i only know DB2(if thats what you are referring to).
    2. Create a repository under NON-ORacle ==> DB2 in design center.
    3. create setup locations in connection explorer(under non-oracle).
    4. Import the metadata.
    5. create mappings.
    6. create a control centre location
    7. deploy mappings
    8. execute your mappings(if required use schedules and process flows)..

Maybe you are looking for

  • Need to update PDF template based on XML data source - POAWDSF33 in PO

    I need to update a seeded PDF template - POAWDSF33 which is pdf type in Purchasing PO application to add some columns & reformat template according to client needs. This template picks data from two xml based Data definition [Award Data template] : P

  • Problem with renameTo()

    Hi all, I wrote an application with WSAD 5.1.2 that, given an array of files, should move these files into a new set of directories. The problem is that using renameTo() method, the program move only some file contained into the array while other one

  • I-Trigue Mysterious Subwoofer Problem?

    Hi, I have a Creative I-Trigue and my subwoofer has become very crackly when I put the bass up. It can handle a very small amount, but gets progressively more crackly as I turn it up. I have taken off the fabric cover and looked at the rubber bass th

  • Allign text in two images

    I have two images with text that need to be aligned, see http://www.spinsister.nl/zandbak/FW.htm The last letter in the left hand image, half an 'e' ,should match perfectly with the first other half of the 'e' in the right hand image. I have tried pa

  • JAXB & generation of: /html /html /html /html /html /html

    I'm using latest JAXB to generate my xml-code. I use it to transfer data between two servers. First call is ok, but when the other server sends response, it's 4/10 generated something like this: The amount of </html>-tags is not constant, it can be n