How to download the files, that are located in server, from the client?

Hello folks,
My program is like that, the files are located in the server and stored in file system.
I can only know the server name and the directory listing, so that I can show the file names from that directory on the browser.
The user might downloads those files from the browser and he might deletes those files through the browser.
That user has valid right to do so and the files can be any type of extension.
So how can I write this kind of program? Currently the whole system is in struts, so how can I make compatible with struts technology?
Do u have any ideas?
Regards,
Phyo

Thank you, grigpm. But actually I want the user to select the file that he wants to download rather than setting it in the configuration file. If it is possible, let me see the sample code of FileManager servlet. I've tried with some ways but I can only download from the same server with the application server. I want to download from different server. I hope someone can help me with sample code....
Best regards,
Phyo

Similar Messages

  • How do I delete files that are no longer referenced in the catalog

    Over the years there have been a number of files (~650 raw files) that got removed from the catalog but not from my hard drive. This has mostly happened because I used the wrong keystroke combination. But now I'm stuck how can I find and remove these files?
    Best strategy so far:
    - Use Synchronize folders to find files missing from the catalog
    - Reimport with a keyword - deleteme.
    I would really rather avoid this because I really don't want to risk any chance of having these files back. Any other ideas?
    Cheers
    Mark Levison
    Mark  Levison | Agile Pain Relief  Consulting | Agile Editor @  InfoQ
    Blog | Twitter | Office: (613) 862-2538
    Recent Entries: Self  Inflicted Agile Injuries, Why  use an Agile Coach

    This method won't work, if you want to preserve a custom folder structure, but I'll mention it anyway…
    You could select all images in your current catalog and perform an "Export as Catalog…". Make sure to check "Export negative files" and "Include available previews" and select a destination folder for the export.
    That will copy your catalog, the original images with all info, adjustments etc. and the previews. Once completed open the newly exported catalog and verify that all images were successfully copied to the new location.
    If all went successfully, you can then delete your original images folder, which will get rid of all the non-referenced images in one fell swoop.

  • How to attatchment some files that are in other server to send an email?

    Hi
    I need to send an enmail with sql, but i have to attatchment some files, those files are in anohter server, so I want to know, how attatchment those files? 
    Thanks in advance 

    Yeah, I don't know if you can attach a file on a remote server.  Why not just copy it over to the SQL Server machine, and attach it form there (which would be the local machine when the file is downloaded).
    Please see this for info about using email in SQL Server.
    Create account, permission account, and send Email from SQL Server Express:
    http://www.sqlservercentral.com/blogs/querying-microsoft-sql-server/2013/09/02/sending-mail-using-sql-server-express-edition/
    Check email event log, and remove unsent emails from server
    http://www.dotnet-tricks.com/Tutorial/sqlserver/4761260812-Remove-unsent-database-email-from-SQL-Server.html
    Troubleshoot email error message:
    http://www.mytechmantra.com/LearnSQLServer/Troubleshooting-SQL-Server-blocked-access-to-procedure-sp_send_dbmail.html
    When you get your email processes working fine, download the file using C#.
    http://www.microsoft.com/en-us/download/details.aspx?id=34673
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Net;
    using System.IO;
    namespace ConsoleApplication2
    class Program
    static void Main(string[] args)
    string localPath = @"C:\Downloads\";
    string fileName = "your_file.txt";
    FtpWebRequest requestFileDownload = (FtpWebRequest)WebRequest.Create("ftp://ftp.server.com/" + fileName);
    requestFileDownload.Credentials = new NetworkCredential("your_username", "your_password");
    requestFileDownload.Method = WebRequestMethods.Ftp.DownloadFile;
    FtpWebResponse responseFileDownload = (FtpWebResponse)requestFileDownload.GetResponse();
    Stream responseStream = responseFileDownload.GetResponseStream();
    FileStream writeStream = new FileStream(localPath + fileName, FileMode.Create);
    int Length = 2048;
    Byte[] buffer = new Byte[Length];
    int bytesRead = responseStream.Read(buffer, 0, Length);
    while (bytesRead > 0)
    writeStream.Write(buffer, 0, bytesRead);
    bytesRead = responseStream.Read(buffer, 0, Length);
    responseStream.Close();
    writeStream.Close();
    requestFileDownload = null;
    responseFileDownload = null;
    Sorry if this is a little more complex than what you were looking for, but I think this is the easiest way to do it.  :0
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • I would like to use GarageBand to remaster downloaded music files that are in iTunes.  Poorly mastered files keep clipping and damaging my speakers.  When I try to use an iTunes file as a new project, it greys out the iTunes songs so I can't select them.

    I would like to use GarageBand to remaster downloaded music files that are in iTunes.  Poorly mastered files keep clipping and damaging my speakers.  When I try to use an iTunes file as a new project, it greys out the iTunes songs so I can't select them.  Any ideas?

    As I said - look whether your original file is damaged or not. If not, I wouldn't change it and find out what in your system makes it sound like it's clipping.
    Good sound file, with volume maxed out. No need to change anything.
    The same song clipped - no chance to repair.

  • How to play video files that are in Drop box on iPod?

    How to play video files that are in Drop box on iPod?

    I am going to have to write a technote about this, because it comes up a lot.
    Flash Player itself is designed to play SWF content as a browser plugin or as an ActiveX control (when it's IE Windows).
    There is a standalone Flash Player, but that's something Adobe  provides directly as a feature of Flash CS4 Professional. It gets installed with Flash. We have made some standalone players available on http://www.adobe.com/support/flashplayer/downloads.html, but not all (and I don't know why.  Looking into it)
    There are numerous 3rd party standalone SWF players out there though.  Some designed to just play video, others that play full SWF. I suggest a google search of 'play SWF standalone' and read the results.
    On the Mac, consumers who want to play SWF content off their desktop can use the Adobe Media Player. You can import a local SWF (and FLV and other video) and play it in AMP.  Get it here:
    http://www.adobe.com/products/mediaplayer/
    That's Mac only, doesn't work on Windows.

  • How get files that are in Windows directory from a job is running in AS400

    Hi Experts,
    Please help me with this, I have a background job that call FTP_CONNECT for connect to a FTP directory, when i run manually the program this works very good; but when is runing like job it isn't works; SAP is in AS400 and the FTP directory is in Windows, also i tried use the CL_GUI_FRONTEND_SERVICES for access to the directory but it isn't works like job.
    The big question is How i can get files that are in the Windows directory from a job that is running in AS400.
    Is anyone can help me? Thanks for your kindly support in advance.
    Best Regards,
    Darwin Panchi

    It's impossible to access Windows directories running through job. To do this, the files must be transfered to Unix.
    Not true.  You can mount a Windows server folder location in the SAP AS400 directory landscape and access it from SAP programs in the foreground or the background.  You can also hit a Windows client or server location with FTP as well. 
    For Darwin, if the Windows location belongs to your domain, have your Basis team map it to your SAP app server folder landscape so you can access it directly or as Este suggested, try the background destination SAPFTPA for the FTP approach.

  • HT1751 how do i move songs that are in separate albums into the same album?

    how do i move songs that are in separate albums into the same album?

    Of course it should, but if it doesn't do you want fix it or leave it broken? iTunes draws on the CDDB database for track details. That database is incomplete, contains errors, and isn't explicitly designed to be "iTunes friendly". If you download an album from the iTunes store then the tracks should normally be grouped together, although there are ways of sorting the Songs view that will always break things up. If you purchase from Amazon, elsewhere, or rip your CDs then you may sometimes need to make a minor update to the tags to tidy things up. Which workaroud is needed depends on context, but the most common one of setting an Album Artist takes a few seconds.
    tt2

  • On Windows 7, neither my quicktime or iTunes will start. This started after I installed the newest update. All the files that are needed are there. I recently updated Quicktime to see if that would work, but it didn't.

    This started after I installed the newest update. All the files that are needed are there. I just updated Quicktime to see if that would work, but it didn't. I looked through some other discussions like this, and found out that all of my files are correct. Some people are saying that they needed to remove Filebot, but I can't find that on my computer. Help, please?

    This started after I installed the newest update. All the files that are needed are there. I just updated Quicktime to see if that would work, but it didn't. I looked through some other discussions like this, and found out that all of my files are correct. Some people are saying that they needed to remove Filebot, but I can't find that on my computer. Help, please?

  • Since updating to the latest version of iTunes (11) I cannot find the files that I need to export from apps on my iPhone to my Desktop PC

    Since updating to the latest version of iTunes (11) I cannot find the files that I need to export from apps on my iPhone to my Desktop PC

    Follow these instructions to completely remove Apple software
    http://support.apple.com/kb/HT1923
    Then use free Ccleaner to repeatly repair your registry until it's fixed.
    http://www.piriform.com/ccleaner/download/standard
    download iTunes again from Apple.
    Your content will remain.

  • Why won't my Intel iMac boot up, either from the internal hard drive or the DVD drive? It just displays a light grey screen, without any other icons, etc. The fact that it won't boot from the original system DVD is what baffles me the most. Any ideas?

    Why won't my Intel iMac boot up, either from the internal hard drive or the DVD drive? It just displays a light grey screen, without any other icons, etc. The fact that it won't boot from the original system DVD is what baffles me the most. Any ideas? It uses the latest version of Mavericks. Thanks!

    If the C key for Install Disc or R Command for OS X Recovery startup commands are not working, try holding the Option key for the Startup Manager.
    see > Startup Manager: How to select a startup volume
    If that does not work and you using a wireless keyboard, it may have become unpaired and you need to dig up a USB keyboard to invoke the startup commands.
    For more on gray screen, see > Mac OS X: Gray screen appears during startup

  • I have a classic iPod with songs that were put on it from a different computer. If I plug it up to my computer, will it keep the songs that were originally on it from the previous computer AND allow me to put new songs on it from my computer?

    I have a classic iPod with songs that were put on it from a different computer. If I plug it up to my computer, will it keep the songs that were originally on it from the previous computer AND allow me to put new songs on it from my computer?

    No.  Your iPod is designed to sync with one computer/iTunes library at a time. If you try to sync it with a new computer/iTunes library, the contents currently on the iPod will be erased and replaced with content from the new library.  So you'll want to copy what is currently on the iPod over to your new iTunes library first before syncing it.
    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

  • How to identify the files that are exported but still present in Oracle UCM

    Hello All,
    I am using Oracle UCM 11g on Windows OS.
    I want to know that if i have exported the contents from Oracle UCM to external file system, but keeping the contents and metadata into the Oracle UCM. How one will be able to identify that the contents that are being exported? Will there be any attribute set for any such contents indicating that these contents were exported?
    Your help or hint will help me out in resolving the problem.
    Thanks in Advance
    Dipesh

    Hi Srinath,
    Thanks for the reply.
    I did not find the place where to check this?
    On the content tab of the Repository Manager Applet, what is the column do i need to set for indication that the content is archived?
    Regards
    Dipesh

  • I have converted most of my windows media files to itunes. However I had to close it down about 3 quarters of the way through. It then processed the album art. How can I convert the files that it didn't finish doing the first time? thanks

    Hi there,
    hope you can help me. I helped my sister convert her window media files to itunes and set up an account for her. Unfortunately her computer is really slow and it was really late and we had to turn it off. It processed some of the album art for the files that it had converted. However, some songs were not converted and because there was quite a few left, I don't really know which ones did not get converted as I selected  all of the folders. How do I find out which ones I have left to convert and put the rest of the songs onto itunes for her please? Or are they on the itunes still as they showed up initially on itunes in the list to be converted.
    Thank you!

    You could convert them all again and then dedupe, or use a Windows search to reveal all the WMA files and then try to work out which still need to be converted. If you're lucky iTunes would have processed the imports in alphabetical path order so it would just be a matter of working out where it had got up to...
    tt2

  • How to read .dat files that are hidden?

    Is it possible to read .dat files that are set to hidden? 'cause what i did was i created a .dat file and set its attributes to hidden and my Read file code cannot read hidden files.
    here's my Read file code:
    Scanner read=new Scanner(FileReader("C:\password.dat"));
    and another thing, how do you Write a .dat file that is hidden too? 'cause my password.dat file needs to be updated.
    here's my Write file code:
    PrintWriter write=new PrintWriter("C:\password.dat");
    thank for the help.

    There should not be any problems opening up hidden files. Your problem is probably elsewhere (for example, you didn't escape the backslash, so what you posted is not your code).

  • Full bkp currently running, what are the files that are already backed up?

    DB Version:10.2.0.4
    OS : Solaris 10
    Full backup of a huge database (1.5 TB with 540 datafiles) is currently underway. We are getting messages like
    input datafile fno=00021 name=+DGDATA1/fn_lmdata.dbf
    input datafile fno=00052 name=+DGDATA1/fn_675.dbf
    input datafile fno=00059 name=+DGDATA1/fn_binc.dbf
    input datafile fno=00160 name=+DGDATA1/fn_mbi.dbf
    channel s2: starting piece 1 at 27-DEC-10
    channel s1: finished piece 1 at 27-DEC-10
    piece handle=/rmanbkp/opnli_stm0jhlr_1_1.rmbk tag=TAG20101227T063256 comment=NONE
    channel s1: backup set complete, elapsed time: 02:16:18
    channel s1: starting full datafile backupset
    channel s1: specifying datafile(s) in backupset
    input datafile fno=00095 name=+DGDATA1/cti_87.dbf
    input datafile fno=00062 name=+DGDATA1/fn_ws_test.dbf
    input datafile fno=00326 name=+DGDATA1/fn_tr_test.dbf
    input datafile fno=00213 name=+DGDATA1/harp_934.dbf
    input datafile fno=00188 name=+DGDATA1/fn_test_demo2.dbf
    .The files are not backed up alphabetically. We would like to know what are the db files that are already backed up? Is there a command i could run from another RMAN to get the already backed up files.

    I think you can query your catalog for this information.
    Or use
    LIST BACKUP; (in RMAN)
    Or
    alter session set nls_date_format='dd/mm/yy hh24:mi:ss';
    select SID, START_TIME,TOTALWORK, sofar, (sofar/totalwork) * 100 done,
    sysdate + TIME_REMAINING/3600/24 end_at
    from v$session_longops
    where totalwork > sofar
    AND opname NOT LIKE '%aggregate%'
    AND opname like 'RMAN%';
    Or
    -- Datafiles Backed up during past 24 Hours
    SELECT dbfiles||' from '||numfiles "Datafiles backed up",
    cfiles "Control Files backed up", spfiles "SPFiles backed up"
    FROM (select count(*) numfiles from sys.v_$datafile),
    (select count(*) dbfiles
    from sys.v_$backup_datafile a, sys.v_$datafile b
    where a.file# = b.file#
    and a.completion_time > sysdate - 1),
    (select count(*) cfiles from sys.v_$backup_datafile
    where file# = 0 and completion_time > sysdate - 1),
    (select count(*) spfiles from sys.v_$backup_spfile
    where completion_time > sysdate - 1)

Maybe you are looking for

  • Actual cost of the employee from HR  to be  posted in projects

    Hi experts, Help needed. Scenario: Employee fills in time sheet (CATS) against WBS  element  (different for different projects) which is transferred to HR (IT 2002). Overtime hours is also recorded. Time evaluation and Payroll is run for the respecti

  • Problem with Phantom Assembly

    Hi expert, I have question with BOM and production process. In packaging industry, At start we have 8 components for finish goods. but recently, 2 component 0020 and 0030 (example bottle cap and sticker) will issue from warehouse for assembly process

  • How to measure time spent on socket read() method ?

    Hi, I have a socket waiting for input stream from a remote host : // method blocks until some input is available int count = socket_host.getInputStream().read(bytes); I want to know how much time it took to receive "count" bytes from remote host.    

  • Programming for the mac without using xcode

    Hi I'm very new to programming for Apple platform. I wanted to clear some doubts which is currently standing as a barrier in getting started. Can I use a text editor (preferably TextMate), Interface Builder, and the Terminal (without using xcode to w

  • System exec

    Hello, I have a problem with the system exec, in many cases i will not get the output from the command. I am executing many snmp commands and when i will execute them manually i will see the output but with the system exec the standard output will be