Reading local file in VC

Hi All,
Is it possible to open a local file with some path like C:\temp\...... in VC?
Regards,
Murtuza

Hi Govinda,
Do you know the format how to write the path of the file in the field 'file name' of the HTML view?
Is there a possibility that the user is prompted to enter the file path on runtime?
Best regards
Salvador Gimeno

Similar Messages

  • Reading local files

    I need to read local files in C with Alchemy (at least on
    developer's machine). This should allow more rapid application
    development with Lua Alchemy -- as developer would be able to
    exclude swf build step.
    I have added directory with my .swf to the FlashTrust config.
    I'm able to load the file with URLLoader. However fopen() on it
    returns NULL. Please see the attached code.
    Executables, compiled with Alchemy (and run with swfbridge),
    are able to work with local files. What should I do to allow my
    application to work with local files in the same manner?
    Alexander.

    quote:
    Originally posted by:
    notnick
    You have not tried?- funopen ()
    returns a FILE pointer.
    Just in
    samples / libpng
    I have not tried it yet
    I have tried fopen(), and it does not work (see code in
    original post). I would like to get working fopen() (and family)
    somehow, so I would be able to get vanilla Lua sources to work with
    files.
    My other option, of course, is to replace file-related
    functions in core Lua libraries. This is not that hard, and even
    doable without modifying of Lua sources, but I'd like to avoid this
    solution.
    UPD: I have looked at the libpng sample. If I get it
    correctly, funopen() there operates on ByteArray, not on actual
    file. (I have no experience with BSD API, so it was not immediately
    clear for me.)
    I need to operate on actual file on local file system.
    Thank you,
    Alexander.

  • AccessControlException in signed applet for simply reading local file

    I have a simple applet that reads specified local image files and uploads them to our server. On both Mac OS X and WinXP (firefox and IE7), I get the following error. I signed the applet using an InstantSSL code signing certificate (not so easy getting this to work, but I'm pretty confident I did it correctly).
    java.security.AccessControlException: access denied (java.io.FilePermission /Users/scott/Documents/photos/Ken_and_Scott.jpg read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
         at java.io.File.length(File.java:813)
         at org.apache.http.entity.mime.content.FileBody.getContentLength(FileBody.java:89)So just on getting the file length, it's throwing this exception. Interestingly, this file passed both file.exists() and file.canRead() checks within the applet (in windows the path is a bit different of course but also passes both those checks). Also, that file has no read restrictions and I can load it in a browser no problem.
    I assume I'm missing a step in the applet code signing process, maybe a step that says I'm allowed to read local files?

    I figured out my issue, the apache HttpClient library needed to be signed too apparently.

  • Read local file in background

    hi everyone,
    i need to read local file in background,
    wich function do i need to use?
    thanks,
    dana.

    if you are reading in background file needs to be on application server.
    you can use following function modules.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE MSG_TXT.
    IF SY-SUBRC NE 0.
      WRITE: 'Err', MSG_TXT.
      EXIT.
    ENDIF.
    LOOP AT INT_TAB
    *your code
    ENDLOOP.
    Closing the File
    CLOSE DATASET FILENAME.

  • Applet can't read local file on web server, security issue!

    There is any way to read/write files of web server through the applet except the Signed Applet.
    If any idea the reply me soon.
    Thanks in advance

    Applets are downloaded from web servers and execute on the client machine.
    Therefore they have no access to the web server file system, signed or not.
    They could have access to the client file system (the machine where they run),
    but for security reasons only signed applets have this privilege.
    So to answer your question, you sign if you want to access client files.
    To access web server files, you don't need to sign the applet, but you need
    to provide some method of accessing files remotely, for instance:
    - Files published for the web can be read using HTTP
    - Files can be read or writen with the help of an FTP server on the same machine as the web server
    - A servlet running on the HTTP server can collaborate with your applet to exchange files

  • Is reading local file possible?

    Hi,
    My intention is to use Flash 8 Pro as a tool allowing to
    upload large files
    into the server (something like FTP client). Unfortunately a
    lot of servers
    have tight restrictions for transmition time (sometimes
    limited to 30s).
    Work around to this could be a Flash. I couldn't find any
    information in
    Flash documentation about reading binary files selected by
    user by
    HTML-like file field. I would like to read selected file,
    split it into
    severeal smaller parts and then upload every part separately
    into the
    server. Is it possible?
    Regards,
    Marek

    > Czesc Marek
    Hi! It seems you speak my native language :-)))
    > Flash itself has no FTP capabilities. The only thing you
    can do is use
    > middle ware
    > like php or asp and server side to upload stuff to
    server and use flash to
    > prompt
    > the Browse for File dialog, and than upload your files.
    Flash itself has
    > no way of
    > doing it at all unless with middle ware.
    Yes, I know that. That is the reason why I have written
    'somethig like FTP'.
    Ok, once again... I can create PHP script to receive POST
    uploads. This is
    no problem to me. The problem is that iddle time for scripts
    on this
    particular server is set to 30 seconds only. It means that I
    can't upload
    files for which transfer time will be longer then 30s. To
    work around this
    issue it is necessary SPLIT uploaded file into the chunks
    then transfer it
    to the server and join using e.g. PHP script. I need a tool
    embeded on web
    page which allows me to select large file (large sometimes
    means 1MB) and
    send into the server jumping over server time limitations.
    Flash contains
    build-in FileReference class but there is no described in the
    documentation
    how to send selected file as e.g. 4 separate parts of it.
    > There is an upload samples which comes with
    > flash and can be located under the SAMPLE directory on
    your C drive in the
    > Macromedia
    > folder. This is as far as it goes.
    It is also described in Flash help under FileReference class
    description.

  • Problem with File panel and Local files

    I am having a couple of problem using Dreamweaver  (which may be related) and can’t find any appropriate help on the web site.
    I have created a small website and have it up and running.    I’m now trying to do some minor modifications.     But Dreamweaver seems to have lost the address of my local files on my home computer (although files are still there in the same place.)      In the on-line training material it shows how to define where the root directory is when you start developing a site,  but I can’t find where these setting are so I can check and if nessessary amend them.   If I go to Define Site from the Site drop down options,  this does not allow me to check or define the root directory.
    Secondly,  in the File panel (lower right on the screen) the address bar at the top only shows the remote files and the icons to the right (“put”, “get”, etc) have disappeared and I can’t seem to get them back.   Also that lower panel seems to be floating rather than being fixed like it was.     I have tried clicking on Classic View in the Workspace layout options but this doesn’t move things back to how they were when I first started using Dreamweaver (just a few weeks ago).
    Can you offer any advice on what the problem is and how to manage it?  Many thanks.   I'm  using Dreamweaver CS4 and an iMac.

    Immediately below the Tabs saying "Files" and Assets" is a small box 
    with arrow on the right to show the drop down list.        In the box 
    on the right there's an icon of two networked computers.  Then it 
    says, "ftp://Hill farm Web Site"  which is the name of my website.     
    If I click on the arrows to pull up the drop-down box,  I get four 
    options divided by a line.   Above the line the options are Computer, 
    HD and ftp://Hill farm Web Site.  Below the line it says manage sites.
    Below this is list of files that make up my website in a directory 
    structure.   The header for the first column reads, "Local Files",  
    which appears to be untrue, because the top line in the directory 
    structure below reads,  "ftp://Hill farm Web Site".
    Does this help?
    regards
    David

  • Code to read local notepad.txt from applet

    Hi.
    Further to my (unanswered) queries about reading a notepad.txt file from the local directory i.e. the same directory from which the html and applet were launched, the following code is supposed to be able to read the local file. It failed to do so both in Netscape 7.1 and in IE5
    I've also received conflicting advices : some says we can read local files without using a signed applet or chaning the ACL, whereas others I'll need to use signed applets and / or acl to allow the applet to read a local file.
    My research has shown that java applets are supposed to be able to read local files. Has something changed:
    public class FileAccess extends Applet
       implements ActionListener {
       Button loadButton, saveButton;
       TextField filename;
       TextArea  content;
       String browserName;
       boolean securitySupported = false;
       public void init() {
         setLayout(new FlowLayout());
         Label label =
           new Label("Simple file editor");
         add(label);
         loadButton = new Button("Load");
         saveButton = new Button("Save");
         add(loadButton);
         add(saveButton);
         loadButton.addActionListener(this);
         saveButton.addActionListener(this);
         filename = new TextField(20);
         add(filename);
         content = new TextArea(5,20);
         add(content);
         browserName = System.getProperty("java.vendor");
         if (browserName.indexOf("Netscape") > -1)
            securitySupported = true;
         setSize(200, 200);
       public void actionPerformed(ActionEvent evt)  {
         if (securitySupported) {
            if (evt.getSource() == saveButton) {      
               PrivilegeManager.enablePrivilege("UniversalFileAccess");
               try {
                  FileWriter aWriter = new FileWriter(filename.getText(), false);
                  aWriter.write(content.getText());
                  aWriter.flush();
                  aWriter.close();           
               catch(Exception e) {
                 e.printStackTrace();               
            else if (evt.getSource() == loadButton) {
               PrivilegeManager.enablePrivilege("UniversalFileAccess");
               try {
                  BufferedReader aReader  =
                     new BufferedReader
                        (new FileReader(filename.getText()));
                  content.setText(aReader.readLine());
                  aReader.close();           
               catch(Exception e) {
                 e.printStackTrace();               
          else {
            getAppletContext().showStatus("security not installed");
    }

    Hi acinhk,
    I read your note with great interest. I am trying to solve almost exactly the same problem as you are -
    Reading a .txt file in IE5 from the same directory where the html and the applet were lauched.
    Your code looks fine to me.
    My code is very similar, and again generates a security exception - as I am having the same problem you had getting around Java security.
    If you have been able to solve the problem, can you please let me know what you did.
    Any modifications to your sample code that actually made it work would be greatly appreciated.
    Also, is signing the applet to read a local file under IE5 really necessary ?
    Can the file be read from the local IE file system without signing the applet ?
    Please let me know your thoughts.
    Thanks !
    drbob

  • How to convert the local file into unicode file?

    Hi All,
    I need read local file (GUI_UPLOAD) and save it as unicode file?
    I've found class CL_ABAP_CONV_OUT_CE but I've no idea how to use it.
    Should I read file in binary mode and then convert it into unicode? AT the and save it (GUI_DOWNLOAD) ?
    Thanks
    Adam

    Hi,
    Check these classes, will help you
    CL_ABAP_CONV_IN_CE : Reading binary data
    CL_ABAP_CONV_OUT_CE : exporting binary data
    CL_ABAP_CONV_X2X_CE : reading and exporting binary data and changing the format
    Regards,
    Satish

  • Upload local file

    Good Morning,
    This is the scenario:
    I put my applet in webserver. User go to this server (eg. http://www.test.com) and execute my applet
    through web-browser. Now, this user wants to upload files. Is this possible?
    I want the applet to be able to read the local file and save it to the database (JDBC). But all I need
    is the technique to read local file. Sample source code will be appreciated.
    Please help.
    Thank You.

    konglomerat_muda wrote:
    Good day,
    I need an example how to upload file using applet. If there's one out there, you can search for it here or try Google, but I don't recommend this approach.
    Applet is a must.I seriously doubt that, as I can't recall hearing of this type of a requirement since the invention of Applets.

  • How to read the contents of a file present in local file system

    Hi ABAP Experts,
       I want to read the file contents of a file in the local system. I want to read it stream based i.e if the file is if 100kb in size, i want to read the first 100bytes at one time, next 50 kb after, and remaining some other time. Is this possible. I know that with GUI_UPLOAD i can get the total contents into a xstring.
    But how to resolve the following i am not sure. Can you please help.
    Thanks & Regards,
    Vinay.

    Hi,
    transfer file to your application server and use:
    open dataset file ... AT POSITION p .
    regards Andreas

  • Reading files from local hard disk - Access Local Files Only

    Hi All,
    I have a local flash file published as 'Access Local Files Only', to allow me to read from local filesystem.
    What methods or classes can I use to read text and other files from the user's harddisk.
    This is the first time I am trying to do something like this, all help is grealy appreciated.
    Thanks
    Andy

    Hi, thanks for the responses
    I did some searching and found that the urlloader class is the right one for the job.
    'Access Local Files Only' option is provided for this very purpose I believe.
    If anyone has done something like this and have some sample code it would be awesome
    Cheers
    Andy

  • Help with utl_file (read/write file from local directory)

    Need help reading/writing file on local machine from plsql using 10.2 DB.
    I am trying to read/write a file from a local directory(laptop) without success.
    I have been able to read/write to the database server directory but can't write to directory on local machine.
    The utl_file_dir parm has been set to * and the db restarted but I can't get it to work... Here's the plsql statement.
    out_file := UTL_FILE.FOPEN ( 'C:\PLSQL', 'TEST.TXT', 'W' ,32767);
    Whenever I run it continues to write to c:\PLSQL dir on the database server. Have looked at the "Directory" object and created MY_DIR = C:\PLSQL but it writes to the db server.
    Running 10.2 on a remote windows server, running PLSQL using sql*navigator.
    Thanks in advance for your help..

    I don't see how you expect the server to be able to see your laptop across the network, hack into it and start writing files. Even if it could, what if there is more than one laptop with a C: drive? How would it know which one to write to?
    Is there a shared drive on the server you can access via the laptop?

  • How to read a local file from Applet Code

    Hi
    I am developing a application and i want to access a local file from the applet
    So pls help me in coding for this

    You can't do that, at least not with an unsigned applet.
    Sign your applet and it should work just like normal file access.

  • How can i read local excel file into internal table in webdynpro for abap a

    Could someone tell me how How can i read local excel file into an internal table in webdynpro for abap application.
    thank u for your reply

    Deep,
    File manuplations...............................
    1. At the presentation level:
    ->GUI_UPLOAD
    ->GUI_DOWNLOAD
    ->CL_GUI_FRONTEND
    2. At the application server level:
    ->OPEN DATASET : open a file in the application server for reading or writing.
    ->READ DATASET : used to read from a file on the application server that has been opened for reading
    -> TRANSFER DATASET : writing data to a file.
    -> CLOSE DATASET : closes the file
    -> DELETE DATASET : delete file
    If file is on the local PC,use the function module GUI_UPLOAD to upload it into an internal table by passing the given parameters......
    call function 'GUI_UPLOAD'
    exporting
    filename = p_file
    filetype = 'ASC'
    has_field_separator = '#'
    tables
    data_tab = t_data
    p_file : excel file path.
    t_data : internal table
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

Maybe you are looking for

  • Why I can't buy software via itunes

    Why it is not possible to buy mac software using itunes, I would love to upgrade to the latest version of ilife but because I have to go to a store and buy the complete package I have not buy it, if I would be able to upgrade or buy software via itun

  • Hi there - do you know if I will be able to sync a new ipad with ios5 with a backup from my now defunct ipad2 ios 4.3.3 ?

    Hi there - do you know if I will be able to sync a new ipad with ios5 (or even an ipad 3 if it ever gets released !) with a backup from my now defunct ipad2 ios 4.3.3 ? Thanks

  • 24" Alum iMac screen resolutions

    Is there any way to change the screen resolution to 1600x1000 on the new 24" imacs? There are several other options on the display preferences but not this one. Anything other than the native is too fuzzy and the native 1920x1200 makes everything on

  • New objects

    Hi, I would like to make new objects for use in LiveType, is this possible ? then how do i do it? Or must i buy them? Thanks,

  • Feeding data as opposed to hardcoding

    Most of the examples I see in the forum consists of hardcoding the files or strings. for example, FileOutputStream fos = new FileOutputStream ("config.txt"); or, String name="abcdegh"; But, for real world applications, you can't hardcode a file or da