Is there an API to get a fila from classpath

hi,
is there an API to get a fila from classpath ?

Class.getResourceAsStream() will load a file from the CLASSPATH and return the InputStream.

Similar Messages

  • Is there any way to get the files from other computer ?

    Hai all,
    I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
    regards,
    Namanc

    Bro Take it easy.
    Think you need to send a Image file named ("abc.gif")
    now develop a server using ServerSocket and connect it in local IP and any PORT
    For example i think ur server is connected in "localhost" and 9000 port.
    Now make ur server educated using some commands.
    For example:
    FileName: <File Name String>
    [Means new file is sending by connected client]
    FileSize: <File size long or int value>
    [ So that ur server can determind about the total length of sender file]
    DataModeOpen
    [Now your client will send its image data, this command means your client software is sending data]
    fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
    l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
    2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
    DataModeClose
    [Means file sending finished]
    Close
    [Means your client connection is closed]
    Now develop a client supporting this command.
    For example(Server):
    String getFileName=null;
    long getFileSize=0;
    public handleCommand(String getCmd) {
        if(getCmd.startsWith("FileName")) {
                String[] splitData=getCmd.split(":");
                this.getFileName=   splitData[1];
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("FileSize")) {
                String[] splitData=getCmd.split(":");
                this.getFileSize=Long.parseLong(splitData[1]);
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeOpen")) {
               //data mode open so receive data
              receiveData();
              outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeClose")) {
              //close client socket
             getClientSocket.close();
    }For client:
    DataInputStream dataIn=null;
    BufferedOutputStream bout=null;
    public sendFile(bytes[] getBytes) {
            //if ok found then do other or show error message
        if(sendCmd("FileName:"+getFileName)) {
            if(sendCmd("FileSize:"+getFileSize)) {
                if(sendCmd("DataModeOpen")) {
                   bout.write(getBytes);
                } else {
                   showError(3);
            } else {
                   showError(2);
       } else {
            showError(1);
    }i think it will help u

  • WHITE SCREEN OF DEATH! (is there a way to get my files?)

    I have a 80GB video ipod
    and
    i have the white screen of death. (google it if you've never heard of it)
    honestly, i don't care if my ipod never works again. (I'm so fed up with Apple.)
    as long as I can get the mp3s off of it.
    I have 40GB in mp3s that I REALLY want!
    so if theres ANY way to get the data off and onto a computer
    it would be MUCH help.
    Oh, and yea, my computer doesnt recognize the ipod when it's charging it.
    so yea.
    thanks in advanced for helpful tips and suggestions.
    Message was edited by: tila123

    You cant get the files from a dead iPod, however, I managed to solve this problem with my friend's iPod, by putting it into disk mode. Have a read
    http://www.zolved.com/synapse/viewcontent/19067/The_Apple_iPods_White_Screen_ofDeath

  • Is there any way to get the file for your site from Creative Cloud?

    I lost the file for my Muse site and was wondering if there was any way to get the file from the server or from somewhere in Creative Cloud.
    Thanks.

    Are you Mac or Windows?

  • I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again?  I stupidly synced the wrong one.

    I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage when I thought I was syncing correctly I wasn't so I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again? 

    Have you not got a backup of your content on, for example, external drives ? If not then you could have a look to see if any of the utilities mentioned in this old post still exist and work : https://discussions.apple.com/message/11014893?messageID=11014893#11014893

  • Is there any way to get .wav files to play on iOS devices?

    Is there any way to get .wav files to play on iOS devices? I know some apps can play .wav however I was looking to have safari load a suitable player as needed, but it shows a audio file with a line across it... and does not play the file. Any workaround? Thanks,
    Fabio

    Hi James,
    That is very helpful, thanks. However, that ends up presenting two other problems...
    Initially, the original .wav file has to be downloaded somewhere, how does one download a file from Safari to the phone and then open the file with the app? Is there any way to configure iOS to always use an app for a particular file type? How does iOS handle file types? Do you know why safari does not allow add-ons? Can I configure another app as the 'default' browser?
    Once again, thanks for pointing this out.
    Best wishes

  • Get all files from Directory

    Hi All,
    My requirment is to get releted files from Local Directory.
    For Example Path is "D/Data/"
    in this path there is files like
    abc123_de.txt
    abc123_en.txt
    xyz123_de.txt
    abc123_pt.txt
    xyz123_en.txt
    pqr123_en.txt
    bcg234_en.txt
    sjd467_en.txt
    Now i want to use only files which are strart from abc123 and use their data.
    From which FM i can do it or how can i do this?
    Thanks,
    Mahipalsinh

    Dear Mahipalsinh,
    I have got the same requirement some days back, i think there is no FM for your requirement. so what i did, i have get all the files using below FM and Concatenate the ABC.
    Please use the Below FM, because if the file name is above that 50 character that time always it gives the full file name. Please check, if u used the other one for getting the Files.
       CALL FUNCTION 'EPS2_GET_DIRECTORY_LISTING'
         EXPORTING
           iv_dir_name            = lv_dir_name
         TABLES
           dir_list               = lt_file_name
         EXCEPTIONS
           invalid_eps_subdir     = 1
           sapgparam_failed       = 2
           build_directory_failed = 3
           no_authorization       = 4
           read_directory_failed  = 5
           too_many_read_errors   = 6
           empty_directory_list   = 7
           OTHERS                 = 8.
       IF sy-subrc <> 0.
    * Implement suitable error handling here
       ENDIF.
    For reading Specific Files.
    CONCATENATE 'AP' lv_internal_date INTO lv_filename.
             LOOP AT  lt_file_name INTO ls_file_name.
               lv_index = sy-tabix.
               IF ls_file_name-name CS lv_filename.
              " PUT YOUR LOGIC
              endif.
         endloop.
    Thanks,
    Nishant

  • How do I get GarageBand files from an older mac onto my iPad 2?

    How do I get GarageBand files from an older mac onto my iPad 2? I can open the GarageBand Documents folder through iTunes while the iPad is sync'd but I can't seem to "add..." any of my old .band folders to the iPad to be able to view those music projects. When I tried I could only sync individual data files contained in the .band folders over to the iPad and there was no way to organize them into .band project folders. What can I do here to get these GarageBand projects onto my iPad for further use?

    This is not currently possible. You can transfer an iPad project to the Mac, and transfer songs/loops from the Mac to iPad, but not GB files from Mac to iPad.
    Send feedback
    http://www.apple.com/feedback/

  • I am facing problem to get text file from application sever

    Hi This is lokesh.
    Actually my requirement is to craete sales orders by getting file from other server.for that i have used shell script to connect that server.Ok i am connecting to that different server(not sap server) successfully.
    But my problem is getting text file from application SERVER.
    That different server people will send the file name as 'DDHHMMSS' (Days,Hours,Minutes,Seconds).
    Just suppose if they will send today means that file name will come as 20103025. and with in half an hour if they again send that file file means that file name as '20110025'.
    like that file name is always varies.So how can i read that type of text files from the application server.
    and one more thing that is there chance to read morethan one text file from application server.
    Pls guide me if u know the solution.PLs this requirement is urgent.
    Regards,
    Lokeshgoud

    Hi..,
    <b>Just execute this program ... this is for the files received in JUST 3 MINS...</b>
    change it according to your requirement !!
    data time type sy-uzeit value '100000'. <i>"<<----start time</i>
    data file(8) type c value '20'.
    do 180 times. <i>" <<----- for 3 minutes</i>
    add sy-index to time.
    concatenate file time into file.
    write / file.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC EQ 0.
    PERFORM READ_DATASET.
    ENDIF.
    file = '20'.
    time = '100000'.
    ENDDO.
    <b>form read_dataset.
    read the file here with the file name <b>FILE</b>.
    endform.</b>
    regards,
    sai ramesh

  • HELP!!! Can I get back files from a folder that has been copied over?

    I had a file in the trash with the same name as a file on my desktop. I accidentally started copying it from the trash to my desktop. It erased some of the files I had on my desktop in that folder that were very important, before I could stop it from copying. Is there any way to get the files back? They had been on my desktop for a few months. I'm thinking that maybe they are stored somewhere on the computer. I tried a search but came up with nothing. I usually back up to a external hard drive but I didn't this time and I'm paying for it now!

    When a file is erased, the space on the drive that the data occupies is not necessarily erased. It is just unallocated, so that other new data can use it. However, until that new data overwrites that same physical space on the drive, your old data may still be recoverable.
    To do this, you need to use a data recovery tool. There are tools that specialize in data recovery, such as
    http://www.prosofteng.com/products/data_rescue.php
    and other tools have a have multiple functions, including data recovery
    http://www.micromat.com/index.php?option=com_content&task=view&id=202&Itemid=107
    If you want to try recovering the data using such a tool, you should stop using the Mac (or use it as little as possible). Any use of the Mac will make it more likely that the space occupied by the old data will be overwritten. If that happens, the portion that is overwritten will not be recoverable.
    This is a good example of when Time Machine (part of Leopard and Snow Leopard) would be extremely helpful. It does backups to an external drive automatically, in the background, once per hour that the Mac is active. You just set it up and then forget about it. You can get any file back that you accidentally erase, even an older version of it.

  • HT201272 IS THERE ANY WAY TO GET PROGRESS BACK FROM A DELETED GAME THAT HAS BEEN BACKED UP ON MY COMPUTER? I HAVE TRIED TO SYNC THE IPOD AND THE PROGRESS DOESNT RETURN, ITS MINECRAFT.

    is there any way to get progress back from a deleted game off ipod/ it was backed up to the computer but when i synced the ipod the progress didnt return.  its minecraft game

    - Just transfer the apps and iBooks to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    In iTunes 11 use Control+B to show the Menu bar then go to iTunes>File>Devices>Transfer Purchases
    - Preferences and photos taken by the iPad are included in the backup that iTunes makes
    nursebones wrote:
    No music. All my music is on my computer and my iPOD. Just need to backup apps, preferences, iBooks, and photos taken on the iPAD.

  • Is there a way to open Excell file from the server and display in the UI and save it back on to the

    Hello there,
    Is there a way to open Excell file from the server and display in the UI and save it back on to the server? (like showing xell file as a datagrid - add rows, columns etc.)

    Hi Mike,
    Welcome you to the forum.
    You may try:
    SELECT * FROM MyDBNameHere.dbo.OUSR T0
    Thanks,
    Gordon

  • How to get a file from an internet site

    I have a scenario where I need to get a file from a website.
    Basically on a weekly basis one our customers are going to upload a file that contains all the information for delivery's for the coming week.
    the way this used to be done is the user would go to the website directly and download the uploaded file.
    However now we want to do it as an automatic integration using PI.
    Does anyone have an idea how to do this?  Is it even possible?

    > Thridly my issue with regards to taking a file that is uploaded to a website (it will be a csv file), can be solved by creating a webservice?
    I am sorry, I misunderstood this. I thought you want to download.
    The upload is done with a HTTP POST, so you can use the HTTP receiver adapter.
    Use the prolog and epilog to simulate the form data post.
    Use an HTTP sniffer to get the whole HTTP stream, when you upload the file to the website to see, what you have to put in the HTTP adapter settings.
    Here are some threads about that topic:
    Receiver HTTP Adapter - multipart/form-data file post - SP19
    Re: HTTP Form Post Using HTTP adapter
    Regards
    Stefan

  • I still have my iPod Nano 3rd generation, but my old computer crashed and I did not have itunes backed up, so I lost my library. Is there a way to get the songs from my old ipod to new computer library and then on to the new ipod?

    I still have my iPod nano 3rd generation, but my old computer crashed and I did not have itunes backed up. Is there a way to get the music from ipod to new computer library and then on to the new ipod ?

    Save all the photos from your Droid into a folder on your computer.
    Connect your device to your computer. On iTunes left Pane, select iPhone under 'Devices'; then on the right Pane, select PHOTO tab.  Make sure Sync Photo box is checked, and "from" box selected the folder that has Droid's photos.  Then click the SYNC or APPLY button on the lower right window.

  • Is there any way to get my photos FROM my iPod Touch back onto a new hard drive?

    My Mac crashed last Friday. First timeIs there any way to get my photos FROM my iPod Touch back into my new hard drive. The iTunes sync only goes one way from the computer to the iPod.
    It syncs the photos taken with the iPod (really an old iPhone 3G without phone service) but not the folders which I synced from the old hard drive to the iPod over the past year.

    thank you for the tip.
    Yes, my computer was backed up. for reasons way too complicated to go into here, these particular folders were not part of the backup.
    Thanks again for the help.
    jglaiche

Maybe you are looking for

  • How to know if your hard drive needs to be replaced?

    My Compaq CQ56 laptop will not turn on properly, and I have found through some research that it may be a hard drive. I have run all of the tests in BIOS and it came back as good, but I'm not sure that it is. The computer will turn on sometimes, but n

  • Help iPad wont charge with either

    Can someone please help me, iv only had my iPad a few days, now it wont charge, I have tried both the plug and USB connections and still wont charge have even left them in for two whole days any suggestions or has it got to back to shop I brought it

  • Material analyses report.

    Hi gurus, what are all involved in a  and what is a material analyses report <b>Material Price Analysis Report</b> could u plz explain. regards, siri. Message was edited by: sireesha yalamanchili

  • Enemies not being removed from stage when clicked on with mouse.

    I have ran into another problem, I have written the code for when I click on an enemy, it doesnt add a point to the score and it doesn't remove the enemy, I have a textfield which is called messageDisplay which is linked to the clickEnemy function. H

  • Can't import itunes songs from imovie

    When I try to play a song from my itunes list on imovie it doesn't play. Then if I drag it into the movie I get the following error message: "The file could not be imported: The file could not be found." If I open itunes I can drag the same song in a