How to upload the local file of the external sytem with same LAN

HI
My requirement is to upload a presentation server file (For ex: C:\test.txt) from the external system with in the same LAN into my sap (system)
Thnaks in advance
Mallik

HI Roger
My requirement is to upload a file from the other system into my system (both are with in the same LAN).
Ex: two systems are there A and B (both belongs to same LAN)
in A system's c drive one file is there ( i.e.: C:\test.txt)
and iam using B system and i need to upload the file from the A system in SAP
Please do help if u have clues

Similar Messages

  • How to delete a local file in the presentation server.

    Hi All,
    How to delete a local file in the presentation server. As we do using 'delete dataset dsn' in application server. How can i achieve this. My requirement is after uploading file using gui_upload, i want to delete that source file. Please let me know, how can i achieve this.
    Thanks in advance.
    Regards,
    Vishal

    data: l_rc type i.
      data: f_name type string.
        move 'c:\YourFile.txt' to f_name.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
          EXPORTING
            FILENAME             = f_name
          CHANGING
            RC                   = l_rc
         EXCEPTIONS
           FILE_DELETE_FAILED   = 1
           CNTL_ERROR           = 2
           ERROR_NO_GUI         = 3
           FILE_NOT_FOUND       = 4
           ACCESS_DENIED        = 5
           UNKNOWN_ERROR        = 6
           NOT_SUPPORTED_BY_GUI = 7
           WRONG_PARAMETER      = 8
           others               = 9
        IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

  • How to refresh a local file in the Reporting Studio?

    Hello,
    I need to refresh a few local files in the Reporting Studio via script, but obviously command
    ActiveDocument.Sections["Sectionname"].Process()
    does not work, since it's not a query. What else could I use?
    Many thanks for any answer.

    I am confused...How is the solution not exactly what I look for ?
    You asked how to refresh imported data files via script.
    You correctly identified that the Imported file is not a Query.
    However if you look at the Object model closely you will notice properties that if you can think outside the box will allow you to treat the imported file like a query section.
    ActiveDocument.Sections["data.csv"].ProcessSequenceNum
    ActiveDocument.Sections["data.csv"].IncludeInProcessAllBy strategically setting unwanted sections not to process via
    ActiveDocument.Sections["Sectionname"].IncludeInProcessAll = falseand setting targeted section(s)...imported file(s) to process via
    ActiveDocument.Sections["Sectionname"].IncludeInProcessAll = trueThen
    ActiveDocument.ProcessAll()Your section(s) will refresh.
    If this is not a satisfactory solution then move the data files to a database or create a DSN entry and OCE to those files instead of importing them.

  • Upload a local file using the path

    I'm trying to upload-on-demand every .MP4 file from an SD card (E:\) to my server when the application starts. So far in my code I have been able to check whether E:\ is valid (the SD card is loaded) and get a list of full paths to the MP4 files on the card. I noticed FileReference and FileReferenceList use the browse() method to select files but couldn't see a method that would allow me a specify a path instead.
    Is there a way to do this? Thanks in advance.

    hi evnafets. You were right! java.io classes didn't solved my problem. So, as you said, I used jakarta apache classes with multipart/form-data form and it solved my problem! thank you very much!!
    And befor finish, let me ask you: do you know how I can make the download now?! Is there a specific class for download like upload?! In my webapplication, the file is stored in database and I can download it in server machine from the own server machine or client machine, but I can't downlod the file in client machine. How can I do that?!
    If you don't know about that, don't worry. You solved my main troble: the upload hehehe. Thank you very much!
    [ ]'s
    afssdn

  • How to upload an output file to the ftp

    Hi everyone,
    Could anybody please guide me about how can i upload an output file (a text file from SAP Program) directly to ftp location?
    Please guide.
    Thanks and Regards

    Hi,
    This is one sample program (picked from some other post of Sudheer long back, I don't have the URL).
    REPORT abc.
    DATA: BEGIN OF MTAB_DATA OCCURS 0,
    LINE(132) TYPE C,
    END OF MTAB_DATA.
    DATA: MC_PASSWORD(20) TYPE C,
    MI_KEY TYPE I VALUE 26101957,
    MI_PWD_LEN TYPE I,
    MI_HANDLE TYPE I.
    START-OF-SELECTION.
    *-- Your SAP-UNIX FTP password (case sensitive)
    MC_PASSWORD = 'password'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
         ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
         ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
         ID 'DSTLEN' FIELD MI_PWD_LEN.
    CALL FUNCTION 'FTP_CONNECT'
         EXPORTING
    *-- Your SAP-UNIX FTP user name (case sensitive)
           USER            = 'userid'
           PASSWORD        = MC_PASSWORD
    *-- Your SAP-UNIX server host name (case sensitive)
           HOST            = 'unix-host'
           RFC_DESTINATION = 'SAPFTP'
         IMPORTING
           HANDLE          = MI_HANDLE
         EXCEPTIONS
           NOT_CONNECTED   = 1
           OTHERS          = 2.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'FTP_COMMAND'
         EXPORTING
           HANDLE = MI_HANDLE
           COMMAND = 'dir'
         TABLES
           DATA = MTAB_DATA
         EXCEPTIONS
           TCPIP_ERROR = 1
           COMMAND_ERROR = 2
           DATA_ERROR = 3
           OTHERS = 4.
    IF SY-SUBRC = 0.
      LOOP AT MTAB_DATA.
        WRITE: / MTAB_DATA.
      ENDLOOP.
    ELSE.
    * do some error checking.
      WRITE: / 'Error in FTP Command'.
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
         EXPORTING
           HANDLE = MI_HANDLE
         EXCEPTIONS
           OTHERS = 1.   
    Regards,
    Amit Mittal.

  • How to upload multiple .CSV files in the same time.

    Hi Legends,
    Can anyone please help me to resolve my issue?
    This is very urgent and critical.
    Description:
    We have two users.1)edw_user_dump
    2)prd_udm.
    We need to upload the xx.csv file at the same time for these two users in oracle forms.
    we have differentiated .csv file name based on the user names.
    the main problem is in the sql loader command the xx.csv file name is created but the data is not captured in the server (kentucky) .
    Below is my code for the upload.
    -- To delete the Part_Mast.log file from the client
    DECLARE
    pid WEBUTIL_HOST.PROCESS_ID;
    v_result PLS_INTEGER;
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    BEGIN
    v_result := WEBUTIL_HOST.Get_return_Code(pid ) ;
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    END;
    DECLARE
    l_success boolean:=FALSE;
    l_bare_filename varchar2(100):=NULL;
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    BEGIN
    -- Delete the content of the log and bad file
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    --host('cat /dev/null > /tmp/Part_Mast.bad');
    -- Upload the data file to Application Server
    l_bare_filename := v_username||'_'||substr(:FIC_SOURCE,instr(:FIC_SOURCE,'\',-1)+1);
    l_success := webutil_file_transfer.Client_To_AS_with_progress
    (clientFile => :FIC_SOURCE
    ,serverFile => '/tmp/'||l_bare_filename
    ,progressTitle => 'Upload to Application Server in progress'
    ,progressSubTitle => 'Please wait'
    ,asynchronous => false
    ,callbackTrigger => null
    IF l_success THEN
    NULL;
    ELSE
    null;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    host('cat /dev/null > /tmp/EDW_CF_IO_UPLOAD.bad');
    end;
    BEGIN
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    v_password varchar2(30) := GET_APPLICATION_PROPERTY(PASSWORD);
    v_connect_string varchar2(30) := GET_APPLICATION_PROPERTY(CONNECT_STRING);
    a_host varchar2(500);
    BEGIN
    a_host :='/tmp/'||v_username||'_'||'"CF615 IO Upload.csv"';
    host('sqlldr '||v_username||'/'||v_password||'@'||v_connect_string||' '|| 'control=/home/edw_bis/ctl/GLB_CF_IO_UPLOAD.CTL'||' '|| 'DATA=a_host'||' '|| 'LOG=/tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log SKIP=1 errors=200000 DIRECT=FALSE');
    dbms_output.put_line(a_host);
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    EXCEPTION
    WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    end;
    DECLARE
    al_id3 ALERT;
    al_button Number;
    BEGIN
    edw_user_dump.SANM_PRC_MERGE_CF_IO_UPLOAD(:global.v_plsql_res,:global.v_ins_rec,:global.v_upd_rec);
    IF NVL(:global.v_plsql_res,0) = 0 and (:global.v_ins_rec !=0 OR :global.v_upd_rec != 0 ) then
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Completed Successfully!'||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
    al_button := SHOW_ALERT( al_id3 );
    ELSIF (:global.v_plsql_res IN(-1,0) or :global.v_plsql_res > 0) and (:global.v_ins_rec =0 and :global.v_upd_rec = 0 and :global.v_del_rec =0 ) then
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Failed. Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
    al_button := SHOW_ALERT( al_id3 );
    ELSE
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,'Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec );
    al_button := SHOW_ALERT( al_id3 );
    END IF;
    EXCEPTION WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    host('rm -rf /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    end;
    Thanks in advance!
    Thanks,
    Madhusudhanan

    Madhusudhanan,
    A couple of observations. First; always list your exact Forms version (eg; 10.1.2.0.2 not 10g R2). In most cases, the solution is different depending on the Forms version. Second; why must you use Forms to kick off a SQL Loader process? This is a server-side process and should be initiated by a server side process. If you absolutely must use Forms to kick off the process, again we need your Forms version in order to offer any solutions. Based on your code sample, I can asusme you are at least using Forms 9i becuase you are using WebUtil.
    Is your Database and Application Server the same physical computer? If they are not, this would explain why your HOST command isn't working because HOST runs against the Application Server not the Database server.
    Third; have you considered using and External Table (if your RDBMS version supports them) for each of the files you are attempting to upload? In this instance, it would be helpful to know your RDBMS version as well. External Tables can be a little frustrating to set up the first time, but as with any new construct you use - it gets easier the more you use it.
    Fourth; are you getting any errors in your log file(s)? If so, what are the errors? Please list the full error message if you have one.
    Finally, with respects to your statement:
    Posted: Mar 18, 2011 2:30 PM - Madhu This is very urgent and critical.>
    You have to understand that forum contributers are all volunteers - this is not our full-time job. If your issue is truely urgent I suggest you open a Service Request (SR) with Oracle Support! ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How can I get hidden files from an external device with terminal?

    Here is my situation. I have an mp3 player that is a Sansa Clipp.  This version has third party firmware installed that not only hides the music files but will not let me copy them at all when I do a straight copy.  All I get are empty folders.  I want to install the actual firmware but first I need to back up the entire contents of the device because essentially I need to wipe the malicious firmware and everything else off the disc in order to to this. This device came from the Bureau of Prisons and is sold to prisoners.  It is basically locked to the hilt and the only way to unlock it officially is to send it to the third party that installed the firmware and pay them $25.  I know that I should be able to use terminal to get the files off of this but so far a  "cp" command has only given me the files that I get when I drag and drop.  The music files seem to be hidden in a partition that I can't access.  Let me know if anyone has any help they can give.  I just need to back up the full contents of the device.  I have instructions on how to wipe it and reinstall but backing up is crucial to this.  Thanks for any help and please ask questions if I haven't made my problem clear enough.

    I have know way of knowing whether or not this will copy the data. The device could have some hidden hand-shack.
    I assume the Sansa Clipp is a usb connected device.  The method works for a flash drive.  There is a different method for a harddrive..
    First, you need to find the name of the device.  Mount the device.
    /Applications/Utilities/Terminal.
    # run the df command.  type command then press return.
    mac $ df -h
    Filesystem                Size   Used  Avail Capacity  Mounted on
    /dev/disk1s16             272G   259G    12G    95%    /
    devfs                     113K   113K     0B   100%    /dev
    fdesc                     1.0K   1.0K     0B   100%    /dev
    <volfs>                   512K   512K     0B   100%    /.vol
    automount -nsl [217]        0B     0B     0B   100%    /Network
    automount -fstab [222]      0B     0B     0B   100%    /automount/Servers
    automount -static [222]     0B     0B     0B   100%    /automount/static
    /dev/disk1s10             500G   302G   197G    60%    /Volumes/ServiceRepairManuals
    /dev/disk1s14              80G    50G    30G    62%    /Volumes/Second-80
    /dev/disk2s1              446M    15M   431M     3%    /Volumes/2partitions
    /dev/disk2s2               46M   9.0M    37M    20%    /Volumes/second-disk
    mac $ # unmount disk by dragging to trash can.
    mac $ df -h
    Filesystem                Size   Used  Avail Capacity  Mounted on
    /dev/disk1s16             272G   259G    12G    95%    /
    devfs                     112K   112K     0B   100%    /dev
    fdesc                     1.0K   1.0K     0B   100%    /dev
    <volfs>                   512K   512K     0B   100%    /.vol
    automount -nsl [217]        0B     0B     0B   100%    /Network
    automount -fstab [222]      0B     0B     0B   100%    /automount/Servers
    automount -static [222]     0B     0B     0B   100%    /automount/static
    /dev/disk1s10             500G   302G   197G    60%    /Volumes/ServiceRepairManuals
    /dev/disk1s14              80G    50G    30G    62%    /Volumes/Second-80
    mac $ # figure out the name of the device.
    mac $ # see what dev disappeared.
    mac $ # in this case the unix names of the partitions are: /dev/disk2s1 & dev/disk2s2
    mac $ # the device, flash name, is /dev/disk2
    mac $ # pull out the device from it's usb port.  Plug it back in.
    mac $ df -h
    Filesystem                Size   Used  Avail Capacity  Mounted on
    /dev/disk1s16             272G   259G    12G    95%    /
    devfs                     113K   113K     0B   100%    /dev
    fdesc                     1.0K   1.0K     0B   100%    /dev
    <volfs>                   512K   512K     0B   100%    /.vol
    automount -nsl [217]        0B     0B     0B   100%    /Network
    automount -fstab [222]      0B     0B     0B   100%    /automount/Servers
    automount -static [222]     0B     0B     0B   100%    /automount/static
    /dev/disk1s10             500G   302G   197G    60%    /Volumes/ServiceRepairManuals
    /dev/disk1s14              80G    50G    30G    62%    /Volumes/Second-80
    /dev/disk2s1              446M    15M   431M     3%    /Volumes/2partitions
    /dev/disk2s2               46M   9.0M    37M    20%    /Volumes/second-disk
    mac $ dd if=/dev/disk2 bs=4096 | gzip | dd of=~/disk2-s1-2 bs=4096
    dd: /dev/disk2: No such file or directory
    0+1 records in
    0+1 records out
    20 bytes transferred in 0.014734 secs (1357 bytes/sec)
    mac $

  • How to upload a current file to the remote server in Dreamweaver?

    I am trying to transfer an html file from FrontPage to the server via Dreamweaver, but it absolutely refuses to upload. Help!

    Nobody can know anything. You are not providing any system information, what version of DW you use, what the remote server actually is. and since this is a DW question, ask in their forum with the proper information included.
    Mylenium

  • Does anyone know how to upload and download files to the icloud storage?

    Well, it says i have 5g of free storage... but what good is it?  There doesn't seem to be any way to put anything there.
    What am I missing here?

    iCloud does not have a general file syncing service, like Dropbox or Sugarsync.  Only certain types of files can be synced and only by applications/apps that specifically support these files and that support iCloud.  For example, Pages can sync to iCloud and only Pages apps on devices can access these files.  Within DocsToGo, nothing can be synced to iCloud.

  • TS1627 Could I delete the Local file in the SyncServices folder?

    1) When sync outlook mac 2011 with ical 5.0 choosing a particular calendar, items from other outlook calendar were sync into iCal 5.0
    2) The file "Local" in the SyncServices folder is getting big, could I delete it

    Could someone help?

  • How do I stop Dreamweaver from updating the Test server copy of a file when I open the local file?

    The subject says it all. Every time I open a file, Dreamweaver connects to the testing server and uploads the local file to the test server.
    I want to stop this behaviour.  It's annoying!

    My testing server is IIS running on my local machine.
    The "local" copy of the file is actually on a remote share.  I have the test server copy open in Notepad++.  The two files are identical save for on extra line in the copy on the testing server.  When I open the "local" copy in Dreamweaver, it shows me that some file activity is being done, and then Notepad++ tells me the file has changed and do I want to reload it.  If I do, that extra line vanishes.
    When I check the file activity log, it shows that the file activity is complete.
    I haven't mentioned the production server because it doesn't seem to be affected, but we do have one.

  • Upload an XML file into the Internal table

    Hi Guys,
    I want to know, how to upload an xml file into the Internal table through ABAP programming

    you just wanted to load the xml file into internal table (as a table of binary strings)or load the xml data mapped to itab row columns
    for the first one you can simply use gui_upload
    and for the second one you need to load the xml file using gui_upload and use XLST program to transform into an itab
    Regards
    Raja

  • How to Upload License Key File of MiniSap to SAP System ?

    Hi,
    I have received the license key for MiniSap. I have downloaded the license key file to my local system. Please tell me how to upload this file to the SAP system. I am using Windows XP (SP2) and the MiniSap edition is 6.10 WA1.
    I have to tried to directly enter the license key through transaction code Slicense but got the error "Incorrect Parameter Specified". I also tried to install through OS level but even could not do so. I have ordered key 5 times, none works on either SAP level or the OS level.
    Somebody told me to upload the file, Please Guide me how to upload license key file to the SAP System.
    Thank You
    Best Regards,
    Ryan

    Very late into the reply. But I am sure someone will run into this issue again -
    In windows cmd prompt, navigate to c:\mbs.
    Then type saplicense.exe -install then follow the prompt.
    NOTE: If you get the following error -
    C:\MBS>saplicense.exe -install
    *** SAPLICENSE (Release 46D) ERROR ***
        ERROR:   Can not set DbSl trace function
        DETAILS: DbSlControl(DBSL_CMD_IMP_FUNS_SET) failed with return code 20
        RC-INFO: error loading dynamic db-library - check environment for:
                 dbms_type = <db-type>  (e.g. ora)
                 DIR_LIBRARY = <path to db-dll>  (e.g. /usr/sap/SID/SYS/exe/run)
    Type"C:\MBS>dbenv.cmd", once it is done. simply retype
    saplicense.exe -install then follow the prompt.
    Good Luck.
    T.H.

  • How to get the absolute path of a file from the local disk given the file n

    how to get the absolute path of a file from the local disk given the file name

    // will look for the file at the current working directory
    // this is wherever you start the Java application (cound be C: and your
    // application is located in C:/myapp, but the working dir is C:/
    File file = new File("README.txt"); 
    if (file != null && file.exists())
        String absolutePath = file.getAbsolutePath();

  • Flex 3 How to recording the voice to the local file.can u help sample souce code

    How to recording the voice to the local file.can u help sample souce code

    What? the link is not opening? Check once properly man.  If you need code here it is
    import flash.system.Security;
    import flash.media.Microphone;
    import flash.events.ActivityEvent;
    import flash.events.SampleDataEvent;
    import flash.events.StatusEvent;
    import flash.utils.ByteArray;
    import flash.media.Sound;
    import flash.events.MouseEvent;
    import flash.media.SoundChannel;
    import flash.events.Event;
    import org.bytearray.micrecorder.encoder.WaveEncoder;
    import flash.net.FileReference;
    var mic:Microphone;
    var soundBytes:ByteArray;
    var recBytes:ByteArray= new ByteArray();
    var sc:SoundChannel;
    var sound:Sound;
    recordBtn.addEventListener(MouseEvent.CLICK, getMic);
    stopBtn.addEventListener(MouseEvent.CLICK, stopRecording);
    playBtn.addEventListener(MouseEvent.CLICK, plays);
    saveBtn.addEventListener(MouseEvent.CLICK, saveAudio);
    function getMic(e:MouseEvent)
    soundBytes= new ByteArray();
    //returns an array that total mics available
    var totalMics:Array = Microphone.names;
    //mic is a singleton class gets microphone to record sound
    mic = Microphone.getMicrophone();
    //Sets the minimum input level that should be considered
    mic.setSilenceLevel(0);
    mic.rate = 44;
    //to capture microphone audio listen for this event
    mic.addEventListener(SampleDataEvent.SAMPLE_DATA, recordAudio);
    function recordAudio(e:SampleDataEvent)
    //capture the byte array data available with the event
    while (e.data.bytesAvailable)
    var soundData:Number = e.data.readFloat();
    soundBytes.writeFloat(soundData);
    function stopRecording(e:MouseEvent)
    mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, recordAudio);
    //set the bytearray position to zero for playing from starting
    soundBytes.position = 0;
    function plays(e:MouseEvent)
    //intatiazle sound instance
    sound= new Sound();
    soundBytes.position = 0;
    //listen for the event when runtime requests new audio data.
    sound.addEventListener(SampleDataEvent.SAMPLE_DATA, playAudio);
    //play the sound with sound channel
    sc = sound.play();
    sc.addEventListener(Event.SOUND_COMPLETE, soundComplete);
    function playAudio(e:SampleDataEvent)
    //if audio bytes is greate than 4 read the recorded byte array data and write it into the sound
    for (var i=0; i<8192; i++)
    if (soundBytes.bytesAvailable > 4)
    var sample:Number = soundBytes.readFloat();
    e.data.writeFloat(sample);
    e.data.writeFloat(sample);
    function soundComplete(e:Event)
    sound.removeEventListener(SampleDataEvent.SAMPLE_DATA, playAudio);
    sc.stop();
    function saveAudio(e:MouseEvent)
    soundBytes.position = 0;
    //waveencoder class used to encodes bytearray data properly used to play properly after saving
    //you can get this api from below link
    //http://code.google.com/p/micrecorder/downloads/detail?name=MicRecorder%201.2.zip&can=2&q=
    var encod:WaveEncoder= new WaveEncoder();
    var byte:ByteArray = encod.encode(soundBytes,2);
    var file:FileReference= new FileReference();
    file.save(byte, “test.wav”);

Maybe you are looking for

  • Is it possible to have two app icons for the same app?

    I work with Assistive Technologies that enable people with various disabilites to use computing devices, such as the iPad.  Some people do not have the fine motor skills to precisely tap the intended app icon.  If I had a page full of app icons that

  • Acrobat CS3 will not install in Windows 7

    I have a new computer and just installed Windows 7 (32 bit). I needed to install CS2 to complete some legacy projects and then installed CS3. Every component installed fine except Acrobat. I have uninstalled, deactivated both CS2 and CS3...and then i

  • No interner after restart....

    hi to all! sorry for english... i have linksys WRT54G V8 with latest firmware connect to lan modem. i buy this router in usa and i use it in israel.... the problem is that after restart the comp ,i have no internet acsess... only if a play with usern

  • Last ~10% of audio clips do not play

    My imported music tracks will not play the last approximately 10% of the clip.  At first I thought it was a result of trying to use 6-10 minute music clips, as 1-3 minute tracks never seem to fail,  but found that even trimming off all but the last m

  • I can not reinstall itunes ,

    I have sw mcafee off and still cannot recover itunes ,which is now 6 .I had previously bought 100 songs aprox. how can I recover my songs , please help me . thks Manuel