Remote file browser

i am trying to make a remote file browser in j2me. it will be done by internet/http connection. By this, i want to browse remote files from my mobile. if anybody can give me the source code or do any kind of help, i will remain thankful...
Edited by: sadi_shihab on Mar 28, 2009 4:25 AM

There is a discussion here about how you can you update the RMS from a server. The issue is pretty much the same.
Hope it helps.
Regards,
David.

Similar Messages

  • Air Web browser with drag out remote files

    Hi
    I'm new in AIR so I have few questions.
    I want to create my own simple web browser where users can drag out files on desktop using links on web pages instead of normal OS download system.
    I've found function which works fine when I use static url and name but I don't know method how I can actually get real url and name.
    Method:
                 addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
                 public var fileDown:URLFilePromise;
                 public function mouseDownHandler(event:MouseEvent):void
                    fileDown = new URLFilePromise();
                    fileDown.request = new URLRequest("http://www.example.com/file.txt");
                    fileDown.relativePath = "file_name.txt";
                    var promises:Array = new Array();
                    promises.push(filePromise);
                    var clipboard:Clipboard = new Clipboard();
                    clipboard.setData(ClipboardFormats.FILE_PROMISE_LIST_FORMAT, promises);
                    NativeDragManager.doDrag(this, clipboard);
    Can anyone help with this ??

    Until the introduction of file promises in AIR Athena, it  has never been possible to drag remote files out of an AIR application.
    You could refer to the http://www.adobe.com/devnet/air/flex/articles/using_file_promises.html
    Hope this is helpful. Please let me know if I could help more.

  • Remote panel file browser help

    1. On my host machine I have a vi for controlling a microscope, camera, stage, etc.... When I login remotely from a client machine, I want to set the directory on the Host to which images will be saved. But when I click on the file browser I can only browse on the client.
    2. When remotely controlling panel from client, I need to load a *.log file of stage coordinates which are stored on the host. How do I browse the host. I am getting error 43 now and labview is stops running.
    Thanks,
    Elliot

    Hi Elliot,
    when you publish a vi by the LV Web server, only the vi front panel is exchanged. If the vi opens a file dialog this will not be published because it is not part of the vi front panel.
    An option is to build a sub-vi that displays a files/directories list in a listbox and use it to select a specific file/directory, obvioulsy the subvi should also be published by the WEB server. Note that the list box handles the double-click property, thus you can select an item by simply double-click on it.
    I understand this envolves some extra programming and the appearance would not be the same as a standard file dialog, but at the moment it's the only idea I got.
    Alberto

  • File Browse item...

    Hi everyone,
    I need a help...I'm sure it's a piece of cake for most of you...but.
    First of all I must explaine a architecture of the our application.
    So, we have a APEX and application which is placed on Server_01 and the data which are on Server_02. Databases are connected with a database link.
    Well, in the apllication I use the item "File Browse" to get some file from the hard disk of local computer.
    By default the file is saved in wwv_flows_files ( view on table wwv_flow_file_objects$ ).
    I need to insert that file on the remote database ( Server_02 ) over database link in the BLOB datatype field.
    ...so, if someone have any solution or experience...
    thanks,
    Mzz

    Zlatko,
    If you follow the instructions in our primary how-to on this topic, specifically the part "Storing the Document in a Custom Table", I think you need to change the code just a bit to insert the row (with the blob) into the remote table over your database link (http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CIHHEHCJ).
    Scott

  • View remote file system

    Hello to all.
    I have just implemented a simple client/server application which enables file transfers.
    I would like to know if there is a way of implementing a remote file viewer in which i will be able to send requests and download files. My primary concern is to be able to view the remote file system of a server on a client computer. Please note that its a two-way application i.e. part of the software is installed on the client, part of it is on the server.
    I have browsed through the forums and concluded that it is not possible to do this using a JFileChooser.
    Anyone has any ideas regarding this matter?
    Kind Regards
    Christophoros

    hi JaWarrior, thanks for your reply. I think i've read this solution somewhere else in the forums. The solution was like yours collecting the remote file system and sending it to the client. So if i got this straight i should have the server component sending lets say an array of strings with the files of the current working directory to the client?
    Also could you please provide an example on how do i go on and grab the contents of a directory?
    Many thanks to all

  • File browsing bug?

    Hi
    Today a bunch of nice Chinese hackers were trying to get remote access to my tomcat server (6.0.24).
    I booted them out after a few minute they were in trying to load their root kit package. The interesting part is, after I cleaned everything, I took a quick look at their software (their rootkit webapp) and it's pretty interesting.
    The root kit gives the user total access to the system and allowing the user to traverse outside of the tomcat container. What is bothering me, even though Tomcat is running on top of JVM, why didn't Tomcat developers protect against access outside of its own container?? From that webapp i could access the drive root like it's just a regular file browser, and execute commands as SYSTEM (equivalent to root user in linux based systems), doesn't make any sense in my mind.
    is this an expected behavior or did I miss something in the security configurations?
    The root kit is a modified JFilder class. I cannot attach a file here but I can send it by email if anybody wants to install it on their system to play around with it offline.
    best!

    Tomcat runs on a JVM and the JVM generally has full system access, except the parts you protect on the OS level of course.
    However, it is possible to install security policies in the JVM itself - a good example of that is the sandbox in which Java Applets run which is severely limited. So with some work you can protect your system in any way you want.
    [http://java.sun.com/javase/technologies/security/|http://java.sun.com/javase/technologies/security/]
    (what will interest you is what is written under "authentication and access control").

  • Can't download remote files with Adobe AIR

    Hi all,
    I have an adobe AIR application that tries to allow the user
    to directly download a remote file. Here's the current code:
    var fileRef:FileReference = new FileReference();
    // Bunch of Event listeners here
    var urlReq:URLRequest = new URLRequest("
    http://www.randomfilehere.com/hello.txt");
    fileRef.download(urlReq);
    Now, when I try to download any random file, let's say
    http://www.example.com/buca-di-beppo.gif,
    I will get a OS-specific download box that asks me where to save
    the file; I choose desktop and 'save' yet nothing happens (but when
    I trace the HTTP response through Fiddler I get HTTP/1.1 200 OK,
    and apparently all data has been successfully transferred to the
    host machine, it just is not saved as a file.
    A worse problem occurs with getting a file through HTTPS, as
    in https://www.example.com/secure-image.gif. Air will try to
    initiate approximately 3,940 http requests (plus or minus 3), that
    all return 200 OKs, before eventually stalling (and sometimes
    getting a 502).
    Does anyone have any idea how to resolve these problems? The
    AIR application is of course not a browser-based application so I
    didn't think the cross-domain.xml would be applicable here (and if
    it is, I don't know where to put it). Any help would be
    GREATLY appreciated! Thanks very much for your time.

    Hi,
    Take a look at
    http://kb.adobe.com/selfservice/viewContent.do?externalId=3637d5c3
    and see if it helps you.

  • File Browser Control

    Hi
    I have added some file browser controls to a form which file fields in a table.
    When i save the form the information in the table alters the path of the file to a string beingiing with F
    F10031\file.xls
    for example.
    How do i save the full path does anyone know?
    Thanks in advance

    erics44 wrote:
    Hi
    I have added some file browser controls to a form which file fields in a table.
    When i save the form the information in the table alters the path of the file to a string beingiing with F
    F10031\file.xls
    for example.This is done to produce a unique file identifier in the <tt>apex_application_files</tt> view, and is the session state value of the file browse control that uploaded the file. The actual filename is available in the <tt>filename</tt> column.
    How do i save the full path does anyone know?Generally, you can't.
    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8/9 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    Changes to IE's security config setting “Include local directory path when uploading files” enables the path to be exposed in IE8/9, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then you'd be strongly advised to rethink this requirement.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    (This topic comes up regularly: a forum search for path AND "file browser" returns multiple hits; path AND "file browse" even more. Did you search before posting this question?)

  • Kate won't open remote files upgrading to KF5

    Hello,
    Today I updated all the packages and I noticed that KDE Frameworks 5 was introduced. It seemed exciting, however after starting Dolphin and logging to an FTP server using Kwallet, I tried editing a remote file with Kate, like I've been doing for many years now, Kate asked to migrate the kwallet to a newer version. That seemed to go smoothly, but whenever a remote file is loaded it is displayed empty. I've tried restarting, using another FTP server, etc. Nothing helped. Is there something I need to set up first to make it work or something? There are no errors or warnings. I'm using Arch x64.
    Thanks!
    EDIT: Also, what I noticed is that when opening a remote file, temporary file in /tmp is created like "katepartTJ3018.php" and alongside "katepartTJ3018.php.part". The .part file has all the needed contents in it, however the non .part file stays empty.
    Last edited by Tsynique (2015-01-25 21:28:30)

    fishonadish wrote:
    Further to this, the process for saving files remotely has changed since KDE4 and is far less useful.  Is there any way around this, to return to the previous behaviour, or is this just a change in kf5?  I now have to close Kate for changes to be uploaded, instead of the file being replaced on save.
    1. Browse to FTP folder in Dolphin
    2. Click to open a file in Kate - this opens the file in Kate, with the path /var/tmp/kdecache-$USER/krun/###-$FILENAME
    3. Make an edit and save - file seems to be edited locally only
    4. Close Kate and get a dialogue: "The file ftp://PATH has been modified. Do you want to upload the changes?"
    5. Click 'upload' and then changes take effect.
    I'm also getting occasional crashes in Dolphin where I have to force quit.  It may not be related, but seems to occur when I'm opening a few files in Kate and saving - this is even with local files.
    Any suggestions welcome.
    Same thing occurs when you use any other non-KDE app like Geany. You can tell whether or not the file will be saved seamlessly, by looking at the title of the open document. If it's ####_#_filename (or something similar), then it will work like you described. If it's the real filename, then it's seamless.
    It's not a new feature, it worked like this ages ago. Only thing is that Kate/KWrite supported the seamless saving/uploading before KF5 came to town. Removing %U from associations strips Kate from seamless saving/uploading but it enables it to open files properly again.

  • Clientless VPN remote file explorer

    I'm hoping this is a simple one.  I recently upgraded our ASA 5505 to 9.1.(1).  We have several users that use the clientless VPN from their home systems, and require access to file shares.  I was hoping that the Remote File Explorer listed in the release notes would be an improvement, but I can't seem to find it.  Customizing the Portal, I've enabled "File Server Shares" under applications, but enabling/disabling it seems to do nothing.  "Network drives" is the same old interface.  File Server Entry and Browsing are enabled.  I've also checked the plugins downloads, but I don't see anything that looks right.  What am I missing?

    You need to know the IP address of the server on the other side of the VPN.
    Network auto-discovery protocols tend to not work over VPN connection (generally you don't want the overhead of the discovery protocols going over the VPN link).
    Once you know the IP address of the server, though, you can mount that server via the Finder's Go -> Connect to Server. Once logged into the server you should be able to use the normal Finder actions to navigate the network share.

  • Loading remote file

    I'm able to load a remote file from my applet. The remote file only contains a single URL. Once i have accessed the remote file, i want to redirect another frame (other than the one that my applet is running in) to the URL that i read in from that remote file. If cannot redirect another frame, how about opening a new browser window?
    Is there a way to do this?
    Thanks.
    Anuj.

    Yes, use this way:
    try {
          getAppletContext().showDocument(
            new URL( yourUrlString() ), "frame_idName");
    catch (MalformedURLException ue) {}Regards.

  • Not Working: BlackBerry Link Remote File Access Remove Old BlackBerry from BB ID

    I have: removed my blackberry q10 from blackberry link, wiped my q10, uninstalled and reinstalled blackberry link, have link version 1.1.1.32, blackberry q10 os version 10.1.0.2309 - which whenever I plug in the q10 after removing the device from link, says there is an os update, so I update it, and then it does nothing apart from rebooting the q10, or gives an error saying 'updates not available. Please check internet connection and retry.'.
    Also, I have Logout/login on blackberry link, I know my q10 is activated as I have purchased items from app world, and on the computer the app world site shows that I have a q10 when I sign in. I am using the same BBID and have changed the password on my q10 to see if that made a difference, then signed out and back into link on computer with updated password. I have administrator rights on my computer.
    I can access the q10 from my computer over the same wifi network, and it syncs files fine with wireless sync turned on. It is remote file access not giving the option to connect to my q10. 'BBID *email* isn't associated with a device running Blackberry 10 OS or an error occurred when trying to retrieve your information from the Blackberry ID servers.'
    The problem is that although I have the same blackberry id for link and my q10, no devices show up on the remote file access screen, and I cannot access my files on my computer from my q10, yet I can sync them on my computer over the wifi network. How can I enable Remote File Access?
    A problem could be that I have a Curve 9300 on my BB ID account, so if I could disable this (which I have no idea how to do after a lot of research), this might rectify why link cannot set up remote file access.
    What I haven't done is wiped my q10 and uninstalled all user data from link at the same time, as then I would have to manually reload everything on my q10.
    My q10 shows my computer in the settings\blackberry link\paired devices ,  but I 'cannot view files on *computer*'. Also, link does not show in the file manager. I set up my q10 as a permanent link not a one-off connection.

    No one cares because it's not a z10 (I know because I am having the same problem and no one knows how to fix it and no threads for q10 fix)
    Slàinte.
    Not all things are good.
    Not all things are evil.
    But with an open mind...
    You can see the difference.
    Knowledge is power.

  • Error: Unable to locate an image file browser...

    I get the error below when I insert an image element and try to associate a picture to it by either double clicking it or using the browse button in the Draw palette.
    I have looked in my install directory and the "FileSystemBrowser.dll" file is present as well as the "ImageFileBrowserIDL.dll" file, so what gives?
    Running LiveCycle ES2 9.0.0.2.20120627.2.874785

    Hi,
    you should be able to fix that problem by re-registering Designer file browser DLL.
    http://thelivecycle.blogspot.de/2014/02/diy-bugfix-image-file-browser.html

  • Error reading Remote file when the connection is slow

    I have a program that reads a file from a remote server. The file is an xml file.
    This uses URL inputstream.
    This works just fine but when the xml that it reads grow in size, the content of the file is not completely sent to the variable string.
    I have come to a conclusion that slow connection to the server could somehow cause this. The error is intermittent. Sometimes it works, sometimes it doesn't.
    I hope you guys could help me tune this code or if you have suggestions like other ways to read a remote file. Which will work even if the file grows bigger.
    Thanks
    public String readRemoteFile(String fName)
    try
    boolean bolContinue = true;
    URL tUrl = new URL(fName); //create a URL object with the server source file
    //Logger.log("Getting filesize : " + fName);
    InputStream is = tUrl.openStream();
    String strFileSize = "";
    StringBuffer sbXML = new StringBuffer();
    byte[] b1 = new byte[10];
                   int intBytesToDownload = 0;
    int i = is.read(b1);
    strFileSize = new String(b1, 0, i);
    //Logger.log(fName + " --- " + strFileSize);
    try
    intBytesToDownload = Integer.parseInt(strFileSize);
    catch (NumberFormatException nfe)
    Logger.log("Could not read the file : " + fName);
    return null;
    int bytesReadInTrip = intBytesToDownload;
    int bXMLLocation = 0;
    while (bytesReadInTrip > 0)
    bytesReadInTrip = 0;
    bolContinue = true;
    //System.out.println(strFileURLPath);
    tUrl = new URL(fName + "&fileOffset=" + bXMLLocation);
    //Logger.log("reading file1 : " + fName + "&fileOffset=" + bXMLLocation);
    is = tUrl.openStream(); //get Input stream of the server file.
    //continue download till continuation flag is set i.e. input stream
    // is available.
    while (bolContinue)
              byte[] bXML = new byte[intBytesToDownload];
    i = is.read(bXML);
    //Logger.log("i " + i);
    if (i > 0)
    bXMLLocation += i;
    bytesReadInTrip += i;
    String strTmpXML = new String(bXML,0,i);
         sbXML.append(strTmpXML);
    else
    bolContinue = false;
    is.close(); //close the input stream of the input file.
    //Logger.log("bytesReadInTrip : " + bytesReadInTrip);
    //Logger.log("Read file : "+ sbXML.toString());
    return sbXML.toString();
    catch (Exception e)
    Logger.log("Exception while reading the file : " + fName);
    return null;
    }

    well looks that ur run() method is being called more then one time (..)
    why dont u try file method exists() before writing it to ensure that it is not written previously

  • When I try to upload a file it goes through the correct proceedure, but does not change the remote file i.e.Index.htm

    Hi
    I have an uploading problem to the server. The problem is when I try to upload a file it goes through the correct proceedure,
    but does not change the remote file i.e.Index.htm, or three stages1.htm.
    My Localroot folder is C:\Gods Plan Web\
    The site map layout is C:\Gods Plan Web\Index.htm
    The folder for the remote site is /public_html/
    Should the local root folder mirror the remote site, i.e./public_html/
    if this is so, what should I put into the
    (a) Local Root Folder box?
    (b) site map layout box?
    The FTP is performing well other than changing the intended file.

    You should be uploading only the contents of your local root to the public_html folder (remote root).
    The index.html you use as your site's home page needs to be in your site root. If you look at your Files window in DW, you should have something like the following...
    Site - Whatever you named your site
         index.html
         images
         pages
              page1.html
              page2.html
    If you have any folder between Site - and the index.html page, like...
    Site - Whatever you named your site
         mywebsite
              index.html
    It will upload to the public_html while still in that folder, so to find your page online, you would need to type something like...
    www.mydomain.com/mywebsite
    public_html should NOT appear within your local files and if it existed there, would cause a redundancy if uploaded. You would need to type www.yourdomain.com/public_html to see the uploaded pages.
    If you could post a screen shot of your expanded Files window while connected to the server (just connect and click the Expand button in Files, don't drill down into any of the directories), we may be able to see the issue.

Maybe you are looking for