Save file at server site

hello !
I want to save a gif file at the server, and when some button click, display it in html
It's work well only if I save it at the local disk.
Does anyone know how to do it ?
thank...

You have to have something running in the server that will do that for you. For example, you could write an upload servlet that you call to ask it to upload the GIF file for you.

Similar Messages

  • How to save file on server folder

    hi
    i was trying to save file in my specify folder path.
    but it cann't save on than location.
    if i will not specify path then it directly save file on "c:program files\tomcat5.7\bin\mytextfile.txt"
    if i will specify perfect path "c://systemfile//mytextfile.txt"
    it saves on that location.
    if i will define path as ".//www//systemfile//mytextfile.txt"
    "//www//systemfile//mytextfile.txt"
    "//systemfile//mytextfile.txt"
    ".//mytextfile.txt" it cann't save file on location

    i know how to upload file .
    i need to save file on my web folder " /www/file/ xxxx.txt"
    how i will save it .over ther in my program i will specify location "c:/Program file/file/xxxxxx.txt"

  • How to save file from server to client machine

    Hi,
    By using POI library i'm writing values to the existing excel sheet which is available in server. After i written values to the excel, i want to save the same file to the client machine.
    How to achieve this.
    I googled about this, but still i didn't get any clear idea.
    Thanks in advance,
    SAN

    Sameera,
    No, i can't understand what is the meaning of the following code:
    public void doDownload(FacesContext facesContext, OutputStream outputStream) {
    // write the neccessary code to get the download data from the Model
    String data = getDownloadData();
    // save to the output stream
    try {
    OutputStreamWriter writer = new OutputStreamWriter(outputStream,"UTF-8");
    writer.write(data);
    writer.close();
    outputStream.close();
    } catch (IOException e) {
    // handle I/O exceptions
    can you please explain this code little more.
    Edited by: san-717 on Feb 29, 2012 2:30 PM

  • Save file from server cache in WebUI

    Hello,
    maybe someone here can help me with this obscure problem, that bothers me for quite some time now:
    I want to save a pdf file from an internal table to the clients harddrive. Everything is implemented as in Thomas Jung's BLOG(forgot the link) on getting the table in the server cache and I do have my working download URL.
    Now for the difficult stuff: I need to get the file to download correctly without freezing the application.
    This are the ways I tried, but I always do end up with the loading icon in front of my page, not able to make any input. gv_download_url is my working URL, file is OK too when I open it on the hdd:
    1.
      <iframe src="<%= gv_download_url%>" width="0" height="0" id="PDFDownload"
              name="PDFDownload" style="display:none">
      </iframe>
    2.
    <p>
      <object data="report.pdf" type="text/unicode" width="1" height="1">
        <param name="src" value="<%= gv_download_url %>">
        Ihr Browser kann das Objekt leider nicht anzeigen!
      </object>
    </p>
    3.
    <script type="text/javascript">
    function pageLoaded(){
    var myFrame = document.createElement("iframe");
    var src = document.createAttribute("src");
    var height = document.createAttribute("height");
    var width = document.createAttribute("width");
    src.nodeValue = "<%= gv_download_url%>";
    height.nodeValue = "600";
    width.nodeValue = "800";
    myFrame.setAttributeNode(src);
    myFrame.setAttributeNode(height);
    myFrame.setAttributeNode(width);
    var output = document.getElementById("Bereich");
    output.appendChild(myFrame);
    document.close();
    </script>
    <div id="Bereich"/>
    <iframe src="about:blank" onload="pageLoaded()" height="0" width="0"/>
    The only working way I know is this one:
    <script langugage="Javascript">
      var win = window.open("<%= gv_download_url%>");
    </script>
    But I always end up with an empty browser page open, whicht the user has to close manually.
    <i>Short: URL is good, file data is good. How do I get the file download dialog without freezing WebUI?</i>
    Any help would be highly appreciated. Thanks in advance.

    Had the chance to test it in IC WebClient on CRM4.0 today. Everything works fine.
    It seems to be really WebUI specific then. Suppose some missed JavaScript event, that triggers the "Please Wait"-Icon.

  • Automatically save file in server side...

    how can i save a file(text or excel) automatically without anyuser intervention?
    lets say a query is done and the result of that query is goin to save into a file(textfile or excel file) how im i going to save it in the server side? maybe a there is a foldername /extract file/.
    Hope somebody can help me... Thanks in advanced!

    hello again.. this is a part of my codes that writes text files into the server
    public void ReadWrite(ActionForm form){
        AdminAccountBean adminForm = (AdminAccountBean)form;
        String directory1="";
        String directory2="";
        File f = new File("DBConn.txt");
        File f1 = new File("DBConn1.txt");
        String dconnectString = "jdbc:oracle:thin:@"+adminForm.getDserv()+":"+adminForm.getDport()+":"+adminForm.getDbname();
        String dconnectString1 = "jdbc:oracle:thin:@"+adminForm.getDserv1()+":"+adminForm.getDport1()+":"+adminForm.getDbname1();
        try{
        boolean success = (new File(adminForm.getDirectory())).delete();
        if (!success) {
            System.err.println("Error on deleting previous file");
        }catch(Exception e){
          e.printStackTrace();
        directory1 = f.getAbsolutePath().toString();
        directory2 = f1.getAbsolutePath().toString();
        try{
        boolean success = (new File(f.getAbsolutePath().toString())).delete();
        if (!success) {
            System.err.println("Error on deleting previous file");
        }catch(Exception e){
          e.printStackTrace();
        try{
        boolean success = (new File(f1.getAbsolutePath().toString())).delete();
        if (!success) {
            System.err.println("Error on deleting previous file");
        }catch(Exception e){
          e.printStackTrace();
       Convert co = new Convert();
       /*try {
            BufferedWriter adminto = new BufferedWriter(new FileWriter(directory));
            adminto.write(co.Encoder("encoded"));
            adminto.write("\n");
            adminto.write(co.Encoder(uname));
            adminto.write("\n");
            adminto.write(co.Encoder(pword));
            adminto.close();
        } catch (IOException e) {
        e.printStackTrace();
        try{
        boolean success = (new File(directory1)).delete();
        if (!success) {
            System.err.println("Error on deleting previous file");
        }catch(Exception e){
          e.printStackTrace();
        try {
            DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
            Connection conn = DriverManager.getConnection(dconnectString,adminForm.getDuname(),adminForm.getDpword());
            conn.setAutoCommit (false);
            String sqldelete ="DELETE FROM GIIS_WEB_ADMIN";
            PreparedStatement stmt = conn.prepareStatement(sqldelete);
            stmt.executeUpdate();
            String sql ="INSERT INTO GIIS_WEB_ADMIN VALUES('"+adminForm.getUname()+"','"+co.Encoder(adminForm.getPword())+"','A','encoded')";
            PreparedStatement  pstmt = conn.prepareStatement(sql);
            pstmt.executeUpdate();
            conn.commit();
            conn.close();
            Decode de = new Decode();
            String encoded2 = co.Encoder(dconnectString1);
            BufferedWriter adminto1 = new BufferedWriter(new FileWriter(directory1));
            adminto1.write(co.Encoder(dconnectString));
            adminto1.write("\n");
            adminto1.write(co.Encoder(adminForm.getDuname()));
            adminto1.write("\n");
            adminto1.write(co.Encoder(adminForm.getDpword()));
            adminto1.write("\n");
            adminto1.write(co.Encoder(adminForm.getDsid()));
            adminto1.write("\n");
            adminto1.close();
            BufferedWriter adminto2 = new BufferedWriter(new FileWriter(directory2));
            adminto2.write(co.Encoder(dconnectString1));
            adminto2.write("\n");
            adminto2.write(co.Encoder(adminForm.getDuname1()));
            adminto2.write("\n");
            adminto2.write(co.Encoder(adminForm.getDpword1()));
            adminto2.write("\n");
            adminto2.write(co.Encoder(adminForm.getDsid1()));
            adminto2.write("\n");
            adminto2.close();
        } catch (Exception e) {
        e.printStackTrace();
      }

  • Using AMP to download and save FLV files from web sites?

    I thought I had heard months ago that this new media player was going to allow you to download and save the FLV files from web sites like YouTube and others, where a direct download while possible, isn't the easiest thing to currently do. But I don't really see any way in this new media player to download and save files from web sites....it's plenty willing to play them if they're already saved on your hard drive, but I thought one of the reasons for Adobe building this was to make it easier to get them in the first place?

    I'd have to agree. This is one of the most useless products I have seen from a company of this standard. Why they continue to provide this product as an example of what can be done with AIR, is bewildering.  Myself and others have posted over and over again that the player deletes the saved movies at some random time, an hour or two hours after they appear to be saved.
    What is the point of having a 'saved' icon the CD ICON if that movie will be deleted   FOR NO BLOODY reason.  I just wasted 400 mb of my quota dowloading moves 3 times...!! just to realise that the application deletes them from the VERY CACHE that it copies them to.
    Adobe, if this is what I can expect while trying to view the tutorials for FLEX what will the development experience be like. Myself and others are fed up with posting this bug to Adobe, just to be ignored. How much stress to do you want on your servers before you WAKE UP.
    I have been in 4 meetings over the last 2 weeks and everyone has remarked about the 'experience' trying to view these tutorials.
    Wake up to yourself. If you want to charge $500 for FLEX then atleast fix this crappy player.
    PS. I note that this player is supposedly built with Flex and that the list control truncates rather than wraps, in addition, no 'tool tips',  dates are not localised, the video keeps unpausing itself each time I return from the downloads page, no settings for where files should be cached. Occasionally the underlining (grey) window bar appears over the top of the flash window edge.  I've used the application for an hour or so...
    Where is the alternative... I'll be glad when Adobe get some real competition.. so that they pay attention to input.  A big wastefull site if all support does is read and ignore posts.!!!!!!!!!!!!

  • Problem with indesign & acrobat cannot saved files on server : file already open-

    About the problem of Christina
    It's the same for us with Indesign and also with Acrobat. The problem comes from Adobe. They do not understand that we work on server. They tHink that we must work in local and after save files on server. That's totally crazy when you are saverall to work on the same file at different time of the day. How could you know that you work on the right file?
    Please, ADOBE, could you solved this problem?

    You need Adobe Drive, which helps to connect with DAM systems. AFAIK, Adobe does not supply DAM systems though.
    More about it, here: http://www.adobe.com/es/products/adobedrive.html

  • Path does not exit - While trying to save file on SharPoint Server 2013 from client machine

    Hi,
    I have installed Microsoft SharePoint Server 2013 Enterprise Edition on my testing Lab environment (On VM Workstation 10) on Windows Server 2012 with SQL server 2012, I can access all files stored at SharePoint Server from any physical machine, I can share
    a single file among different people to work simultaneously, but here i stuck on saving any file from client machine to directly on SharePoint Server, Attached is the snap shot, whenever I try to save any file directly It says Path Does Not Exist, If I drag
    and drop any file directly to SharePoint I do not see any error message.
    I read from different posts that I need to Enable Desktop Experience Feature on Server 2012, which I installed but no positive result gained :(
    I will appreciate for any possible help?
    Ali

    Hi Ali,
    Please try disabling the protected view per the link below and test the issue again:
    http://social.technet.microsoft.com/Forums/en-US/b8381a19-3394-406f-8adb-1976f45460ef/path-does-not-exit-while-trying-to-save-file-on-sharpoint-server-2013-from-client-machine?forum=sharepointgeneral
    You could simply type the url as http://sp/sites/sitename in the Filename place.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Lost ability to save files within site

    I'm working on a website for my company. Everything's been
    going smoothly until today, and I'm not sure what I did wrong, but
    I'm hoping someone can tell me how to fix it. I'll try my best to
    give the information that will be needed.
    First of all, my problem is, for some reason, I can no longer
    save a file to the site root. More importantly, it's the home page.
    I was working on it, and when I clicked Save, nothing happened. I
    tried "Save As" and still nothing. I decided to restart the
    program, assuming I'd have to redo the steps I'd just taken,
    however upon reopening dreamweaver, the file was GONE.
    I've tried exporting the origional file from Fireworks, but
    as soon as I make any changes to it in Dreamweaver, I have the same
    problem as I mentioned above.
    Other important information could be: I was publishing the
    site to a local folder.. and I had that local folder attached to a
    test server. I started to have problems with the test server, so I
    closed the connection. While trying to repair that problem, I
    renamed the local folder that I had been publishing to. In Manage
    Sites I selected "None" instead of "Local or Network folder" so
    that the site would be local only.
    So I'm pretty sure I screwed it up while messing with the
    test server/ local folder, but since none of that is hooked up
    anymore, shouldn't it work now?
    Please, somebody help me before I tear my hair out? Please?
    Thanks!!!!!!
    Alexis

    Why not start by defining your site on your local machine,
    develop it
    locally, then transfer it to the network machine/server when
    done? Save all
    the hassle?
    "abrussell" <[email protected]> wrote in
    message
    news:eubrre$387$[email protected]..
    > So I'm pretty sure I screwed it up while messing with
    the test server/
    > local
    > folder, but since none of that is hooked up anymore,
    shouldn't it work
    > now?
    It would appear so..
    Brendon

  • Upload failed your changes were saved but could not be uploaded because of an error. you may be able to upload this file using server web page. save a copy

    Hi All,
    upload failed your changes were saved but could not be uploaded because of an error. you may be able to upload this file using server web page. save a copy button.
    This is the issue which I am facing while working with SharePoint 2010. In a sharePoint 2010 document library I am having an excel file and I am trying to open it from Windows 7 and is office 2010.
    I cam e across few suggestion as mentined below but unable to find the location where to do
    Go to Resource Policies > Web >
    Rewriting > Custom Headers > (if 'Custom Headers' is not visible, click
    Customize on the right top to enable the view).
    Create a new policy with the Resource as <fully qualified domain name of the SharePoint server:*/*> (for example https://sharepoint.juniper.net:*/* ).
    Create the action as Allow Custom Headers.
    Apply the settings to the required roles.
    Please suggest.

    Hi rkarteek
    All things you have to do is as follows:
    1. Open regedit.exe
    2. Naviagate to following key:
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\14.0\Common\Internet]
    3. Click Edit Menu -> New -> DWORD with name of "FSSHTTPOff"
    (without quotes)
    4. Click on "FSSHTTPOff" and enter value of 1
    5.
    Close any Office Applications and browser sessions
    6. Try to reopen your document (no more read only or failure to upload)
    have a nice day!

  • Open And Edit Word File In SharePoint Site Programmatically (Without Save On Local system)

    Hi Sir ,
             I am working as sharepoint developer. I have face some problem in Edit and open document file in sharepoint site programmatically. I want to open file and edit directly in sahrepoint site without save in local system,
         Issue:   I have upload one doc file then try to edit and open but In that case file is dowanload and save in local save.

    Hello,
    As i understand you want to open and update word file. Please have a look at below links:
    http://mysharepointwork.blogspot.ca/2010/06/programmatically-open-and-save.html
    http://howtosharepoint.blogspot.ca/2010/05/programmatically-edit-and-save-file.html
    It is good place to start.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • HANA Server site JavaScript how to call functions in another .js file? thanks

    In HANA Studio, I have created a .js file and a server site javaScript .xsjs file. The .js file and .xsjs file are in the same path .I create function F1() in js file. Then I want to call function F1 in xsjs file. But it always through an error “f1 was used before it was defined”. Any suggestion? Thanks very much
    .js file:
    .xsjs file:

    Hi Jim,
    Now I have found the method how to use external library. If we want to outsource some of xsjs functions to an external library, XSEngine provides a special format for this, called “.xsjslib”. Then in xsjslib file, we define functions need to be outsourced.
    In .xsjs file, we can import a library using the following code:
    $.import("<Package_Library_was_deployed>","xsjslib File Name");
    The Package_Library_was_deployed please refer to:
    Access functions inside library by this path:
    $.Package_Library_was_deployed.xsjsFileName.FunctionName();

  • Cannot save files to Windows server 2003 file server from MAC

    Hi, 
    We have few MAC users and others mostly windows based users. Problem now is MAC users cannot save any files to the file server. I had the issues to save in the portable hard drive then i format the HDD to fat 32 and now i can save, But the file server cannot
    be done like that. 
    What i can do to save the files to file server? please advice me
    thanks 
    saththiyan

    I cannot attach another NAS as CEO need to save files to all the folders which is there in the file server already, 
    You can share the folder and map a drive across the network to access the shared folder on the file server. Shared folders formatted NTFS do not affect network access. You would do that by using the SMB. Here's how:
    How to Map Network Drive in Mac OS X
    http://www.technipages.com/how-to-map-network-drive-in-mac-os-x.html
    What OS version is the server? Is it a DC? You may need to reduce security on the server to allow Macs to access the server. Here's more info:
    How to Disable SMB 2.0 on Windows Vista/2008/2008 R2
    http://www.petri.co.il/how-to-disable-smb-2-on-windows-vista-or-server-2008.htm 
    "To disable SMB ... Otherwise, disable SMB signing on Windows Server 2003 domain controllers.
    http://support.microsoft.com/kb/325379
    How to enable Windows 98/ME/NT and MAC clients to logon to Windows 2003 based Domains
    http://support.microsoft.com/default.aspx/kb/555038
    Ace Fekay
    MVP, MCT, MCITP/EA, MCTS Windows 2008/R2 & Exchange 2007, Exchange 2010 EA, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Technical Blogs & Videos: http://www.delawarecountycomputerconsulting.com/
    This post is provided AS-IS with no warranties or guarantees and confers no rights.

  • Since updating to OS X Yosemite, I am unable to save files into another computer or server. I have to save it on my desktop and then drag it into the server. How do i correct this?

    Since updating to OS X Yosemite, I am unable to save files into another computer or server. I have to save it on my desktop and then drag it into the server. How do i correct this?

    Ok this worked to solve the error.
    Use cmd prompt in windows 7 or 8 and run as admin:
    sc config lanmanworkstation depend= bowser/mrxsmb10/nsi
    sc config mrxsmb20 start= disabled
    No need for all that power shell nonsense as shown elsewhere for windows 8.
    That's it. Also force smb2 disabling on the apple side for good measure.
    With the above I was able to network mavericks and windows 8.1 pro flawlessly. He issues I had before where I could not read video, ISO and audio files (but could open documents and pictures from the windows machine connected to an apple network share folder went away.

  • Am I required to save files to the Creative Cloud, or may I use a local file server?

    Am I required to save files to the Creative Cloud, or may I use a local file server for in-office sharing?

    You are not required to save files to the Creative Cloud.
    The online file storage is merely and an additional service, but there are several benefits:
    You file is backed up online in case the file is accidently deleted locally or your hard drive crashes.
    Image previews of InDesign, Illustrator and Photoshop files in the web browser for someone who does not have these programs and would otherwise be unable to view the file.
    Share the file with someone else allowing them to comment and download.

Maybe you are looking for