How  applet write file in local system by URL instead of FileOutputStream()

hi,
how can applet write a file in local system through URL instead of FileOupStream()
plz.....plz.....plz......
URL url = new URL(" file://c:/temp.txt");
in this url how applet can write
plz....

URL uses http to cummunicate, this means you can send and receive data using the http
protocol.
The OS doesn't do anything with this, you need a http server to interpret these messages
and take appropriate action (with server side script or CGI).
So if the client has a http server installed and has server side script thad does
something with your http request (that's what a url does) than it is possible.
Since both having a http server , server side script and or CGI have nothing to do with
signed applets I will not answer your question here.
But the mail reason I won't answer it is because it makes no sence to use a URL to write
to the local file system.

Similar Messages

  • How to download file to local system when report is run in background?

    Hello all,
    Can anybody tell me how can we donwload file into local machin when the program is running in background?
    thanks

    Hi,
    We can't communicate with presentation server while processing in background.
    if needed we can do this by creating RFC destination and doing some setting in Desktop system.
    [Reference document|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2]
    Regards,
    Amal

  • Is thr way to applet write file, client machine without  entry in policy

    hi,
    is there any way to allow applet write file in local machine (client ) without entry in policy file... i feel this extra step to clients...
    To achieve this what are class i have to implements...

    No, thank God there isn't.

  • How to write files to phweb share drive(phweb is nonsap system)

    Hi all,
             Is there any way to write files directly to phweb share drive(phweb is Nonsap system).
    Thanks,
    Balalji

    Hi Rob,
               Yaa I got .But how to use that function modules and when to use.I heard that first we have to write to presenation server and then we can use one of those function modules.Is it right?
    Thanks,
    Balaji

  • How to write file in Applet

    I have a code:
    URL url = new URL("http://hostname/file.txt");
    URLConnection con = url.openConnection();
    con.setDoOutput(true);
    OutputStream out = con.getOutputStream();
    String s = "Test";
    byte[] b = s.getBytes();
    out.write(b);
    out.close();
    But it does not create or save into file.
    Please tell me how to solve it.
    Thanks.
    Nghianh

    URL url = new URL("http://hostname:80/cgi");
    URLConnection conn = url.openConnection();
    conn.setDoOutput(true);
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
    wr.write(data);
    wr.flush();

  • Cannot Retrieve referenced URL in wscript file from Local System Account, but not other accounts on the computer.

    Hello,
    I have a WScript File that includes an external resource (js file).
    It works on one computer and it does not work on another computer.
    If I run this file from a normal admin command prompt everything runs fine on both computers.
    If I run this file from the Local System account using PsExec it runs fine on one of the computers and throws an error "Cannot Retrieve referenced URL" on the other computer.
    The reason I want it to run from the Local System account is that it is executed from a Windows Service.
    Is there some setting or some way for the IE cache to get corrupt on the Local System account or something like that?

    JRV,
    You are by far the worst 'support' person I've ever seen. If you aren't going to be thoughtful in providing support, don't pretend. If you're going to pretend, leave your condescension on the shelf. You have provided no thoughtfulness whatsoever to his issue,
    and have in no way improved the discourse. You are arrogant and condescending without exhibiting any intelligence whatsoever. I'm impressed Matt kept calm through your demeaning, counterproductive diatribes.
    Matt,
    First I'd check UAC settings, because I believe that can change how elevation works substantially.
    Second, I would check the versions of wscript.exe on both machines, both in System32 and SysWow, and I'd check for updates bypassing WSUS to make sure there's not something silly going on there (totally a shot in the dark, catch-all theory).
    Have you made any headway in the last few weeks?
    -John
    This is not a support forum and it is not for assistance in fixing broken configurations.  It is a scripting forum. The OP proved that the issue is not the script but the environment it is running in.  You should not get mad just because you are
    not getting satisfaction.
    ¯\_(ツ)_/¯

  • How to write file at server end?

    Hi,
    I use a af:inputFile component to receive uploaded files. And want to write files to the directory of server. However, when execute java.io.File.createNewFile(), it throw exception. How to resolve it?
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import javax.faces.event.ValueChangeEvent;
    import java.io.InputStream;
    import java.io.File;
    public class UploadFileHandler {
        public void doUpload(ValueChangeEvent event) throws IOException {
            File file = new File("C:\temp.txt");
            *file.createNewFile();* //Error happen here.
    }

    Hi Cheney,
    It is good practice to use System.getProperty("file.separator") instead of hardcoding "/" or "\" .
    Though your issue is resolved by using "//", you might want to consider changing to the above.
    -Arun

  • How to write file to server side?

    hello,
    Could anyone pls help me...
    I just want to see an example how can I write to a file that is placed at the server(save place as the applet).
    p.s. I have been successfully read a file from there...
    Suppose I have signed the applet (self-signed), anymore security problem I need to pay attention to?
    Thanks a lot!!

    hi mandy, from the applet u can send the file to be written into the server to a servlet running in server and the servlet can in turn write the file into the servlet. by applet - servlet communication, u can easily read and write files to the server.

  • 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 write files to the filesystem with portal/plsql

    Hi,
    is there a way to write files to the filesystem via Portal?
    Or can i call an external programm (perl, php) to do so, while portal writes further information to database?
    thank you for the help
    Ralf Schmitt

    Hi Ralf,
    my primary task is to publish download-links to files stored ... somewhere as a linklist. I tried to store and download files to/from the database but i cant get it to run. Upload works, download doesn't.
    (i'm not talking about a single form-query-download-link! I need a report-like linklist)If you want to do this you'll have to write some code but sure it's possible - i did it myself.
    The links in the link list in your report should call a stored function retrieving the files from Wwdoc_document or whatever is the document table defined in your DAD. Simply select BLOB_CONTENT into a BLOB variable from the table, provided you know what file to read :-) The function would then read the BLOBs and send them to the client's browser via DBMS_LOB - it's poor design but it works just as smooth as it could and it's really performing. This would simply display the file into your browser or prompt for file save location, depending on what browser you are using and its client settings.
    I guess this is not so clear, if you want some more details feel free to e-mail me at [email protected]
    Another way would be to use wpg_docload to both download and upload files to/from the DB.
    Now i try to figure out if it is possible to store the files to the filesystem and write only additional info like description or path into db.Again, yes, it is. I can't recall exactly how I did it ^_^ but the trick is to create a virtual directory in the DB - pointing at a physical directory on the file system you want to write to, and you have to have full read-write permission on the directory itself, and its path must be included in the utl_file_dir database parameter. Then you use both COM Automation or UTL_FILE to write files.
    would it be possible to let a portal-form write info to the db and then pass the file to a php-script?
    regards,
    Ralf Schmitt

  • How applet write in a URL plz.. plz..

    how applet can write in URL
    like this
    URL url = new URL(file://c:/some.mov);
    in this url applet want to write
    for this what i have to do......

    Double post, is allready answerd here:
    http://forum.java.sun.com/thread.jspa?threadID=577956&tstart=0

  • Applet write file on coming server without servlet

    Hi, I have an applet that needs to write a new file on the server that's LOADED FROM. Here are my questions:
    1) can the applet write this file WITHOUT using a servlet on the server side?
    2) if it's possible, could someone send me an example to explain how to do it?
    Thanks in advance, have a nice day

    1) can the applet write this file WITHOUT using a
    servlet on the server side?No,it can't. Well, on the server is not necessary to
    have a java servlet but you should have "something"
    that can receive your data, understand it and save it.
    A small PHP script is enough.
    Hope this help

  • How to write files on Client Machine using JSP

    Hi,
    I am new to JSP. Please tell me how do i write files on Client machine thru a Browser.
    Please let me know at the Earliest.
    Thanks.
    Mehul Dave

    1) Well I find it rather convenient to deploy a web app as just one file rather than a bunch of files. For deployment it's much better. However I prefer using expanded files when developping (to use auto reload in Tomcat for example)
    2) It is a bad idea to upload files inside your webapp's context (ie: in it's deployment directory) because one day an uninformed system administrator might come and redeploy the web app and therefore delete all your uploaded files (believe me, I've already experienced this!)
    What i do usually is upload it in a completely different directory, something like /uploaded_files. Your uploaded files are therefore completely independant from your webapp
    However it is a bit trickyer to get those files back. Let's take the example of image uploads. You have 2 ways of proceeding:
    - the easiest : configure your web server (apache etc...) to redirect a certain url to your external directory. For example the /upload url will point to a /uploaded_files directory. This is easier to do and the fastest way to serve images but not always the best solution: you are dependant on the web server's configuration and you can't control the visibility on your files (no security constraints, anyone can see your uploaded files if they know the url).
    - you can also write a servlet which will load the file as an array of bytes and send it back in the response.
    You can call it this way :
    <img src="/serlvets/showmyimage?path=uploaded.gif">
    in this way you can control your uploaded files better: you may want to define security constraints on the visibity or not of uploaded files depending on the user which has logged on the site.

  • How to delete file from other system(LAN)

    Hello folks,
    Cud u plz help me out in finding code for deleting a file from other system i.e in LAN,assuming that the connection is already established to that system.

    > Cud u plz
    sigh
    Please make the extra effort to write out words such as "could", "you", and "please". The extra keystrokes won't cost much in the way of time, and the enhanced clarity will be appreciated by those communicating on a forum with international readership. Also, it will give the appearance that you take your question seriously, which will in turn make your question look more interesting to answer.
    Thanks!
    ~

  • Importing text file on local system

    I am trying to import data from a text file into a dynamic
    text box. When I
    play the movie on my local system, should the dynamic text
    appear or does it
    only work on a remote server?
    Thanks

    it should work locally. Testing from inside the IDE ignores
    security rules...I think...if your testing outside the IDE, check
    your publish settings to make sure you allow access to local files.
    Good luck!

Maybe you are looking for

  • Apple ID Switch-up Options?

    My wife & I have 2 seperate Apple ID's. I know we aren't able to combine those ID's, but is there any way of getting around it when it comes down to it? We have 2 computers & 3 devices between us.  We share the Music Library through home sharing (it'

  • Problem with Image Trace

    Ok so I used Image Trace on a .jpeg logo. The logo is black rectangle with white text in it. My problem is that when I traced it, the black space became the object and the letters are negative space. Is there a way to turn the letters into objects?

  • I am unable to get my emails on my iphone and ipad  please help

    I cannot access my emails on my iphone and ipad.  I used to be able to but am not sure what i might have done to change the settings.

  • Most useful SAP courses within SAP NetWeaver area

    Hi! I am certified SAP Basis consultant (SAP NetWeaver´04 - SAP Web AS for ORACLE) and would like to extend my knowledge. What are the most useful SAP courses (from practical point of view) that you could recommend? Thank you very much! regards Thom

  • Text from Word that IDCS4 can't capture (Setting poetry...)

    I am designing some books on poetry and the autho indented to the right some words. Many lines are normal (from the left edge) but others are aligned to the right side. This text arrives from Word with the indents but no style is present at all. The