File which is not human readable

Dear Friends,
I want to print some confidential characters and numbers in a file so that,
1. file will not be editable by any text editor such MS-DOS editor, Notepad or Wordpad etc..
2. file will not contain human readable characters
What file writer or reader classes shall I use ? and with what methods ?
Avijit

Use ObjectOutputStream...
from the java doc..
FileOutputStream ostream = new FileOutputStream("t.tmp");
     ObjectOutputStream p = new ObjectOutputStream(ostream);
     p.writeInt(12345);
     p.writeObject("Today");
     p.writeObject(new Date());
     p.flush();
     ostream.close();You can also encrypt the valuse before writing...
appu

Similar Messages

  • Creating extensions Firefox 3.6.13: When dragging an XPI file (even pre-made), i'm always getting some error, which is not properly readable, but it says "not found" and an "ok" button.

    Hi! I want to develop an extension for Firefox.
    My problem is that none of the tutorials and sample which i find online work for Firefox 3.6.13 (on Mac).
    When dragging an XPI file (even pre-made), i'm always getting some error, which is not properly readable, but it says "not found" and an "ok" button.
    Please send me some info on how to make a "helloworld" extension installable in Firefox 3.6.13.
    My email is [email protected] Thank you very much!

    You can try to install the extension via File > Open File
    A forum better suited for such questions is this forum:
    *http://forums.mozillazine.org/viewforum.php?f=19 - mozillaZine Extension Development forum
    You need to register on the MozillaZine forum site in order to post at that forum.

  • [b]Need to access a file which is not specified in the classpath[/b]

    Hi everybody ,
    I need your help to proceed with my application. I've tried accessing a file without setting it in Classpath using getResourceAsStream(..), but i'm getting an error.
    error :
    java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
    at abc.func(LoadProp.java:13)
    at LoadProp.main(LoadProp.java:35)
    Application :-
    import java.io.* ;
    class test
    public void func(String file )
    String thisLine ;
    try
    InputStream is = test.class.getClassLoader().getResourceAsStream(file);
    System.out.println("File load successful");
    BufferedReader myInput = new BufferedReader(new InputStreamReader(is));
    while ((thisLine = myInput.readLine()) != null) {
    System.out.println(thisLine);
    catch (Exception e)
    System.out.println("Inside Catch");
    e.printStackTrace();
    public class LoadProp
    public static void main(String args[])
    String testname = System.getProperty("propfile");
    System.out.println(testname);
    test t = new test() ;
    t.func(testname) ;
    System.out.println("End Main!") ;
    Output:-
    test.properties
    File load successful
    Inside Catch
    java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
    at test.func(LoadProp.java:13)
    at LoadProp.main(LoadProp.java:35)
    End Main!
    Anyone of you help me to get rid of this problem..
    Thanks & Regards
    BK

    It has to be in the classpath for getResourceAsStream
    to "get" it.So if your question is really about needing to read a file which is not in the classpath and won't be, then as long as you have the path to that file, just use FileInputStream to read it.
    InputStream is = new FileInputStream(pathToFileHere);

  • I recently updated the iOS on my ipad 3 and lost all my files in the process. How do I recover my lost files which were not previously backed up?

    I recently updated the iOS on my ipad 3 and lost all my files in the process. How do I recover my lost files which were not previously backed up?

    If you don't have them backed up somewhere, then there's little possibility of recovering them. There are some utilities that can in some cases recover an inadvertently-deleted photo, but I've found none that can recover photos or other data from an iPad that was erased as part of an iOS upgrade. You can do a web search for something like "iPhone photo recovery" and you'll find some utilities you can try.
    Regards.

  • Aperture keeps multiple duplicate images in the library file which do not show up in the app

    So, I recently had to merge two libraries which have some common images.  Although upon import Aperture asked me if I wanted to "Add or Merge" the libraries (I selected "merge", which wouldn't import duplicates), I wanted to confirm there were no duplicates in fact brought in.  I ran Duplicate Annihilator, which made a strange claim (about most photos, in fact): it showed a file as a duplicate which had no copies that I could find - searching for it by name revealed exactly one image.
    Curious, I searched inside the actual photo library.  Imagine my surprise when I found the following files
    ...Library/Masters/2007/Aug 10, 2007/IMG_0002/IMG_0002.JPG
    ...Library/Masters/2007/Aug 10, 2007/IMG_0002 (1)/IMG_0002.JPG
    ...Library/Masters/2007/Aug 10, 2007/IMG_0002/IMG_0002.JPG
    which are in fact *exactly* the same image.  Meanwhile, to reiterate, Aperture shows only ONE photo:
    IMG_0002.JPG
    Shocked, I investigated further.  In fact almost every single file which was in common between both libraries was "imported but not displayed", which explains why my two libraries of sizes 50GB + 50GB after merger = 100GB when, the two libraries in terms of images had 10k + 12k after merger = 14k images.
    Aperture imported all the photos into the new library.  But it just opted not to use half of them.
    So, now I have a bloated-by-2x library, and of course the frustration with Aperture having made such an insane, bone-headed move.  Those files are essentially dead weight which will follow the library around for all eternity.
    1) Why?
    2) How to fix?
    thanks!

    I would take  a step back here before going further.  William's suggestion might very well clean up the library but something obviously did not go right and to start mucking about in the library might make things worst.
    For starters I'm surprised to see the folder structure you showed in your first post. Aperture stores managed masters (originals) by import date and time. The structure (in all libraries I've ever seen) looks like:
    So something seems wrong with your master folder.
    Also the three folders you showed the first and third are identical ( the middle one has the (1) added to which is how the OS handles duplicates in a folder) so this shouldn't even be possible, those folders should not be there.
    I'm wondering if this is something left over from your using Duplicate Annihlator. Do you have a copy of the library before you ran the merge and used DA on it? Would be interested to see what the master folder looks like.
    Finally when you ran the merge which library did you tell Aperture to use as the master, the one that was used to resolve conflicts?
    Again William's suggestion might be all you need to do but it would be good to figure out want went wrong before proceeding.
    regards
    Message was edited by: Frank Caggiano - A better first step might be to run the Aperture first aid tools, repairing and possibly rebuilding the library.

  • Can i call a file which is not bundled with war file

    i am dynamically creating a file which i want to call in another jsp but it is giving error file missing. i am working on sun app. server all the jsps servlet,beans are bundled with war file. can i call a file in some jsp which is not bundled with war. i am also setting path of server to that folder.but its not working. how can i do it.

    Do you have a small code sequence that you can share with us?

  • Adobe Reader leaving temp files, which are not auto-deleting.

    Adobe reader is leaving temp files all over and I can't delete them. The temp files are left in my "My Documents" folder, which is redirected to the server. Anytime I open a PDF, it leaves a temp file (ie:U17F7.tmp) and it does not auto-delete. The temp files are 0 bytes in size, just really annoying when my folders get cluttered with all these temp files.  I also cannot delete the files, because it says the location is incorrect. I am able to delete the temp files when I'm not connected to the company network. How do I get these temp files to remove themselves once I close out of Adobe Reader?  This is driving me crazy!

    Hi burdurboy05
    What is the version of reader that you're using?
    Are you trying to print files ?
    Did you try to uninstall and re-install the product?
    ~Mandy

  • Cannot print in Adobe 9 it will only print to file which does not work

    I cannot print a PDF file that is in Adobe 9.  It is not the file, I opened several other files and they all do the same thing.  INstead of printing.  When I click OK after choosing the printer, it goes into a print to file mode.  The print to file always fails and then it will nto print.  This morning it was working fine.  Now it will not print. It may have installed an update to Adobe 9, I do not remember it being 9 before.   I am in trouble if I cannot print tonight.  Any ideas?

    WHat is a "print dialogue?n  How can I find it"  There is nothing that I can find called print dialogue.
    Where do nI find "print to file in order to disable it?

  • When I try to save on some websites I will try to save a pdf or mp3 file. Down below it will list the file and in the 'save as type' box it will not list as save as '.pdf or .mp3' but instead always says 'all files' which will not save it in a way it can

    Why won't the 'save as type' section list .pdf or MP3 to save a PDF or MP3 file but instead always says 'save as type' -- 'all files "."'. How can I get rid of the 'all files'.?

    Sorry, I have no idea what you are doing; can you give us some details?

  • Adobe changed all my MOBI book files to Acrobat files which are not compatible with my Kindle

    How do we change my book attachments back to MOBI attachments?

    What is your operating system?
    How did "Adobe change all my MOBI book files to Acrobat files" - do they now have a .pdf extension?
    Or is perhaps your .mobi file association wrong?

  • Replica stuck while closing db file which has not been completely sync

    Hi,
    My system has one master and one client running on two different node.
    The replication server is up and running, then I start the replica, but somehow the replica is not
    getting DB_EVENT_REP_STARTUPDONE event within 120 seconds, so the database is closed,
    but while closing the database it got stuck inside a loop that logs the following messages every minute
    "the DB_ENV handle waiting %d minutes for replication lockout to complete" forever.
    (1) In what "failure" scenario, will get the thread stuck inside this loop?
    (2) How to get out of this loop?
    Thanks.

    Hi Sandra,
    Sorry to hear you're having this problem.
    When a replica starts up, it communicates with the master and tries to
    decide if it can do a simple synchronization (if it already has enough
    log history in common with the master), or must instead do a complete
    re-initialization of the database environment ("internal init").
    In the latter case we (understandably) can't satisfy DB->get()
    operations until the internal init is complete. Rather than rejecting
    those operations, we block ("locking out" the API). The idea behind
    that design choice is that it relieves the application of having to
    deal with this peculiar error situation. Unfortunately the API
    lockout is crude, i.e., it affects almost all API methods, including
    DB_ENV->close().
    There is currently no supported, non-hacky way to break out of this
    situation prematurely; one can only wait for all the necessary
    messages to arrive from the master, and eventually complete internal
    init.
    We should probably investigate why the internal init seems to be
    getting stuck. (Presumably there is not so much data that it's simply
    taking more than 120 seconds to load, or you wouldn't be asking.) If
    you turn on verbose diagnostic output at the master, and repeat this
    experiment, by any chance do you see any messages saying "queue limit
    exceeded"?
    Alan Bram
    Oracle

  • Set image link to a file which not yet exists

    Hi to all,
    I'm working with InDesignCS2 on Mac and Windows.
    Is it possible to set an image link to a file which does not exists yet.
    I have document with some JPG files in low resolution.
    Later, if the document layout is finished, I want to
    change the image links of the document to corresponding PSD files.
    E.g.
    The document is layouted with the imges image1.jpg, image2.jpg, image3.jpg.
    Now a want to change the links to corresponding PSD files image1.psd, image2.psd, image3.psd.
    BUT: the PSD file do no exist on the current working place.
    The images image1.psd, image2.psd, image3.psd exist on a destination working place.
    The document with the missing PSD links will be copied to the destination working place,
    in the some folder where the PSD file are placed.
    If I open the document on the destination working place the links set on the first
    working place should be satisfied now.
    Now it should be possible to print the document with the hires PSD images.
    My question:
    How can I set a link to an image which does not exist yet?
    The name, the path and the format are known.
    Please let me know, if you have an idea how to do that.
    Thanks.

    I might be proven wrong but I don't think you can link to a picture file that's missing.
    That would be an interesting feature actually - but probably too smart.
    What you could do instead is to use a dummy picture file to be replaced later in your production workflow.
    Something I did a long time ago was to create a text frame with the full path written in there.
    Then I was making a snapshot of this text frame.
    Then I was replacing the text frame by a picture frame - same size, position, etc.
    Then I was placing the snapshot within this picture frame...
    At the end I had a link to a temporary picture file that was displaying its full path to the layout artist - providing a valid link to a real picture, to be switched to the real one later in my customer production workflow.
    This is a classical case actually - and I'm sure there is dozens of solutions implemented out there . . .
    HTH
    Best regards
    Patrick Perroud

  • How can I run a sequence file which is stored as BLOB

    Hallo,
    I' using (or better will use) TestStand 3.1 and a ORACLE database. Is there a way to load and execute sequence files which are not stored on the filesystem but as BLOBs in the ORACLE DB. The choice which sequence has to be executed is done dynamically within a custom built process model. A certain sequencefile should be loaded and started by referencing it not by filename but with the PrimaryKey of the table.
    I don't know if this would be a certain capability implemented in TestStand or in ORACLE. It could be something like mapping a BLOB into the Filesystem and pretend that the file is present on the filesystem, something like that!
    Any ideas are highly appreciated
    Thanks
    Oliver Friedrich

    Oliver -
    TestStand does not have any hooks to allow a test system developer to override the internal searching for a file on disk. The only simple option that I see is to to query the database and download the latest sequences ahead of time. This is similar to a Source Code Control mechanism. Keep in mind that once an execution loads a sequence file, the file is typically not released until the last execution completes so you cannot load an updated copy of the sequence file while executing, especially the client sequence file.
    Scott Richardson
    National Instruments

  • Reading a XML file that does not have namespace

    Hi,
    I have a customer who sends XML files that has no namespace (no first line which has xmlns tag).
    It has a proper XSD, however I am unable to read this using File-Read as an XML file.
    Any suggestions ?
    (eg) file looks like below:
    <EdiAcknowledgementOut>
    <SchemaVersion>1.0</SchemaVersion>
    <FileType>PO</FileType>
    <CustCode>PII</CustCode>
    Thanks,
    Revathi

    Hi Naresh,
    The "rejectedMessage" property is for 10G, I am not 100% sure about its implementation in 11G.
    In 10G the faulted XML file moves to this location "Oracle_Home\bpel\domains\domain_name\jca\project_directory\rejectedMessages".
    This property is used to move the files which are not valid XML or which are not schema compliant. For DB polling I don't think this property is used.
    -Yatan

  • [File-Adapter] Reading not finished files

    Hey,
    my sender file adapter reading files which are not finished yet.
    The files are created by an ABAP programm. The creation could
    take some seconds. If the file adapter polls while creation is not
    finished, we have a problem.
    The flag "Process Read-Only Files" is not set, so the ABAP programm
    doesn't seem to set the file to read only.
    Is there a way to check (e.g. with an operating system command) if the
    file is processed completly?
    For example I could check if the date of creation is higher than 10 minutes
    or something like this.
    Any other ideas?
    thanks
    chris

    What is the file adapter option you are using?
    If NFS, you have the option "Milliseconds check before modification" that will prevent the file from being picked up till they are completly written.
    If FTP, then when the file is being written to the ftp folder you should have the option to use temporary files option
    Regards,
    Bhavesh

Maybe you are looking for

  • Attachment in forms 9i

    hi all, i'm developing application using forms 9i,and i need in some forms to have attachment(word processing,image,..etc)is better to store just the file path in the database(where the files are stored in folders in the server) or the whole document

  • Problem with my WiFi adapter..

    I just got a WiFi Link for PSP/NDSL. I went to put the disk for setup in, loaded the setup and it seemed like it worked, but now when I double-click the icon for setup for the USB adapter, it wont open. So I cannot enter any info for my wifi setup. H

  • Error Message : Condition type is not maintained in the schema RM0002

    HI Gurus, I have created a new purchasing procedure as follows. ZVATV : <b>Condition Schema</b> VATV  : <b>Condition Type</b> VA : <b>Sch.Grp Vndr</b> When I create the Purchase order, the above mentioned schema, ZVATV is automatically determined. Bu

  • Thought of functional consultant Vs abap

    Dear All, I am techno functional consultant. I thought and very funny sometimes, but its bad habit to laugh on anyone. Thought of Functional consultant: I have requirement of  report X in which when user create PO--->make GR> take print then it shoul

  • Standard transaction for PO Reporting

    Hi all, I'm on SRM 5.0 ECS. I'm looking for some standard transactino for reporting about PO. Something like transaction ME2L, ME2M, ME2K on R/3. Thanks enzo