File Encryption

Hi Guys!
Need some help and advice please! Basically what I'm trying to do is this. I have created my own encryption package which reads in strings and encrypts them using a secret key and then decrypts the cipher when provided with the secret key. What I need to do is encrypt files using this package. So for files with the extension ".txt" this should not be a problem as I could read in the text using a Reader of some sort and encrypt the contents to a new file, then delete the original file. However is there any way I can encrypt files of other types? Such as for example word document files and to an even greater degree other types of files such as music or image files?
Thanks :)

well, buffered reader would not be best choice for biary files or any other not plain text files.
you should look into API (that friendly link, in the left column of this page, that says 'API'), and look into java.io or java.nio packages.
if you want to read file, then maybe FileReader (just a quess) would help you....
however, if you're encrypting some kind of file that has known format, like .doc might have, then you should know, that it makes it easyer to break your encryption, because attacker allready knows how this file should beginn (probably it has some .doc specific header).
to overcome that problem, you should add salt to the text you're going to encrypt... that means you should mangle that text before crypting, so that id would not look like the original text did...

Similar Messages

  • After file encryption in Windows 7, Excel cannot open .xlsx file

    I just moved all my files to a new laptop with Windows 7.  I was using Excel 2007 and Windows XP on the OLD laptop.  The NEW laptop has Windows 7 Ultimate and Excel 2010.  I turned on file encryption (via Windows File Explorer) and now I'm
    unable to open most Excel files.  
    The error message says: "Excel cannot open the file 'ABC.xlsx' because the file format or file extension is not valid.  Verify that the file has not been corrupted and that the file extension matches the format of the file."
    I can open the file just fine if I use the backup version from the old laptop.  It appears that the Windows 7 file encryption damaged the file from Excel's perspective.  No other applications are showing issues and not all .xlsx files are failing.
    Any ideas, please?
    Thanks,
    Ken

    This is not a solution but a possible work around to see/salvage the contents of your file. If you have a Google Account
    Go to Google Docs (https://docs.google.com)
    Log in with your credentials
    Upload the troublesome files (xlsx, docx etc)
    If you are lucky Google may be able to salvage their contents.
    Once uploaded, you can always download the file from Google in a variety of formats

  • File Encryption with Client Security Solution

    Hello,
    We've been using ThinkVntage Client Security Solution for file encryption for a while now.  I'm setting up some new laptops running Client Security Soliution 8.2 and I can't seem to find the option for data protection/file encryption.  I checked a ocuple of users that are using file encryption and they were running Client Security Solution 7.x.  Did they remove this feature from 8.x?  

    Unless the latest edition was released before my previous post then your statement is incorrect.  My computer was using the latest edition because I downloaded it form your site only a few days before the post.  Since my initial post I have had to replace my laptop and Lenovo, unfortuantely, treats Canadians like **bleep** step children so I had to buy an HP.  If you can pass on a message, Lenovo lost the sale of a very high end system a few days ago becuase of a corporate choice to only sell a stripped down selection of computers to Canadians.  You have a good 5 years or so now to think on that and come up with a better solution than cripling your Canadian resellers.

  • Open in OS X encrypted files created under os 9 with "File Encryption"

    Hello
    I have a lot of files still encrypted by the tool "File Encryption" under OS 9.
    Now I want to open them on my MacBook Pro under OS X! Is there a tool which can do this decryption. Or is their a Programm which can do an convert to a more up to date security program. Who has solved this problem? Please helpme with some tips! I have found nothing in the web or an versiontracker.com
    Regards
    Gérard

    AFAIK, you'll have to mount them in OS 9, save them as unencrypted, and transfer them to the new machine.

  • Payment File Encryption

    Hello,
    I would like to know the process of payment file encryption.... Please let me know where i can get the SAP documentation on this.
    Thnx
    SundAR

    Hi Isis,
    Welcome to sdn
    Please refer below link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2e7020d-0d01-0010-269c-a98d3fb5d16c
    http://help.sap.com/printdocu/core/Print46c/en/Data/pdf/Glossar/glossary_p.pdf
    Pls assign points as way to say thanks

  • Files encrypted and digital signed with cFolders

    Dear all,
    Currently I'm involved on a PPS project with cFolders. This project has legal requirements that consist in implementing encryption and digital signature in files which will be uploaded to cFolders. I've been searching on SAP Help, SDN and Service Marketplace about APIs to work with cFolders with encryption and digital signatures, but I didn't find related documents. It seems there is no documentation regarding such scenarios...
    Anyone has experience in cFolders with files encrypted and digital signed?
    Thanks in advance & regards,
    Ricardo.

    Hi Federico
    If I understood your solution you are signing your documents in a Webservice provided from a CA. For that youu2019ve created an RFC dest type G over ssl (https) and used the class CL_HTTP_CLIENT. So your requirement is only to sign documents, right?
    Well my scenario seems a little bit different as Iu2019ve to encrypt the file and also sign it. The signature is done on useru2019s laptop trough a smartcard (hardware device connected via USB that reads the chip the certificate assigned to our identity card) and cannot be signed from other entity than the user itself.
    Did you explore the PGP alternative? cFolders supports this kind of files (*.pgp). The PGP (Pretty Good Privacy) is a popular program used to encrypt and decrypt files, e-mails, etc.
    Today I installed a trial version of a PGP tool. I tested the encryption/signature with files on my desktop and it works fine. I tested a Public Key scenario where the owner publishes his PK in cFolders and the requester gets this PK in cFolders as well. The requester now can encrypt documents and upload them to cFolders with the public key provided by the owner; the owner itself has the private key to open the encrypted file (extension .pgp) after upload. But over the encrypted file the requester must sign it with his private key (another certificate) provided by a CA and here starts the second challenge...
    In cFolders after the file upload the system should gets the requester digital signature and sends it to CA for validation, only after that we know if the requester is a trusted partner or not. To do this we are thinking to use a Webservice provided by the CA, however I don't know how to extract/get the signature in the file encrypted/signed from PGP and uploaded to cFolders.
    Do you have any idea?
    Thanks & regards,
    Ricardo.

  • One file  Encrypt in VB using 3DES how to  Decrypt in Java ?

    one file Encrypt in VB using 3DES how to Decrypt in Java ?
    plese give me code
    shrinath

    My problem is something similar to him, but mine is in Tandem C. I have a encrypted text, which was encrypted in Tandem C using OpenSSL. I used CBC mode with no padding, i just wrote the encrypted text to a file & i tried reading the cipher from a Java program, so as to decrypt using the same CBC mode & no padding mode. but it is not decrypted as intended to be.
    can u pls give ur comment? if u have any code can u pls share it here?

  • DME file encryption

    Hi experts,
    We have DME developments for our project and right now we are using Payment Medium Workbench(PMW) method for generating DME files and in this method, the file is being generated and stored it in the Presentation server(User PC).
    Our requirement is we need to encrypt the DME file while generation and it needs to be stored in the Presentation server. Please suggest us whether it is able to acheive it in the PMW.
    Regds,
    Uma

    Hi,
    1. File transport.
    Anyway DME file in only Presentation server as a text file.
    Use FM --> GUI_UPLOAD get the data to Internal table and
    use FM --> DX_FILE_WRITE Pass the itab and app. file path  create file to appication server.
    OR
    Run BDC for CG3Z
    Like below code
    data : t_bdcdata type table of bdcdata,
           w_bdcdata type bdcdata.
      clear : w_bdcdata, t_bdcdata.
      w_bdcdata-program = 'SAPLC13Z'.
      w_bdcdata-dynpro = '1020'.
      w_bdcdata-dynbegin = 'X'.
      w_bdcdata-fnam = 'RCGFILETR-FTFRONT'.
      w_bdcdata-fval = w_wrk_string.
      append w_bdcdata to t_bdcdata.
      w_bdcdata-program = 'SAPLC13Z'.
      w_bdcdata-dynpro = '1020'.
      w_bdcdata-dynbegin = 'X'.
      w_bdcdata-fnam = 'RCGFILETR-FTAPPL'.
      w_bdcdata-fval = w_g_efile_a.
      w_addparam = w_g_efile_a.
      append w_bdcdata to t_bdcdata.
      w_bdcdata-program = 'SAPLC13Z'.
      w_bdcdata-dynpro = '1020'.
      w_bdcdata-dynbegin = 'X'.
      w_bdcdata-fnam = 'RCGFILETR-IEFOW'.
      w_bdcdata-fval = 'X'.
      append w_bdcdata to t_bdcdata.
      w_bdcdata-program = 'SAPLC13Z'.
      w_bdcdata-dynpro = '1020'.
      w_bdcdata-fnam = 'BDC_OKCODE'.
      w_bdcdata-fval = '=EIMP'.
      append w_bdcdata to t_bdcdata.
      w_bdcdata-program = 'SAPLC13Z'.
      w_bdcdata-dynpro = '1020'.
      w_bdcdata-fnam = 'BDC_OKCODE'.
      w_bdcdata-fval = '=ECAN'.
      append w_bdcdata to t_bdcdata.
      call transaction 'CG3Z' using t_bdcdata mode 'E'.
    Same way for CG3Y.
    2. Encryption Part.
    data : l_encrtpt_ap type sxpgcolist-parameters.
    data : l_econst(1) type c value 'E'.
    data : w_addparam type sxpgcolist-parameters,
           w_finalencrpt type string,
           t_chkfile1 like btcxpm-message.
    data : w_status like  extcmdexex-status.
    data : w_exitparam like  extcmdexex-exitcode.
    data : t_exec_protocol like  btcxpm occurs 0 with header line.
    *w_addparam = Appication server TXT file path Name. *F\PROJECT\text_file.txt
    *w_finalencrpt = Appication server ENC file (Encrypted file path name)
    * F\PROJECT\encrypted_file.txt
    * t_chkfile1 = 32 digit key code (checksum code)
    *              Example #978708gflkorluf96moldglfj0lhop9#
    * w_status  = space (No value).
    * w_exitparam = space (No value).
    * t_exec_protocol  = space (No value).
    w_addparam =    'F:\usr\sap\EED\DVEBMGS00\work\TESTDURAI123.txt'.
    w_finalencrpt = 'F:\usr\sap\EED\DVEBMGS00\work\TESTDURAIENC.txt'.
    t_chkfile1 = '978708gflkorluf96moldglfj0lhop9D'.
    concatenate l_econst w_addparam w_finalencrpt t_chkfile1
                       into l_encrtpt_ap separated by space.
      call function 'SXPG_COMMAND_EXECUTE' destination 'devr3_EED_00'
        exporting
          commandname                = 'XWIZSTOP'
          additional_parameters      = l_encrtpt_ap
        importing
          status                     = w_status
          exitcode                   = w_exitparam
        tables
          exec_protocol              = t_exec_protocol
        exceptions
          no_permission              = 1
          command_not_found          = 2
          parameters_too_long        = 3
          security_risk              = 4
          wrong_check_call_interface = 5
          program_start_error        = 6
          program_termination_error  = 7
          x_error                    = 8
          parameter_expected         = 9
          too_many_parameters        = 10
          illegal_command            = 11
          others                     = 12.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *Here ZCRYPTOBJECT is commend name in SM49.
    *Result : Encrypted file generated to application server  in  w_finalencrpt file name
    *        I.e.  F\PROJECT\encrypted_file.txt
    *Here Without generated the checksum key we Encrypted the file
    *we hard code the checksum key.
    *if u want to genereted the checksum code defined on file.
    *there we can use SXPG_CALL_SYSTEM  function module
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks,
    Durai.V
    Edited by: Alvaro Tejada Galindo on Aug 21, 2008 3:19 PM

  • When opening a sealed file, are the Autosave-File and Temp-Files encrypted?

    Hi, when opening / editing a sealed file (e.g. a MS Word document), are the Autosave-File and Temp-Files encrypted?

    Hello,
    Yes they are. If they weren't, it would be relatively easy to leak an unsealed version of the file. In older versions of the Desktop IRM opened all files in browser, so theIRM Desktop had to encrypt and copy around these files manually. Nowadays, the IRM Desktop is embedded in the Office applications themselves so we leave the temporary file creation to the application but manage the encryption depending on the nature of the file. So the autosave and temp files (where content may reside) are encrypted, but the lock file (which is only for ownership, not content) is not encrypted for example.
    In fact, the autosave/temp files which are encrypted are actually treated as sealed files, so they contain all the metadata fields you would expect. For example, open a sealed document in Word and set the autosave to every minute and make some changes. wait a minute and you'll see the autosave file (which is a .asd) update automatically (the default location is C:\Documents and Settings\<youruserid>\Application Data\Microsoft\Word\). Make a copy of the file and close Word. If you open the file and Select a Program from a List and choose Word you'll see the file open as a sealed document. If you rename the extension to .sdoc or .sdocx (depending on what the original file was), then you can right click Properties and see the metadata is there too.
    Nicely secure.
    Regards,
    Frank.

  • DRM-79819: Encryption error: Config file encryption is not valid for this m

    Hi ALL,
    Suddenly we got this error while running an export via batch utility. any ideas?
    Error: DRM-79819: Encryption error: Config file encryption is not valid for this machine.

    This could be an issue with your drm-config.xml file, the file that stores the DRM configuration information defined in the DRM Console. If a drm-config.xml was restored from an old backup or copied from another machine, this could well be the issue.
    In this case, you can run the DRM Console to update the file and correct it. You may see a one-time error reported when the DRM Console starts up, but the Console app should correct the file automatically after reporting the error to the user.
    If this does not resolve your issue, review the Windows App Event Log, to determine which DRM Server process(es) are also reporting this error (to narrow down any other potential issues with a config file for one of the DRM Server executables). I am guessing this error was observed in just the DRM Batch client, but related Event Log should also be present in the App Event Log.
    HTH.
    *** An additional note, if your issue proves to be the one above, you may need re-enter passwords on your defined Database Connections for defined DRM Apps. Try just re-running the DRM Console and re-saving the config initially, but be aware this may be a required additional step, re-entering the DB passwords after the updated encryption has been applied to the stored drm-config.xml file.
    Edited by: 680314 on Jan 19, 2013 11:52 AM

  • Is there a way to crack this file encryption code?

    The text below is a little irrelevant for the question, it explains how I discovered the code:
    I was randomly making weird binary operations on my notebook (I mean, I REALLY do that, actually...), when I had an idea.
    After a few operations, I found out a way to encrypt files with a password. It was based on operating the original byte with a password in both AND and OR ways, resulting two bytes, then operate them back with: return (byte) ( ( factor & AND ) | ( ( ~factor ) & OR ) );
    It worked, but I a few minutes later I figured it can be cracked by simply decrypting the two bytes with every possible byte and seeing which ones return the same result, then testing these ones with the next AND/OR bytes, and so on until a single byte (or a single sequence) remains. Plus, the encrypted file was twice bigger than the original file.
    Then I thought a little. The two bytes sum sixteen bits, but the result is only eight bits wide, so there are eight bits that aren't used for anything. If I could match the AND and OR bytes by removing the useless bits, I'd get a single encrypted byte, which means the file is the same size as the original and you could not use the strategy I said above, so it's theoretically uncrackable. I figured out the formula in another couple minutes.
    The question itself:
    The formula for generating an encrypted byte is:
    byte res = (byte) ( ( temp & ( ~pass ) ) | ( ( ~temp ) & pass ) );
    //res = the encrypted byte
    //temp = the original byte from the file
    //pass = the password byteI also realized that the same formula can be used both for encrypting and decrypting.
    The question is: Is it possible for anyone to crack this without using the "brute force" method?
    Please note I never studied this security stuff before, so I have no clue whatsoever if this formula already exists or something like that (it probably does, somewhere). A book on the issue would really help. Thanks.

    O.o weird
    I was using XOR operations and I didn't know it. Just noticed.
    Thank you very much. ^^
    By the way, about that book, any suggestions?
    Edit: Oh and, if the key bytes are a sequence as big as the file itself, can it still be cracked under frequency analysis?
    Edited by: KaoroSorane on Jan 28, 2010 12:59 PM

  • Operations on Text File - Encrypt, Decrypt, Password Protected

    Dear Experts,
    My requirement is to upload a text file  and do some operations on it and then encrypt the content in it ans save it on application server with password protected. Later i want to decrypt it.
    Please help me for the following:
    How to encyypt and decrypt the text file using standard encryption alogrithms like DES, MD5, RSA? Are there any standand function modules for both encryption and decryption which accepts a user defined public key?
    How to download a password protected text file?
    Thanks in advance.

    CALL FUNCTION 'Z_CRYPT_FILE'
            EXPORTING
              SOURCE_PATH         = WS_PATH
              SOURCE_FILE         = WS_OLDFILE
              DESTINATION_PATH    = WS_NEW_PATH
              DESTINATION_FILE    = WS_NEWFILE
              SWITCH              = 'E'
              KEY                 = ZUSER_PW
              KEEP_SOURCE_FILE    = ' '
            EXCEPTIONS
              INVALID_SWITCH      = 1
              SOURCE_FILE_NOTFOUND = 2
              DIDNT_WORK          = 3.
    FUNCTION MODULE Z_CRYPT_FILE 
    DATA: CINPUT(300) TYPE C.
    DATA: BEGIN OF LIST OCCURS 0,
            DATA(238) TYPE C,
            DELIMITER(04) TYPE C,
            FILE(12) TYPE C,
          END OF LIST.
    DATA: SOURCE TYPE ZCHAR200.
    DATA: DESTINATION TYPE ZCHAR200.
    DATA: ZINDX TYPE I.
    DATA: msg(100).
    IF SWITCH = 'E'.
       IF FILETYPE = 'T'.
          OPEN DATASET SOURCE IN TEXT MODE FOR INPUT ENCODING DEFAULT
             message msg.
       ELSE.
          OPEN DATASET SOURCE IN BINARY MODE FOR INPUT message msg.
       ENDIF.
       IF SY-SUBRC <> 0.
          RAISE SOURCE_FILE_NOTFOUND.
       ENDIF.
       CLOSE DATASET SOURCE.
       CLEAR CINPUT.
       CONCATENATE '/usr/local/bin/gpg -sev -r'
        KEY
        '-o'
        DESTINATION
        SOURCE
       INTO CINPUT SEPARATED BY SPACE.
       CONCATENATE CINPUT '2>&1' INTO CINPUT SEPARATED BY ' '.
       CALL 'SYSTEM' ID 'COMMAND' FIELD CINPUT ID 'TAB' FIELD
                                  LIST-SYS.
       IF FILETYPE = 'T'.  
          OPEN DATASET DESTINATION IN TEXT MODE FOR INPUT ENCODING DEFAULT
             message msg.
       ELSE.
          OPEN DATASET DESTINATION IN BINARY MODE FOR INPUT message msg.
       ENDIF.
       IF SY-SUBRC = 0.
          CLOSE DATASET DESTINATION.
          IF keep_source_file <> 'X'.
             CLEAR CINPUT.
             CONCATENATE 'rm' SOURCE INTO CINPUT
             SEPARATED BY SPACE.
             CALL 'SYSTEM' ID 'COMMAND' FIELD CINPUT ID 'TAB' FIELD
                            LIST-SYS.
          ENDIF.
       ELSE.
        write: 'Encryption error  on command: ',
           cinput.
        skip 1.
         loop at list.
            write: / LIST.
           endloop.
          RAISE DIDNT_WORK.
       ENDIF.
       IF FILETYPE = 'T'.  
          OPEN DATASET SOURCE IN TEXT MODE FOR INPUT ENCODING DEFAULT.
       ELSE.
          OPEN DATASET SOURCE IN BINARY MODE FOR INPUT.
       ENDIF.
       IF SY-SUBRC <> 0.
          RAISE SOURCE_FILE_NOTFOUND.
       ENDIF.
       CLOSE DATASET SOURCE.
       CLEAR CINPUT.
       CONCATENATE '/usr/local/bin/gpg -o'
        DESTINATION
        SOURCE
       INTO CINPUT SEPARATED BY SPACE.
       CONCATENATE CINPUT '2>&1' INTO CINPUT SEPARATED BY ' '.
       CALL 'SYSTEM' ID 'COMMAND' FIELD CINPUT ID 'TAB' FIELD
                                  LIST-SYS.
      REFRESH LIST.
      CLEAR LIST.
       IF FILETYPE = 'T'. 
          OPEN DATASET DESTINATION IN TEXT MODE FOR INPUT ENCODING DEFAULT.
       ELSE.
          OPEN DATASET DESTINATION IN BINARY MODE FOR INPUT.
       ENDIF.
       IF SY-SUBRC = 0.
          CLOSE DATASET DESTINATION.
       ELSE.
    *list output if error
          loop at list.
            write: / LIST.
           endloop.
          RAISE DIDNT_WORK.
       ENDIF.
    ENDIF.

  • Problem in ZIP file encryption

    Hi Folks,
    I am facing a problem while encrypting and decrypting a ZIP file. The result file is corrupted.
    If i encrypt .txt and .doc files, i am able to get them in decryption. But problem with ZIP files. What could be the reasone?
    I am using AES algorithem.
    Key Generator code is:
    ================
    KeyGenerator kgen = KeyGenerator.getInstance("AES");
    kgen.init(128); //128 bitskey = kgen.generateKey();
    Encryption:
    ========
    Cipher ecipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
    //paramSpec is a Initialization Vector
    ecipher.init(Cipher.ENCRYPT_MODE, skey, paramSpec);
    FileInputStream in = new FileInputStream("c:\\encryption\\Source.zip");
    FileOutputStream out = new FileOutputStream("c:\\cipher\\cipher.enc");
    OutputStream cout = new CipherOutputStream(out, ecipher);
    int numRead = 0;
    while ((numRead = in.read(buf)) >= 0) {     
    cout.write(buf, 0, numRead);
    Decryption:
    ========
    Cipher dcipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
    dcipher.init(Cipher.DECRYPT_MODE, skey, paramSpec);
    FileInputStream fis = new FileInputStream("c:\\cipher\\cipher.enc");
    InputStream in = new CipherInputStream(fis, dcipher);
    FileOutputStream fos = new FileOutputStream("c:\\encryption\\Result.zip");
    int numRead = 0;
    while ((numRead = in.read(buf)) >= 0) {    
    fos.write(buf, 0, numRead);
    }

    bala_1404 wrote:
    i closed them in the program. i just pasted important lines of my program.You have a program that does not work and you don't know why yet you feel confident enough in your diagnosis to show just the lines where you think the problem lies. I'm betting that you are closing the wrong streams but of course I am guessing since I can't see the code that matters.
    Good luck.

  • File Encryption for Mac and Windows

    I need to exchange with Windows users files which will contain financial and other sensitive data. Version Tracker & Mac Update have lots of Mac only encryption programs but I'm looking for one that works on both platforms.

    The ideal solution would be PGP, which would not require you to ever transmit a key that could be intercepted and used to access the data. With PGP, you have a public key and a private key, and your colleague/client has a public key and a private key. You trade public keys, and protect your private keys. When you send data, you encrypt using a public key, and then only someone with the corresponding private key can decrypt it.
    I've never tried this, but there's some free PGP software at:
    http://www.pgpi.org/

  • Anyone know of a good File Encryption Java program?

    Preferably a program that has source code available. I'm working on making the password saving function of my program secure. I already have it so the user has to have 2 passwords. The 2nd password is used as a key to encrypt the 1st password. I will then save it to a file. Now I want to encrypt the file itself.

    Why not encrypt the file the same way you encrypt the password?

  • Binary file encryption

    Hi friends, i am tryin to encrypt binary file using secret key. When i decrypt the it seems taht it is damaged.
    I write this code :
      Cipher cipher = Cipher.getInstance("DES");
          cipher.init(Cipher.ENCRYPT_MODE, secretKey);
          CipherOutputStream cos = new CipherOutputStream(new FileOutputStream(new
              File(pathOut)), cipher);
          FileInputStream fis = new FileInputStream(new File(pathIn));
          byte[] buffer = new byte[bufferSize];
          while ( (fis.read(buffer, 0, buffer.length)) >= 0) {
            cos.write(buffer, 0, buffer.length);
          cos.flush();
          cos.close();
          fis.close();I dont know what hapened. Can you help me please?

    This is the decyption methode :
    Cipher cipher = Cipher.getInstance(AES);
          cipher.init(Cipher.DECRYPT_MODE, secretKey);
          CipherInputStream cis = new CipherInputStream(new FileInputStream(new
              File(pathIn)), cipher);
          FileOutputStream fos = new FileOutputStream(new File(pathOut));
          byte[] buffer = new byte[bufferSize];
                while ( (cis.read(buffer, 0, buffer.length)) >= 0) {
            fos.write(buffer, 0, buffer.length);
          fos.flush();
          fos.close();
          cis.close();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • I want to create a blog on my website but don't know where to start.

    My server is Lunarpages and they have Wordpress for creating a blog. Can you direct me to simple bulleted instructions on how that might interface with using my website template that is consistent for all html pages? I already have eBlogger.com blog

  • How do I set up my work email account on my iPhone?

    I have an iPhone by my IT department won't support it. So I have to set-up my email myself. The problem is I'm not sure what info to fill in and where. I am able to access my email using remotemail on the web so I'm hoping I can use that info. My det

  • Issues with Office Documents in Sharepoint Foundations 2010

    We recently upgraded to Sharepoint Foundations 2010 from Sharepoint V3.0.  When I did the install of Sharepoint Foundations 2010, there was no mention of Office Web Apps in the Technet article.  Now when our users try to open a document from Sharepoi

  • Why doesn't request desktop website work?

    I installed the Firefox beta on my Nexus 7. The Request Desktop site option is present, but not on a More option under settings, but rather at the root directory. I did check this box, but when I go to sites...cwtv.com and www.espn.go.com beihg examp

  • Black screen for few seconds and only mouse can be seen and moved

    Hi all,      Sometimes, after logging in appears the desktop and programs, but after few seconds, the screen goes black, only mouse can be seen and moved, and after few seconds again it go to sleep mode. why ?      after this I log in again and it wo