Access Local Files

Hi !
I need to develop an applet which reads files from local directory
and send them to database.i know it has severe Security problems.Actually my system runs in browser.so how can i do that with or with out applets.Many e-mail clients do that actually i.e to upload files from local machine to web-server.what technology can be used
? This i need urgently for my project kindly lemme know.mail to [email protected]
ThanQ
Moulaali
Veritas,Pune

You need to sign your applet to get past the security restrictions: http://java.sun.com/docs/books/tutorial/jar/sign/index.html
? This i need urgently for my project kindly lemme
know.mail to [email protected]
When you ask question on a public forum, you get answers on the forum.

Similar Messages

  • How Can I Get A Flash Movie to Access Local Files

    I have a customer that has created a Flash movie to run off a CD.  The movie is basically a set of menus with links to access local files in the same directory as the movie.  i.e. Main folder (to be root of CD) has the movie, a Documents folder with PDFs, a Movie folder with wmv and mov files, etc.
    The problem arrises when you click on a link to a file, a web browser is launched, and the browser tries to display the target file.  The movie was designed on a Windows system, and, mostly it works in a Windows environment, however, the links totally crap out on a Mac because the URLs are pc centric.
    He is a rookie flash programmer so I am trying to help him set up proper links to the files, so that the files will (hopefully) launch the proper local app and not a web browers.  i.e. if the link points to a PDF, the Adobe Reader is launched; if the link is to a mov file, then QuickTime is launched....
    Is there a way to do this?  All the tutorials I have found all seem to expect the flash movie to be running on a web server, and as such do not work when running the movie off a CD.
    Any help or suggestions would be grealy appreciated.
    A response ASAP would also be greatly appreciated as the customer needs to deliver 200 CDs of the project for a presentation tomorrow morning - I have to create the CDs...
    TIA

    Hi there,
    Maybe you would want to use swfObject, i've been using it for
    a long time now.
    http://blog.deconcept.com/swfobject/
    cheers

  • 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

  • When i drag and drop an image on my site. it gives the following error. "Unable to access local files due to browser security settings. To overcome this, follo"

    I am using the firefox version 17 and when i drag and drop an image on my website. It gives me the following error.
    Unable to access local files due to browser security settings. To overcome this, follow these steps: (1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again. Or go to the homepage for a link to the tutorial on how to do it.
    I have completed the above steps and it is still showing the same error message. Any help would be highly appreciated.
    Thanks.

    Thanks kumars ,
    I have a specific drag and drop area on our website. This works fine for all earlier releases of Firefox after these security settings
    "(1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again."
    Bust these settings not work for me in Firefox 17.
    Yes the drag and drop functionality is java script based and i am not using any script blocker addons.

  • Can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • Accessing local files in Safari for Windows

    I am trying to access local files, such as .doc and .pdf files. I have tried
    file://server/dir/dir/file.pdf, and various numbers of slashes, but all result in Failed to open page messages.
    Any ideas? IE can do this, Firefox won't (easily).
    Chris

    If you wish to view "local" files in any browser just drag the file icon to an empty browser window.
    The "file:///blah/blah" stuff and a URL has ended for security issues.

  • Applet access local file

    I have an applet that access local files and directory.
    I have create the applet policy file.
    When viewing with appletviewer, we can type:
    appletviewer -J-Djava.security.policy=applet.policy MainApplet.html
    However, when I want to embed the applet in a html, how can the policy file be included?
    Thx a lot.

    how can the policy file be included?Applets use the java.policy wich is located in the jre/lib/security
    (C:\Program Files\Java\jre1.5.0_04\lib\security)
    There is a java.security where you can add or change the java.policy files to be
    used
    policy.url.1=file:${java.home}/lib/security/java.policy
    After changing these files make sure the jre loads again, close all browsers
    and open the page.
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and reply 18 for the java class file using doprivileged
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore
    Still problems?
    A Full trace might help us out:
    http://forum.java.sun.com/thread.jspa?threadID=656028

  • Can I access local files?

    I am writing an application using Adobe Air that will have to utilize and store media files locally on a user's computer.  My marketing team now believes that a downloadable application that will be installed on a user's computer will be a dealbreaker for some users due to the fear of a virus, so now they are suggesting that we will have better sales numbers if people just need to log into a website to use the application.  No problem, Air applications can be embedded into a website.  But can an Air application embedded in a browser still store and manipulate files on a user's computer?  Storing media files for a large number of individuals can become cost prohibitive, so rather than store them online, we would like to create a folder on a user's system to organize their files.  Is this possible with a web-embedded Air application?
    Thanks.

    AIR applications are always installed on the user's computer. You cannot run an AIR application on a website. On a web page, you can include a link to download or install an AIR application.
    AIR applications can access local files.
    Flash Player applications can also access local files, but the user first grants permission. For example, see the FileReference.load() and FileReference.save() methods (added in Flash Player 10):
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html

  • How the applet can access local file system?

    1. I want to plugin the applet into the JSP. That applet should access the local file system. How to enable this programmatically.
    2. Is it is possible to embed a frame inside the JSP. If so how?
    Thanks in advance..
    K G Vinoth

    1: If you want the applet to access the client's local file system you'll have to sign the applet. There is a tutorial some where on the java.sun.com that explains how to sign an applet.
    2: No you;ll need to use an applet to display swing or awt components on the client browser.

  • Is it possible to access local files with MIDP?

    Hello everyone,
    I am developing a mobile application using Sun One Studio 4 ME, with MIDP 2.0.
    I am preparing a record store as input data for my application. "Preparing" means: I try to convert a local text file present on my PC into a record store.
    The problem I have is that I cannot find a way in MIDP to allow me to access the local file. It seems to me that MIDP only allows data access over the Web. Am I correct?
    Many thanks in advance for any help or suggestion you could provide.
    Dumitru

    Did you save the messages in a Personal Folder files (PST) or as individual messages on disk? The PST and MSG file formats are proprietary and might not be accessible outside of Outlook.
    If you want to move those messages to a different email program, assuming you have permission to do so, one way is to upload them to an IMAP account (Gmail allows you to connect Outlook as an IMAP client). However, that's pretty complicated, so I suggest researching it on the web, checking at least a few sites to make sure you know all the steps.

  • Problems Accessing Local Files

    Hi,
    I'm sure this has been discussed before, but I'm havign problems accessing a file on the target machine's local filesystem. I've signed all my jars and added the all-permissions tag to the jnlp file. However, my code:
    ClassLoader cl = getClass().getClassLoader();
    InputStream is = cl.getResourceAsStream("c:/resources/testsuite.xml");
    fails to find the file "testsuite.xml".
    Is this a classpath issue? I've tried to add c:/resources to the class path but with no luck.
    any help would be much appreciated
    Thanks

    Try "file://c:/resources/testsuite.xml" instead. I
    believe you are suppose to be passing in a valid URL
    and what you passed in wasn't.That's wrong. Resource name should be just a path. It could be a full path started from "/" or just a relative path from given class (here better to use this.class.getResourceAsStream() method).
    Better yet, since you are giving full security access
    to the user's local machine you don't really need to
    rely on the class loader at all. It's just a normal
    file, so you could create your File object and read it
    in the way you do normally. I would suggest to do not rely on File object at all because it can only be dealing with local file system and thats can't be changed in future.

  • -- Remote SWFs may not access local files.

    *** Security Sandbox Violation ***
    Connection to file:///D|/AMIT%20DATA/Personel/STANDS%20PROJECT/productsimages.swf halted - not permitted from http://www.fltech.in/awg/app.swf
    I am trying to load productimages.swf from another my client's server, but unable to load that..

    you need to add a cross-domain permission file on your local server.

  • How to access local files of crashed macbook pro booted thru external harddrive

    I am not able to see my macbook pro local data while booting it thru external harddrive (OS X marvericks)
    Note- my maching is crashed,every time I starts up my machine it starts with OS X utility window.
    Alos tried disk utility bt says back up as many as files as possble and reinstall OS.

    Sahil13gupta,
    while booting from your external disk, open Finder’s Preferences, select its Sidebar tab, ensure that all of its “DEVICES” checkboxes have been checked, and close the Preferences window. If your internal drive doesn’t appear among the devices shown in the Finder sidebar, then you’ll need to hire a data recovery firm to recover the data on your internal disk — note that their services tend to be expensive. Purchasing an external disk to use as a regular backup destination is much less expensive than hiring a data recovery firm.

  • Applet accessing local files under Vista

    I have a signed applet that accesses files on the client machine. This applet is not able to open files when running under Windows Vista (I get an "Access denied" message). I found that in C++ there is a function called GetTempPath, which returns a path to a directory where and OCX control can access files. So here is my question:
    Is there some Java function that will return the path to the directory mentioned above?
    Thanks for your help.

    Sorry, DrClap, but...
    Post 1: "I have a signed applet that accesses files on the client machine. This applet is not able to open files when running under Windows Vista (I get an "Access denied" message)." While he mentions temp files/dirs, that is not, IMO the issue, because...
    Post 6: "Under these OSs [XP, 2000], my applet uses a directory called c:\program files\mydir. This applet is not able to access files in the same directory under Windows Vista, access is denied in this case." The specified directory is not a "temp" dir as typically returned by the system parameters that I've ever seen, so I'm assuming he's using this explicitly. In which case, access is denied writing to it. In which case, it appears to be a signed applet permission issue.
    While the java.io.tmpDir system param may be giving an issue to, that doesn't seem to be the key point in what I'm reading. Otherwise it's not written entirely clearly.

  • How to make applet access a local file in intranet?

    I want to have my applet read from and write to a file on the user's PC. This is our company's intranet and security is not a concern so we don't want to go through the complicated certificate procedure.
    Our application server is weblogic. The jsp containing the applet can be accessed at http://10.150.20.100:7001/slfweb/jsp/Home.jsp. According to Core Java (Volume II), I put the following paragragh into java.policy file under jre/1.3.1/lib/security dir of each user's PC, hoping this will grant the permission for the applet to read/write a file in tmp dir:
    grant codeBase "10.150.20.100:7001/slfpweb/" {
    permission java.io.FilePermission "C:\\tmp\\*", "read, write";
    However, it does not work. Can someone tell me what is the simplest way to allow an applet to read/write a local file in intranet system?
    Thank you very much!
    Ming

    I guess the reason you're still running into permission problem is that you have not addressed the required settings in the browser(s) that you're using.
    On everyone's PC, the following must be done:
    1) on IE, click Tools | Internet Options | Security . Under Trusted Sites, add your server's IP address. Under Local Intranet, reset it to Medium or Low and check to see if any of the relavant settings require attention (note that a Java Applet is equivalent to an ActiveX object in IE) . Finally, go into Java Custom Settings and make the appropriate changes.
    2) on NN, to access local files, you can enable Codebase Principals by adding the following line to the user's pref.js file (look for it where NN is installed -- usually under C:\Program Files):
    user_pref("signed.applets.codebase_principal_support", true);
    I have also read Core Java and found that the authors have a way of over-simplifying everything and failure to adequately describe other factors that may potentially affect what they're describing.
    V.V.
    PS: Signing an applet with a self-signed certificate is not all that difficult. Here is a link to my file i/o applet that contains pertinent info that you might want to look into:
    http://home.attbi.com/~aokabc/FileIO/FileIOdemo.htm

Maybe you are looking for

  • Service Desk: Support team determination - Action Logs error

    Hello experts, I have customized the service desk functionality in Solman 7.0 EHP1 according to SAP help and the various (very helpful blogs from sdn). When I create a message from satelite system the "Support Team" field is already filled with the c

  • Adobe Photoshop 2.0 Starter Edition

    Wer kann mir helfen? Ich habe Adobe Photoshop 2.0 Starter Edition und habe mir meine fotos von der Festplatte in Photoshop Album geladen. Jetzt bekomme ich diese nicht auf Festplatte zurück. Kann diese auch nicht bearbeiten, mailen oder drucken. Zusä

  • Add Horizontal Layout in Business Functions

    Hi, I would like to customize the Business Function layout. The goal is to get something like that: I'm trying to achieve this by changing the display preferences for Business Function -> Advances -> Customize Content, but for some reason it's not wo

  • Flash player refuses to run.

    flash player refuses to run. have tried all the fixes but am unsuccessful....

  • Severe Instability

    I have a 975x PUE MoBo 2x pc6400 ram 1x Radeon x1900xt 1x e6400 cpu 2x36 sata raptor 1x160 sata normal hdd The AX-500F is a power supply optimized for high end PC's and complies with Intel's ATX12V version 2.0. The continuous output power fulfils gam