Access a file using applets

hello friends,
i'm trying to access a file using applets but i'm getting security error.
similar error for accessing the data base also so pls if you know help me how to access file/database using applets.

You need to use a signed applet and know where the file is and in an accessable area; signing an applet will not allow you to go on a "fishing expedition" through the file system.

Similar Messages

  • How to access a file using Applet?

    Dear all,
    I would like to use an applet to read and display information on server side, but there still a fileaccess permission denied, what can i do?
    The idea of the web service is like that::
    1.User connected to a webpage, than they can choose the file and then,
    2. the file name will be transfered into the applet (using applet><param> tags etc.)
    3. THe applet read and displays information.
    In addition, the file is placed at server side, should I set the "./hotjava/ properties "

    Maybe you should sign your applet.
    You'll find further information in the Signed Applets Forum:
    http://forum.java.sun.com/forum.jspa?forumID=63

  • Can i load a class in subdirectoy  inside a jar file using applet tag?

    hi every one.. thank you for reading ... i am really in dire need for the solution..
    my problem is that i have a jar file contianing a package which inturn contains my applet class...
    i am trying to access this applet class using a applet tag in html file. this html file is in same directory as the jar file. i am having no problems in windows but when i am doing this in linux apache server i was getting class not found exception. (already checked the file permissions). and when i am successful when using simple package directory instead of jar file . so gist of my quesition is "can i load a class in subdirectoy inside a jar file using applet tag in a html file"?

    When you tested in Windows were you using Internet Explorer? On Linux you will be using a different browser, usually Mozilla of some version, or Firefox. Note that the HTML tags for applets will be different between the browsers if you are using the object tag. Principally the classid value for the object tag will differ between Firefox and Internet Explorer.

  • Can i open a file using applet?

    Hi,
    I try to open a file using applet.. but an error said "access denied(java.io.FilePermission tempecg.out, read) ...."
    tempecg.out is the file that I want to read.. below is part of my code.. what should I do...?
    currently the file is in my harddisk, next time will be linked using URL, will this be another problem?
    thanks!
    public void run()
    while (true)
    try
    LineNumberReader lr = new LineNumberReader(new FileReader("tempecg.out"));
    while (dv.size() < 240)
    int p = Integer.parseInt(lr.readLine().toString());
    //int p = (int)(Math.random() * 260);
    dv.add(new Point(0,p-130));
    Thread.sleep(2000);
    } catch (InterruptedException e) {}
    catch (IOException e) {}

    Hi pjustin1,
    you must use the policytool.exe given with JDK 1.2.x (or more).
    and with this tool you must add a permission on file (FilePermission) you want to access.
    Christophe.

  • How to access xml file using c

    how to access xml file using c. are there any libraries regarding xml fastinfoset in c? Please let me know about any resources if u know? thanks!!!
    samitha

    There are different methods to access XML data which have pro's and cons. Let us know more about what you want to do and we can help you.

  • Upload http file using applet

    Hello every body,
    I am trying to upload the http file using applet. Can any body give me the hint or example.
    Thanks in advance
    best regards

    any of several libraries are out there that would let you to HTTP File Upload to a web server, assuming the web server has a servlet or other thing to accept the file.
    Of course, where you get the file might be a problem without a signed applet.

  • How to access remote database using applet

    hi all,
    I want to know how to access remote database using applet,
    Please help me anybody.
    Regards
    Jesu

    If the database is on a public server, you probably can't access it directly (security wise). You can make your applet talk to a server-side application, which makes the database calls on behalf of the applet. But even in an intranet environment this setup is often preferable, because you don't need to distribute a JDBC driver to all your clients.

  • Error while accessing excel file using ODBC

    Hi
    I am getting the below error message while accessing excel sheet using ODBC from Oracle:
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from EXCL
    Can anyone help me on this...
    Cheers
    Pradeep
    Message was edited by:
    user634393

              Hi
              Thank you.Is there a way to read a file which is existing in the war file.
              Regards
              Anand Mohan
              "Wenjin Zhang" <[email protected]> wrote:
              >
              >In Weblogic, if your files are archived in a WAR, you cannot get an entry
              >as individual
              >file since it is only bytes in a large archive file. So getRealPath will
              >give
              >you null result. If you only want the path, try to use other getXXXPath,
              >getURL,
              >or getURI method. If you want to read the content, use getResource.
              >
              >
              >"Anand" <[email protected]> wrote:
              >>
              >>Hi
              >>I am having problem while accessing the file located in the server from
              >>a JSP
              >>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              >>
              >>The same code is working if the jsp placd under defaultwebApp directory
              >>and not
              >>working if i create a war and deploy the same.
              >>
              >>I am using weblogic server 7.0 trail version.I am setting the context
              >>path also.
              >>
              >>Can any help me in this regard.
              >>
              >>Thank And Regards
              >>
              >>Anand Mohan
              >
              

  • Help!!! Upload Files using Applet.

    I've built an upload application using html tag <input type="file" ...>. Both client and server's programs have been finished for a long time. However, my boss want to use applet replace html tag(due to some reasons). I want to build an applet which allow user to select multiple files and then upload. But I don't want to modify the server side program. May anyone teach me on how to upload the files which generate the page which is the same as the HTTP request? Thanks a lot.

    No. You could sign the applet for granting the permission. Could anyone tell me how to generate the http request with contents and file inside?

  • Accessing CS1 files using CS6

    Just Installed In Design CS6 on my Windows 7 PC.  I am trying to access a file created using InDesiign CS1 and I am getting thrown out of the system.  Is there any way to use an old file in CS6?

    Ask in the ID forum. You probably will need to install some intermediate version as a trial at least to convert the files.
    Mylenium

  • Accessing .pdf file using file adapter

    Hi,
    I have a requirement in which I am getting a .zip file which contain 3 different .pdf file, that need to be posted to ECC server.
    The business expecting the data to be posted to ECC using RFC or Proxy.
    I can unzip the file using payloadZipBean but  as far as I know file adapter cant read .pdf  and convert it to XML.
    I am working with PI 7.0 so cant use the Agent concept .
    what could be the other possible solution.
    regards,
    Navneet

    Hi christian
    as you said we can do the file transfer using the dummy interface.
    and the below link is also saying that ,it can be work for any adapter type.
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository .
    I have tried it .
    here I defined one sender file adapter and using the payloadzipBean to unzip the content.
    and in receiver side created the Xi channel to post the payload into the ECC server. here i am using the dummy interface at receiver agreement that does not exist in IR.
    I am getting the successful flag in PI (sxmb_moni) but could  not recognize that where the payload get posted in ECC,as I have not created any proxy for dummy interface.
    even we cant monitor the XI channel in RWB.
    can any buddy help me in getting that where the payload get posted.
    regards,
    Navneet.
    I

  • How to access Remote File using File Services or Servlet

    Hi Friends,
    I want to access a file from a remote location. How to do that ?
    I tried to display an image in my client application. The image source is from remote location. I tried with URL, is there any other way to read/write remote resources through secured connection with some encryption and decryption techniques.
    Kindly help me out !!!
    Regards,
    V.Prasanna

    whelp, If you map the drive then the url thing should work. Other then that I don't know. I normally map the drive.

  • Error while accessing remote server using applet in jsp page

    hii..
    We are accessing a data repository MDSPlus. Its used for storing data such as signals in tree like structure. We r coding for client side in JSP .
    For this we are invoking applet which uses jar files of jScope(java tool for displaying waveforms). We r getting the following error when we try to access a remote server in network. But it works fine with local server.
    So kindly help .
    ERROR IS:
    java.security.AccessControlException:access denied(java.net.SocketPermission 202.41.112.140:8000 connect,resolve)
    url mds:://202.41.112.140/SST_DAQ/11/\SST_DAQ::TOP.BOLOMETER:BOLO_1
    Use ploicytool.exe in JDK or JRE installation directory to add socket access permission.
    The IP address mentioned above in error is the computer with which v have to connect. SST_DAQ is the expt name,11 is the shot no. , BOLOMETER and BOLO_1 are the tree node s..
    plzz reply fast........

    Hi Frank,
    Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
    If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
    Ensure the case of the JNDI lookup string, since, it is case sensitive.
    Hope this helps.
    Abhijeet

  • Issue while accessing a file using UTL_FILE

    Hi,
    My requirement is to check for the existence of a file in the file system(apps tier) and then launch a conc program to load the data.
    There is a separate DB tier.
    I am trying to use UTL_FILE.fopen to indirectly see if the file exists
    and then proceed and I am trying to use UTL_FILE.fopen for that.
    The file is placed in the apps tier. I have created a directory in the database with the path and using that in the UTL_FILE.FOPEN call.
    However I am getting the following error. ORA-29283 - An attempt was made to read from a file or directory that does not exist, or file or directory access was denied by the operating system.
    What could be the issue here? Is there anything that I need to do after creating the directory?.
    Thanks,
    Balaji

    /Pl post details of OS, database and EBS versions.
    Are the Apps and DB servers physically separate ? If so, the directory on the Apps server where the file resides will have to be visible/updateable to the DB server in order for UTL_FILE to be able to read/write to it.
    HTH
    Srini/
    The apps and db servers are separate. EBS version is 11.5.10.2 and the OS is unix.
    How do I make the directory in apps server visible/updateable to the DB server?. I have created a directory in the database with the location of the file in apps tier.
    Thanks for your quick reply
    Regards
    Balaji

  • Can't access WMA files using flip4mac plug-in

    I'm a new mac user who just bought a macbook this past weekend. I realize that the below is perhaps a microsoft software issue, and not an apple issue (the apple care service people said as much and dismissed me), but the microsoft forums provide no solutions to my issue.
    I've downloaded the newest flip4mac (version 2.1) which folks here here suggested, windows media player 9 (which doesn't seem to do anything other than open a blank window with a play and stop button bar at the bottom), and tried running both safari and firefox (with and without "rosetta"), yet some WMA files still won't run.
    Most vexing to me is my inability to listen to game day audio from www.mlb.com. The audio player on the website appears but there's no sound and no playback bar (with the play and stop button, streaming time elapsed, etc.). This is similar to other websites. For example, on fan590.com, if I want to "listen live" I get the separate player box, and their load up advertisement plays flawlessly, but the actual streaming audio is blank, without any playback bar.
    Before downloading flip4mac, I got a message (like a missing puzzle piece on firefox) telling me I needed a plug-in, but neither browser could detect which one I needed. Now, having installed flip4mac, I no longer get that message, the missing puzzle piece is filled in, but no playback bar.
    This is so frustrating because it appears many others have installed flip4mac and report no problems at all, yet this issue persists for me. Is there a certain setting I'm not selecting? It is something basic I'm not doing as a function of me being a mac novice? Or am I doomed never to have access most WMA content from my macbook?

    I use flip4mac also and when I use safari to view WMA files, flip4mac is automatically launched.
    Here is the forum for flip4mac:
    http://www.flip4mac.com/fusetalk/forum/
    Good luck!

Maybe you are looking for

  • How can I have 2 accounts from 1 itunes account?

    We have an existing ipos touch account with my email that is linked to itunes.  We recently got an iphone and I wanted my son to have his own account with itunes separate from mine.  I changed one computer's itunes email address account then turned o

  • Data reconciliation

    BI Experts - I am using BI as my data repository to move data from R/3 to BPC. Any suggestions on what I need to look out for? Thanks.

  • Compiler Include Directive

    Is there an equivalent to the include directive? I don't mean the import statement, I mean the include directive such as available in many other languages that will place the contents of a file inline with the java source. Basically, just like the JS

  • Master Page Content Boxes – Adjusting?

    I thought I understood how to use content boxes on master pages, but I think I may have been wrong! I have set up master pages, for example one right hand page has a square frame. I then drag and place an image in each of the boxes in the main docume

  • Bottom align menu on public site using CSS

    I am working on the design of a public site and am attempting to get the navbar menu to bottom align so that it sits neatly on top of the content zone below and is bottom aligned with my logo.  I'd like to accomplish this using CSS.  You can see the