Please help me in reading the ascii file in encoded format

hi ,
iam trying to read the ascii file and i need to encode the text file, can u suggest me what arre the different methods are availble for me to encode the text file, please suggest me which is the effiecient method tto use?

This question has been answered before, please search the forums in future.
You could do something like this, it probably not the most efficient though.
If you don't need to do it in code then the native2ascii does this conversion see: http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/native2ascii.html
        public static void convert(String vsFile) throws IOException
          File f = new File(vsFile);
          FileReader fr = new FileReader(f);
          char[] buf;
          int bytesRead = 0;
          int startAt = 0;
          String content = "";
          do
               buf = new char[512];
               bytesRead = fr.read(buf, 0, 512);
               startAt += bytesRead;
               String tmp = new String(buf);
               content += tmp;
          while (bytesRead == 512);
          FileOutputStream fout = new FileOutputStream(f);
          OutputStreamWriter out = new OutputStreamWriter(fout, "UTF-8");
          out.write(content.trim());
          out.flush();
          out.close();
     }

Similar Messages

  • Please help i cannot open the pdf files of cic.gc.ca

    please help i cannot open the pdf files of cic.gc.ca

    Hi ooovvvaaaiiisss12345.
    Are you trying to view the pdf's from the browser are after downloading it and viewing via Reader.
    Please let me know the OS and browser you are using.
    Are you able to view the pdf's on other websites?
    Let me know what errors you get while viewing the pdf's

  • How to read the AFP file in hex format

    hi,
    I am reading a AFP file in hexstring format.But it is out put is not perfect means it is showing output close to the real one.
    How to read the file so taht i can get exact output in hex format.
    try{         
                        File inputFile = new File( "C:\\ACode\\afpfile.afp" ) ;
                        File outputFilehex = new File ( "C:\\ACode\\Hex.txt" ) ;
                        FileInputStream inputStream = new FileInputStream( inputFile );
                        Reader in = new InputStreamReader(inputStream,"Cp1252");
                        BufferedReader readableFile = new BufferedReader( in ) ;
                        FileOutputStream outputStreamhex = new FileOutputStream( outputFilehex );
                        Writer outhex = new OutputStreamWriter(outputStreamhex);
                        BufferedWriter writableFilehex = new BufferedWriter( outhex ) ;
         int line;
         String hext=new String();
         while ((line= (readableFile.read()))!=-1)
              writableFilehex.write(Integer.toHexString(line).toUpperCase());
         } writableFilehex.close() ;
    readableFile.close() ;
    catch( IOException e ) {
         System.out.println( e.getMessage() ) ;
         

    while reading i am getting most of hex charters are same except some places like instead of taking 00 its writing 0 and instead of f8 its writing fff.
    AFP is a IBM format for printing. Somehow i will be able to read that but how to covert it back to that format and store to that file.
    by trying is just storing data in hex format only
    Writer outhex = new OutputStreamWriter(outputStreamhex,"Cp1252");
    is there anyother way to store it back to this format

  • Please help with "Error writing the project file. The specified module could not be found." error.

    I am a student.  I've been trying to install and use Visual Studio 2013 Professional for three weeks now and I cannot get it to work.  I am now two weeks behind in my Visual Basic class.  I've installed, uninstalled, ran the repair option... 
    I've tried everything I know how to do.  I just spent 45 minutes on the phone with Microsoft, was transferred four times and finally told I will have to use the forums to find an answer.  I'm almost completely out of patience with this.
    I got the software through the Dream Spark program as a student.  I installed it with the web installer and it appeared to install fine.  When I try to create a new project, I get the error:  "Error writing the project file.  The
    specified module could not be found."
    When I exit the application, I also get:  "The automatically saved settings file 'c:\users\user\documents\visual studio 2013\Settings\CurrentSettings-2015-02-02.vssettings' is not available for write.  You can change this file on the 'Import
    and Export Settings' Tools Options page."
    Please tell me you can help.

    Hi,
    could you please try the points mentioned here:
    http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/0376db8f-4761-4ae5-9af2-98c53216318a#VS_IDE_unexpected_problems to eliminate the possible cause of your issue?
    Please update the result in the forum after you try the method above!
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Please help!-I deleted the master file

    Ok. for the first time I accidentally deleted a sitting from the original file folder. It's not anywhere, not trash, I searched the entire computer, etc.
    Is there a way to restore it thru lightroom? I still have the lightroom files but of course they say the filename "IMG_0558" is offline or missing.
    Please help. I can't call this client with this huge mistake.

    Yes, that is what I normally do. However, this week I lost contact with one entire side of my family due to mental illness (not mine), and then my grandmother passed away as well. Her funeral was just yesterday. This doesn't excuse my failure to back up again but I was no mind to be handeling files and I should not have been. I should have gone to bed instead. I am a responsible photographer, this has never happened in 13 years. I've just had the worst week of that 13 years almost.
    It's my own fault, and a mistake that I made. I just need help in trying to fix it if possible.
    I'm trying the restoration programs now.

  • Ichat video error 8 -- Ralph, please help, I have read the prior posts!

    I am trying to video chat with another 10.5.2 machine. We are both using recent Airport Extreme Base Stations. I am connecting via Cox cable modem, RCA 6G24, the other computer is on a DSL modem. When trying to connect, we receive the error 8 message. The other computer has Parallels connected, but we have disabled both the Guest and NAT accounts in the Network sharing tab. Neither machine has internet sharing enabled. We have connected a few times with video, but the majority of the time, we receive the error message below. Any help would be greatly appreciated. One interesting note, we are able to connect for a video chat using an older ibook with 10.4.11 installed on the DSL side and the 10.5.2 machine on Cox cable. We are usually unable to connect 10.5.2 to 10.5.2. Any help would be greatly appreciated.
    The abbreviated version of the message follows:
    Date/Time: 2008-03-23 15:39:42.755 -0400
    OS Version: 10.5.2 (Build 9C7010)
    Report Version: 4
    iChat Connection Log:
    2008-03-23 15:39:08 -0400: AVChat started with ID 3783672204.
    2008-03-23 15:39:08 -0400: kevinjosephrice1: State change from AVChatNoState to AVChatStateWaiting.
    2008-03-23 15:39:08 -0400: 0x9291970: State change from AVChatNoState to AVChatStateInvited.
    2008-03-23 15:39:15 -0400: 0x9291970: State change from AVChatStateInvited to AVChatStateConnecting.
    2008-03-23 15:39:15 -0400: kevinjosephrice1: State change from AVChatStateWaiting to AVChatStateConnecting.
    2008-03-23 15:39:29 -0400: 0x9291970: State change from AVChatStateConnecting to AVChatStateEnded.
    2008-03-23 15:39:29 -0400: 0x9291970: Error -8 (Did not receive a response from 0x9291970.)
    2008-03-23 15:39:29 -0400: kevinjosephrice1: State change from AVChatStateConnecting to AVChatStateEnded.
    2008-03-23 15:39:29 -0400: kevinjosephrice1: Error -8 (Did not receive a response from 0x9291970.)
    Video Conference Error Report:
    10.855543 @SIP/SIP.c:2719 type=4 (900A0015/2)
    [SIPConnectIPPort failed]
    Video Conference Support Report:
    0.687790 @Video Conference/VCInitiateConference.m:1582 type=2 (00000000/0)
    [Connection Data for call id: 1 returns 1
    7.737749 @Video Conference/VCInitiateConference.m:1597 type=2 (00000000/0)
    [Prepare Connection With Remote Data - remote VCConnectionData: 1, local VCConnectionData: 1
    7.744280 @Video Conference/VCInitiateConference.m:1701 type=2 (00000000/0)
    [Initiate Conference To User: u0 with Remote VCConnectionData: 1 with Local Connection Data: 1 conferenceSettings: 1]
    8.854961 @SIP/Transport.c:2362 type=1 (00000000/0)
    [INVITE sip:user@[rip]:16402 SIP/2.0
    Via: SIP/2.0/UDP [lip]:16402;branch=z9hG4bK4df426d77401783d
    Max-Forwards: 70
    To: "u0" <sip:user@[rip]:16402>
    From: "0" <sip:user@[lip]:16402>;tag=627540858
    Call-ID: d3044424-f910-11dc-8df4-9fc4ccab4012@254-56-3-160
    CSeq: 1 INVITE
    Contact: <sip:user@[lip]:16402>;isfocus
    User-Agent: Viceroy 1.3
    Content-Type: application/sdp
    Content-Length: 773
    v=0
    o=kjrice 0 0 IN IP6 lip
    s=0
    c=IN IP6 lip
    b=AS:2147483647
    t=0 0
    a=hwi:288:2:2000
    a=iChatEncryption:NO
    a=bandwidthDetection:YES
    m=audio 16402 RTP/AVP 110 121 12 3 0
    a=rtcp:16402
    a=rtpmap:121 speex/16000
    a=rtpmap:122 speex/8000
    a=rtpmap:113 X-AAC_LD/44100
    a=rtpmap:110 X-AAC_LD/22050
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:964228453
    m=video 16402 RTP/AVP 123 126 34
    a=rtcp:16402
    a=rtpmap:123 H264/90000
    a=rtpmap:126 X-H264/90000
    a=rtpmap:34 H263/90000
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:30
    a=RTCP:AUDIO 16402 VIDEO 16402
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480:15
    a=fmtp:123 imagesize 0 rules 15:640:480:640:480:15
    a=rtpID:2253875979
    9.355536 @SIP/Transport.c:2362 type=1 (00000000/0)
    [INVITE sip:user@[rip]:16402 SIP/2.0
    Via: SIP/2.0/UDP [lip]:16402;branch=z9hG4bK4df426d77401783d
    Max-Forwards: 70
    To: "u0" <sip:user@[rip]:16402>
    From: "0" <sip:user@[lip]:16402>;tag=627540858
    Call-ID: d3044424-f910-11dc-8df4-9fc4ccab4012@254-56-3-160
    CSeq: 1 INVITE
    Contact: <sip:user@[lip]:16402>;isfocus
    User-Agent: Viceroy 1.3
    Content-Type: application/sdp
    Content-Length: 773
    v=0
    o=kjrice 0 0 IN IP6 lip
    s=0
    c=IN IP6 lip
    b=AS:2147483647
    t=0 0
    a=hwi:288:2:2000
    a=iChatEncryption:NO
    a=bandwidthDetection:YES
    m=audio 16402 RTP/AVP 110 121 12 3 0
    a=rtcp:16402
    a=rtpmap:121 speex/16000
    a=rtpmap:122 speex/8000
    a=rtpmap:113 X-AAC_LD/44100
    a=rtpmap:110 X-AAC_LD/22050
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:964228453
    m=video 16402 RTP/AVP 123 126 34
    a=rtcp:16402
    a=rtpmap:123 H264/90000
    a=rtpmap:126 X-H264/90000
    a=rtpmap:34 H263/90000
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:30
    a=RTCP:AUDIO 16402 VIDEO 16402
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480:15
    a=fmtp:123 imagesize 0 rules 15:640:480:640:480:15
    a=rtpID:2253875979
    10.356086 @SIP/Transport.c:2362 type=1 (00000000/0)
    [INVITE sip:user@[rip]:16402 SIP/2.0
    Via: SIP/2.0/UDP [lip]:16402;branch=z9hG4bK4df426d77401783d
    Max-Forwards: 70
    To: "u0" <sip:user@[rip]:16402>
    From: "0" <sip:user@[lip]:16402>;tag=627540858
    Call-ID: d3044424-f910-11dc-8df4-9fc4ccab4012@254-56-3-160
    CSeq: 1 INVITE
    Contact: <sip:user@[lip]:16402>;isfocus
    User-Agent: Viceroy 1.3
    Content-Type: application/sdp
    Content-Length: 773
    v=0
    o=kjrice 0 0 IN IP6 lip
    s=0
    c=IN IP6 lip
    b=AS:2147483647
    t=0 0
    a=hwi:288:2:2000
    a=iChatEncryption:NO
    a=bandwidthDetection:YES
    m=audio 16402 RTP/AVP 110 121 12 3 0
    a=rtcp:16402
    a=rtpmap:121 speex/16000
    a=rtpmap:122 speex/8000
    a=rtpmap:113 X-AAC_LD/44100
    a=rtpmap:110 X-AAC_LD/22050
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:964228453
    m=video 16402 RTP/AVP 123 126 34
    a=rtcp:16402
    a=rtpmap:123 H264/90000
    a=rtpmap:126 X-H264/90000
    a=rtpmap:34 H263/90000
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:30
    a=RTCP:AUDIO 16402 VIDEO 16402
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480:15
    a=fmtp:123 imagesize 0 rules 15:640:480:640:480:15
    a=rtpID:2253875979
    Video Conference User Report:
    0.000000 @:0 type=5 (00000000/16402)
    [Local SIP port]
    0.000041 @:0 type=5 (00000000/16402)
    [Local SIP port]
    10.946797 @Video Conference/VideoConferenceMultiController.m:1474 type=5 (00000000/0)
    [IP And Port Data With Caller IP And Port Data: Obtained 200 bytes of local IP and port data (5 entries). Remote data was 0 bytes (0 entries).
    []

    Hi,
    Thanks for not including the Binary Images part.
    This log indicates your have called out and iChat has moved to the SIP Invite part.
    At this point it is waiting and repeating that SIP invite (after the Visible invite is accepted).
    It is using the "right" ports at your end.
    It says the other end is responding at least to the visible invite and potentially this is also on port 16402.
    However it does not progress.
    See he has two computers on the DSL modem how has he got the ports open for iChat for these two computers ?
    I would suspect that he may have the Airport in Bridge mode (Joined and Existing Network or set it NOT to share an IP) but the modem is doing DHCP and Port Forwarding and the ports are not pointed to the new computer.
    Worse case is he has both devices doing DHCP and at his end he is getting Error 4
    4:53 PM Monday; March 24, 2008

  • How to read an ascii file and record data in a 2d array

    HI everyone,
    I have an experimental data file in ascii format. It contains 10 data sets.
    I'm trying to read the ascii file and record data in a 2d array for further analysis,
    but I still could not figure it out how to do it.
    Please help me to get this done.
    Here I have attaced the ascii file.
    -Sam
    Attachments:
    data.asc ‏123 KB
    2015-01-27_18-01-31_fourier_A2-F-abs.zip ‏728 KB

    Got it!
    Thank you very much !
    -Pamsath

  • Suddenly my Nikon Coolpix will not upload onto my 09 iphoto it takes for ever then it just shows blank squares no pics and a message that states it cannot read the JPEG files. Can anyone help me, please.

    Suddenly my Nikon Coolpix will not upload on to my 09 iphoto it takes for ever then it just shows blank squares no pics and a message that states it cannot read the JPEG files. Can anyone help me, please. I have never had this problem before.

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    You could also try reformat the Card with your camera
    Regards
    TD

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Please help me Newbye reading an hwx binary - ascii

    Hi all,
    I'm a newbie in labview and i need to convert, extracting one-by-one , the
    hex elements present in a binary file,
    working on them by some formulas and assigning them into an array or, better
    , writing them to a spreadsheet file !
    I've already read the example "read binary file" in the examples of labview
    help but there isn't any kind of extraction of data whose I'm interested
    (one by one extraction and conversion)
    Thank you all so much in advance
    Please help me.

    I'm not sure why you want to do one by one extraction. Since File I/O is fairly slow, you'd be better off reading the entire file at once as in the example. This creates an array that you can then manipulate in any way that you want. Many functions operate on either arrays or scalars or you can input an array into a for loop for item by item conversion. You're also welcome to use the Read Characters From File function. You would use this in a loop and specify a constant number of characters to read. Connect the mark after read to a shift register (right side of the loop). The other side of the shift register gets wired to the pos mode input. Terminate the loop when EOF is detected.
    As far as ouput, there is the Write to Spreadsheet file function for comm
    a or tab separated text files or you can use ActiveX to write an Excel file directly. Search the examples for the use of both of these.

  • Please help me to find the sample code and schema for GetDBDateTime.zip fil

    Please help me to find the GetDBDateTime.zip and Guest_Book.zip files.
    Tks!

    Does this Help?
    http://www.oracle.com/technology/sample_code/products/ias/files/psp/GetDBDateTime/Readme.html
    Did you install Oracle9iAS ?

  • Hi im having huge problems trying to install flash for my mac 10.5 imac, iv gone through the internet and tried all of the solutions, everytime i try to install flash it says cant read the download file, or it just wont install, anybody plz help!

    hi im having huge problems trying to install flash for my mac 10.5 imac, iv gone through the internet and tried all of the solutions, everytime i try to install flash it says cant read the download file, or it just wont install, anybody plz help!
    iv unistalled flash, iv checked plug ins it just wont work,

    It would have been a great help to know precisely what Mac you have, so some of the following may not apply:
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
    (If you are running Mavericks: After years of fighting malware and exploits facilitated through Adobe's Flash Player, the company is taking advantage of Apple's new App Sandbox feature to restrict malicious code from running outside of Safari in OS X Mavericks.)
    * Unhelpfully, if you want the last version for PPC (G4 or G5) Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications (including Safari) first before installing. You must also carry out a permission repair after installing anything from Adobe.
    After installing, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:
    When you have installed the latest version of Flash, relaunch Safari and test.
    If you're getting a "blocked plug-in" error, then in System Preferences… ▹ Flash Player ▹ Advanced
    click Check Now. Quit and relaunch your browser.
    You can also try these illustrated instructions from C F McBlob to perform a full "clean install", which will resolve the "Blocked Plug-in" message when trying to update via the GUI updater from Adobe.
    Use the FULL installer for 12.0.0.44:  Flash Player 12 (Mac OS X)
    And the instructons are here: Snow Leopard Clean Install.pdf
    (If you are running a PPC Mac with Flash Player 10.1.102.64 and are having problems with watching videos on FaceBook or other sites, try the following solution which fools the site into thinking that you are running the version 11.5.502.55:)
    Download this http://scriptogr.am/nordkril/post/adobe-flash-11.5-for-powerpc to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.

  • Elements 7 on windows 7, have downloaded a new version on raw for my new camera eos50d still unable to read the raw files help

    Hi
    Hope someone can help me with this one, have a new computer with windows 7 as the operating system, have installed elements 7 and have now purchased the 50d, as i shoot in raw have tried to open the file but elements is unable to read the raw file, have looked on various threads and have downloaded the new version of raw, this version is saved in my download file directory, have copied across these files to the elements folder but i still cannot read my raw file for the 50d, is there something i have missed.
    collisa

    please have a look at the folllowing link about the isntallation of the camera raw plugin.
    http://kb2.adobe.com/cps/407/kb407344.html
    be sure not to have the older version of camera raw plugin in the same folder as that of new one. dont even rename it. Remove it and store it in some other location in case you need to revert back the changes. The camera raw plugin is called : Camera Raw
    thanks

  • I can not open Firefox. Keep getting the error message "Failed to read the configuration file. Please contact your system administrator." What do I do?

    I can not open Firefox. I keep getting the message "Failed to read the configuration file. Please contact your system administrator." I have tried uninstalling Firefox and then reinstalling it but without success. What should I do?

    Which Fx version? When you uninstalled Fx, did you <b>reboot</b> computer before reinstall?
    Also, check for / delete any leftover files in the Fx programs install folders, before reinstall?
    Is your profile in the default location or custom location?
    Have you tried creating a <u>new, <b>completely</b> clean profile</u> - to test (then make sure to select that profile to start Fx - from the Profile Manager)? (no addons or plugins installed).
    Does the user acct (that Fx fails under) have access ("rights") to all locations - especially for Fx profiles location?

  • Not able to read the wsdl file from server Premature EOF encounter

    Hi All,
    I am facing issue while accessing a web Service from server. Here is the clear view about it.
    I created a simple SyncBpel process in a composite and deployed in to the server and it is working fine. Later i created a new Asyn bpel process in a composite and in the external reference i dragged a web Service and imported the wsdl url from server of the SyncBpel and wired the Asynbpel process to webserive .
    Now here i am facing peculiar behavior which i am not able to trace it out.
    1) For the first time when i import the url of syncBpel from the server i am not facing any error and it is working fine as expected but when i close the Jdeveloper and open it i am not able to user the web Service and it is saying as "Not able to read the wsdl file from server Premature EOF encounter"
    2)When i close and open the Jdeveloper i can see the url of the wsdl which imported in webserver is changing from http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/bpelsync_client_ep?WSDL to http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/BPELsync.wsdl
    3)when I open and see the url http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/bpelsync_client_ep?WSDL I can see the soap address as *<soap:address location="http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel!1.0*soa_5cfb8416-c106-40a2-a53b-9054bbe04b9c/bpelsync_client_ep"/>*
    I don’t understand why the soap end contains “*soa_5cfb8416-c106-40a2-a53b-9054bbe04b9c” and this kind of url for soap address is coming to all the bpel process which I am deploying in the server.
    I checked the in Jdeveloper where webproxy is uncheck and the server is also up but still I am facing issue of reading the error.
    Can someone please help in resolving the issue.
    I am using SOA 11g 11.1.1.5 and Jdeveloper 11.1.1.5
    Many thanks.
    Tarak
    Edited by: user11896572 on Jan 17, 2012 5:22 PM

    Hi,
    Setting default from the jdeveloper -
    During composite deployment from Jdeveloper (wizard driven), you will be given an option to choose the version of the composite and there will also be an option for you to choose if the composite needs to be deployed as default.
    Setting default from the em console -
    After deploying a composite, login to the em console and click on the composite that you want to set as default, and you will find a tab - "Set as Default". please note that this tab will not be seen, if the composite is already set as default.
    Refer -
    http://docs.oracle.com/cd/E12839_01/integration.1111/e10226/soacompapp_mang.htm
    8.2 Managing the State of Deployed SOA Composite Applications
    Thanks

Maybe you are looking for