Can anyone share the knowledge of how to download a file to clients

Here is what I've to do:
I've a text file on server.
Client can download that file whenever he/she wanted.
What is the easy/best/efficient way to do this.
I know how to read the file using streams
I know hot to write to the file using steams
But I've no knowledge of sockets.
JAVA and/or JSP is ok.
Thanks in advance!!!

Looks like the file should be on a FTP / HTTP server. The client would then use standard URL-based classes to retrieve it (see java.net.URL and java.net.URLConnection). Whatever you end up doing, I would not advise you to do socket programming when it's already done for you.

Similar Messages

  • Can anyone explain in simple steps how to download pdf file from my ipad (ibooks) to mac mavericks ( ibooks) please only workable solution should be displayed

    I would like to download my books and pdf file from my ipad ( ibooks) to my macbook pro (ibooks) both using the same icloud and  apple id.
    no joy and getting annoyed. Please help me

    Since the iTunes update 11.1.3 this should happen automatically!
    P. Bowden

  • HAVING TROUBLE SAVING ITEMS IN LION AS IT IS DIFFERENT THAN SNOW LEAPORD... CAN ANYONE SHARE THE CORRECT PROCEEDURE?

    I'M HAVING TROUBLE USING THE SAVE FEATURE IN LION AS IT'S MUCH DIFFERENT THAN THAT IN SNOW LEAPORD, CAN ANYONE SHARE THE CORRECT PROCEEDURE TO SAVE A DOCUMENT?

    Revert back to Snow Leopard would be the ideal choice.
    Not writing in all caps would be nice too, it's SHOUTING
    Thirdly, Lion introduced auto-save, so you have to duplicate the file, then open the duplicate to make changes.
    Wonderfully asinine.
    Quit the program, it will ask you to save.

  • Can anyone share the query for inventory aging report

    Is there any standard reports for inventory aging in oracle ebs 12.1.3 ....... If not can anyone share the query for inventory aging report

    Hi,
    It may not be so simple as you are trying to reproduce the historical value.  I believe you have to create a temporary table first.  Or you may use Command feather to get the required data in advance.
    Thanks,
    Gordon

  • Can anyone offer info on why/how to upload raw files from Nikon D610 to latest version of aperture?

    I just upgraded to the latest operating system AND Aperture software program so I could import raw files from the Nikon D610, but the files are still being imported as unsupported image format.  Is there a setting that I need to set to get this to work?  I can't believe I spent all day upgrading the operating system and then my old version of Aperture, only to find out it still won't support the raw files from my new camera.  Anyone else having this problem?

    I just upgraded to the latest operating system AND Aperture software program so I could import raw files from the Nikon D610, but the files are still being imported as unsupported image format.  Is there a setting that I need to set to get this to work?  I can't believe I spent all day upgrading the operating system and then my old version of Aperture, only to find out it still won't support the raw files from my new camera.  Anyone else having this problem?

  • Where can i find the directiond for how to download pics from my pc to my ipad

    I have saved a file on my desktop on my pc of some pictures i want on my ipad..... how do i get them moved to my ipad?

    There are instructions for syncing photos from your computer to the Photos app here : http://support.apple.com/kb/HT4236

  • How to download a file from database

    Hi,
    My flex application contains a form that uploads a file into the server. This file is however saved in the database, and not on the disk. Most of the tutorials in the database explains how to download a file by passing the file's url to the "download" function of the fileReference Object. That dsnt work for me as my file is saved in the database.
    How do I download this file from the server ?
    For example, in php, we would do smthing like this :
    $content = $file_to_download['content'];
    $size = $file_to_download['content_size'];
    $type = $file_to_download['content_type'];
    $name = $file_to_download['filename'];
    header("Content-type:$type");
    header("Content-length:$size");
    header("Content-Disposition:attachment;filename=$name");
    header("Content-Description:PHP Generated Data");
    echo $content;
    When executing this file, it opens up the "download file" dialog box. How do i get the same effect in flex 4 ?

    You need the bytes use FileReference.download() and after download you can save
    it on disk with FileReference.save(); You also need FP 10 at least I think. Use
    the docs they are less error pron than mi memory :).
    C

  • Can anyone share with me how you  write Javadoc?

    Can anyone share with me how their companies write Javadoc?
    Are your developers solely responsible for it? Do your technical writers own it or review it? How do you make sure it's good?
    Right now, my software developers are mostly responsible for writing all the API info and it's of poor quality and really lacking details. I don't mean spelling/grammar-type problems. My developers just don't seem to "get" what information to include, no matter how many guidelines or checklists I give them.
    A very simple example is:
    * Gets the status
    public java.lang.Integer getStatus() {...}With no indication of what status values may be returned and what the values might mean.
    How do you ensure that what you write is actually useful? Please help!
    I'm aware of the method Sun recommends, but I want to know what others do.
    Thank you

    Hi,
    Well, concerning the question what a good API documentation should be. Just imagine, you are a programmer and you want to use that API. You need to know how it works. There can be only three ways to find it:
    (1) The API documentation
    (2) Probing experiments. Even a good documentation may not describe everything. Sometimes, the only way to understand certain things you particularly need may be guessing something, writing a code basing on it and see how it works. Then, guessing something again, more precisely now, and so on. Even a very good documented API (for instance, javax.swing) may require that sort of approach to be able to use it eventually.
    (3) At last, when source codes are available, one may look at them and try to understand precisely, what a particular method actually does.
    I think the better the API documentation the less one may need to endeavor those two last steps. There is actually a limit about it. Without any proper explanation at all, one may never be able to use a particular API, neither after probing it nor after looking at source codes (that is not to say the sources may be simple unavailable at all).
    Concerning how to write the API documentation, that's mostly the question of managing your team. I think, basically, the original source of the ultimate information about everything implemented in the projects are those very programmers (developers) and, probably, some software architects. But those guys normally are not especially eager to write any documentation (especially developers). That your example just demonstrates it. It seems, your programmers just wrote that "Gets the status" for you to make them leave in rest after that. In addition, the programmers normally have such a sort of work and activity that does not match particularly well with the writing literature and doing their main job simultaneously. You should not enforce them to do that!
    To write a good documentation, you will need to engage a technical writer. That's normally a guy with some programming background. However, writing some literature is actually what he does the best. (Sometimes, such people do something else about written word beyond the technical writing.) The job of that guy would be to write the documentation. This will take from him (or her) two basic things:
    (1) The ability to understand the whole software system (that's where his programming background will be needed!);
    (2) To communicate with the programmers who have developed the stuff and to obtain from them all the necessary information they know. That may require some personal (verbal) communication with them, because asking them to write everything again will only result in the same "Gets the status" explanations. However, to be successful in this, the technical writer needs to have some explicit management approval behind him. Otherwise, some of the guys will avoid speaking to him at all (saying they lack the time). So, the management should assign them the necessary priority for such communications.
    Particularly big projects may even need to have the whole team of technical writers.
    Anyway, writing docs is a hard work. But it is extremely important! The good documentation may both increase your sales and eliminate lots of expense on further support of your customers.
    Regards,
    Leonid Rudy
    http://www.docflex.com

  • Can anyone share how to install Internet Explorer version 7.0 to 10.0 onto a mac

    Can anyone share how to install Internet Explorer version 7.0 to 10.0 onto a mac ?? Thank you

    Do you want to install IE on a Bootcamp/Windows or OSX? OSX does not have IE anymore. The last IE was v4.0 for native OSX.

  • How can I share the home folder with different accounts on the same mac?

    Hi, here's a question:
    How can I share the home folder with different accounts on the same mac?
    The whole point being not to have to install all my apps, and move all my files each time between users.
    The second thing would be to be able to modify one document on one account, and have it changed on the other account without having to copy it.
    I would like to have a pro and a private account on my mac.
    Thanks for you answers,
    Doug

    Your apps should not be installed in your home folder--they should be in /Applications where every user can access them.
    If you want to share things between users on the same Mac, use the /Users/Shared folder. Keep your home folder private. Trying to defeat the protections on the home folder subfolders just gets messy. I've never bothered to figure out all of the problems associated with it so I can't explain how to do it.
    Even with using Shared, you would need to alter the ACLs on the shared folder in order to allow both users to modify the documents.
    You must create a Group in Users & Groups and put each user in that group. Then create a folder inside /Users/Shared where you want to share the various files.
    Then, add an ACL to the shared folder that gives the group special permissions. on that folder.
    sudo chmod -R +a "<sharinggroup> allow delete,chown,list,search,add_file,add_subdirectory,delete_child,file_inherit,directory_inherit" /Users/Shared/<sharing folder>
    Replace <sharinggroup> and <sharingfolder> with the name of your group and your folder. Then, run the command in the Terminal.
    With that ACL, each user in <sharinggroup> will be able to alter the files created by any user in the group in that <sharingfolder>.
    Essentially, the client OS is not designed for true file sharing among the individual users. It is designed to isolate each user account from the others.

  • My husband and I have separate iTunes accounts, how can I share the tv shows I have already purchased so he can have them on his iPad?

    My husband and I have separate iTunes accounts, how can I share the tv shows I have already purchased so he can have them on his iPad?

    Here you go!
    http://support.apple.com/kb/ht2688

  • When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

  • How can I merge all of my iTunes libraries with my wife and kids so we can all share the music?

    how can I merge all of my iTunes libraries with my wife and kids so we can all share the music?
    There are 3 accounts that I want t o transfer all the music to
    Joe

    Welcome to the Apple Community.
    You can't merge accounts.
    You can however share or import content from another library/account using homesharing.

  • I bought a Mountain Lion upgrade for $20 off the Apple site. I have four other Macs all under the same ID. How can I share the new OS with other computers. Or can I?

    I bought a Mountain Lion upgrade for $20 off the Apple site. I have four other Macs all under the same ID. How can I share the new OS with other computers. Or can I?

    You can share it with other Macs under your control (not your neighbor's).  You just need to be logged in under the buying AppleID for updates or to download again.
    Use this thread to find a method of copying the ML download into a USB drive to make other installations easier: https://discussions.apple.com/message/16639520#16639520

  • My wife and i both have separate Itunes account. How can we share the songs we purchased so we dont buy the same song twice?, My wife and i both have separate Itunes account. How can we share the songs we purchased so we dont buy the same song twice?

    We have two different iTunes account, how can we share the songs?

    Here you go!
    http://support.apple.com/kb/ht2688

Maybe you are looking for

  • How to set width to be same as screen size?

    Dear all I want to set the width of my view elements to be same as that of screen size, so that if a user with low resolution monitor runs it, or if a user with high resolution monitor runs it, both see the same. I tried setting the width to 100%. Bu

  • E-mails I did not send

    Hi keep getting a faild dil. from postmaster from e-mails I did not send so now Iam blocked from sending e-mails and can,t contact sup. by email. some time a hundred a day

  • Message type NEU in POs

    Hi, how can I set SAP so that it will create automatically two message type NEU one in italian and the other one in english ? Regards

  • Essbase Integration Services problem.

    Hi All, Thanks in advance. I have access to only EIS Console through Citrix. When I start EIS Console, after first loginwindow, it is throwing the error like " Server is not running, make sure that this is running" like so. As i think this is for EIS

  • The iphone couldn't be restored because the firmware file is not compatible .

    Hello all my question is : I have iphone 4, I did upgrade for iphone4 to ios 5.1.1 three days ago now I wanna upgrade to ios 6.0 , when i want to upgrade, message appears tells me : The iphone couldn't be restored because the firmware file is not com