Sound file storing in Database &  accessing these files

Hi Friends
i have working on the project of Sound Recognization system
the requirement is that sound should be passed through mike input device & that sound should be stored in to database along with the user & password
for recognization & identification of user
But problem in storing the sound files in the database so how can i store the files into the database so please guide me.

brad103 wrote:
In my particular application, I process the byte array from the TargetDataLine. Then I save this to a db using new ByteArrayInputStream(soundData), soundData.length); where soundData is my byte[].
Am I correct that this will save the data in the relevant format (eg PCM_SIGNED, 8k, 16bit, etc), but the header information is not included? That's correct. Essentially, in JavaSound, that data has an associated "Format" object that was part of the line the data came from, would need to be given to any line the data was going to...and that format object is essentially a container for all of the header data...
And if so, then if I control the saving and retrieval then I can omit that step anyway as I know the format?You can omit the AudioSystem.write step and store the byte[] directly into the database...as long as you're capable of, as above, recreating the Format object that was originally associated with the data.
And my next question (digressing slightly, sorry umeshS), is that when using the tritonus gsm library and converting from above format to gsm, should I be using AudioSystem.write to write to an outputstream prior to calling AudioSystem.getAudioInputStream(targetEncoding, originalAIS) to convert encodings?AudioSystem.write adds the file header to the stream, and that's all. If you're using a "stream", you have to have the Format object in order to create an AudioInputStream, so there's no need to add the file header (and the file header will screw things up if you're not using the File or URL versions of getAudioInputStream)...
So, as a giant summary...
AudioSystem.write adds a file header, which will include format information. This should only be used if you're planning on using AudioSystem.getAudioInputStream(File f) to read the file the next time.
Otherwise, just save the data and the Format object associated with the data, so you can read it all back in later by building an AudioInputStream around your favorite IO stream.
And in retrospect, after explaining all of that...umeshS, the problem with the way you're doing it is that when you copy the file into the database, you're copying the file header. And then, because you're not using the "File" version of AudioSystem.getAudioInputStream, the system isn't handling the file header being there correctly.
You need to copy things into the database by creating an audioinputstream of your file, and then saving out the raw byte[] data. You can just call "read" on the ais a bunch of times and throw the results into your stream. Then, you can play it by pulling the data out of the database via a stream, and playing that stream by throwing it back into an AudioInputStream.

Similar Messages

  • Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    igonneau wrote:
    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer?
    You can, but how are you going to back up those other files?  When (not if) your Time Capsule fails, you risk losing them.  See #Q3 in Using Time Machine with a Time Capsule for details.
    Then can i access these files only on the time capsule without connecting it?
    Not sure what you mean.  You have to connect a computer, either via Ethernet cable or wirelessly, to read or write to the disk. 

  • Access forms File stored in database

    Can any body help in this
    Call_Form('i:\test\fmb\entgrp');
    here entgrp is the FMX file stored in Server which is mapped to i:
    1 Now if i want to use this call_form
    to call the file stored in database what is the syntax
    2 and How to invoke this file from desktop using f45run
    3 The File Stored in Databse like this is fmb or fmx
    Thanks in Advance

    When you save a Form to the database it is the FMB that you save and not the FMX. So you'll need to have the FMX on a file system and call it from there.
    f45run recieves parameters such as userid=scott/tiger module=a.fmx
    Check out the help to see the full list.
    (P.S. Isn't it time you upgraded to a newer version of Forms?)

  • HT1751 if I move my iTunes library to an external hard drive can my computer access these files in iTunes or do I need to move them back to play music, watch movies, etc.???

    If I move my iTunes library to an external hard drive, can my MacBookPro access these files in iTunes or do I need to move them backto my MacBookPro to play music, watch movies, etc.???
    Trying to alleviate some disc space on my Mac!!!

    Yes, it can. Launch iTunes with the Option key held down and navigate to that instance of the library.
    (86939)

  • How to upload a Flat file into sap database if the file is in Appl'n Server

    Hello Sap Experts , Can you tel me
    " How to upload a Flat file into sap database if the file is in Application Server.
    what is Path for that ?
    Plz Tel Me its Urgent
    Thanks for all

    Hi,
    ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
    *& Report  ZUPLOADTAB                                                  *
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
    *    con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    * Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.

  • How to display the content from a file  stored in database

    when i am trying to display the content from a file which stored in database on oracle report 10g
    data are displaying as following. please help me to display the data in readable format
    <HTML LANG="en-US" DIR="LTR">
    <!-- Generated: 1/11/2006, postxslt.pl [1012] v1
    Source: amsug304286.xml
    File: amsug304286.htm
    Context: nil
    Tiers: ALWAYS
    Pretrans: YES
    Label: Release 12 -->
    <HEAD>
    <!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
    <!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
    <LINK REL="stylesheet" HREF="../fnd/iHelp.css">
    </HEAD>
    <BODY BGCOLOR="#F8F8F8">
    <A NAME="T304286"></A><A NAME="ProdOve"></A>
    <CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
    <p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    ls.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
    </li></ul>
    </BODY>
    </HTML>
    <!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->

    Hi,
    you can try to use the:
    <b>ConsumerTreeListPreview</b>
    layout for KM navigation ivew (or customize to your own).
    This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
    Hope this helps,
    Romano

  • View file stored in Database in client machine

    Hi,
    I am using oralce forms Release 10.2.0.1.0 .
    In my application , files (.xls,.pdf,doc,gif etc) will be stored in Database table as BLOB. I have to add the provison to view the file in client browser.
    I tried using the webutil function to transfer file from DB to client and then from client to AS and showed the file using web.show_document. The issue with that solution is file keeps on created in AS server. is there a way i can programatically delete the file from AS, after showing using web.show-document.
    Or can anyone suggest any other solution for the same.
    Thanks in advance.

    Hello,
    There is no need to transfer the file on the AS if they are stored in the database.
    <p>Read this article.</p>
    Francois

  • Manupulating Excel File Stored In Database

    Is there any way I can manipulate the excel file that is stored in the database as LONG RAW ?
    I need to allow user to manupulate the excel file that is stored in database and accordingly fetch the specific data from that manipulated Excel File of Database.

    Your best bet is to keep the data in tables and generate a new excel file each time. Search this forum on how to generate excel files.. Here are three techniques... I like the XML method..
    1) OLE2
    2) XML
    3) CSV
    I have also done this using webutil..
    1) retrieve excel blob from db to client using webutil function db_to_client_with_progress()
    2) manipulate excel file on client using CLIENT_OLE2
    3) put excel file back in db using webutil function client_to_db_with_progress()
    Sorry.. Just re-read your post and didnt notice the Long-raw part.. :)
    Message was edited by:
    Mark Reichman

  • Iphoto and itunes files disappeared when i upgraded to os mavericks. How can i access these files?

    iphoto and itunes files disappeared when i upgraded to os mavericks. How can i retrieve these files? Time machine is not opening my backup files on an external Lacie HD.

    Apple keeps books for a short time (used to be 40 days. I've not seen a recent time frame)
    What version did you have?
    Books do nor exist except in the iPhoto database so you can not "find" a book vista TM. You restore a previous library (be sure NOT to overwrite your current library) and switch to it
    LN

  • Download file stored in Database?

    We are implementing a mini DMS in our application and need to
    write and read files to the database. We are trying to figure out
    if we can convert the byte array we get from the DB into a file
    that the end user can save on the client machine.
    Is this possible with Flex? I have heard no, but that Apollo
    might allow it. What is Apollo?
    Any ideas on how we could accomplish this with Flex3?

    Apollo is what Adobe AIR was call in it's last version.
    It's certainly possible to donwload this file from DB to
    user's machine using Flex. And the bulk of the job would be done on
    the server side, using Java/.NEt/PHP/whatever.
    Flex would simply send a request using FileReference class to
    a server side page and that page would read the file from DB as
    byte array and write to the response. That would allow user to save
    the file on his/her machine.
    ATTA

  • I downloaded Pimsleur foreign language mp3's and put them on my iPad but now cant find them.  Any advice on how to access these files?!  Thanks

    I downloaded foreign language mp3's to my iPad and iPod nano and cant find either one of them on the device even though they both claim to be there under "other" memory when I plug them into my computer.  Any advice on how to find these files on my iPad/iPod device?

    I put them in iTunes and then dragged them to my devices.  On my iPad it looked like it put it under the 'purchased' tab but I looked in the music app and purchased tab and still cant fine them anywhere.  So I tried to move them over again but it says they are already there do I want to skip or duplicate.  Also, when my iPad is attached to my computer, I cant find them either.....

  • When group-working from SAN, where is the best place to store Cache Files, the Cache Database, and render files?

    I have a small post production house, and we are spinning up into editing our first series. We're all working from a SAN, and sharing projects and sequences via the Media Browser. It's working great so far, but we've been having issues (could be user error) with trying to figure out where best to store the Media Cache database, the cache files, and the preview files so when a project is moved from one machine to another, it doesn't constantly have to re-conform all of the media in the project.
    We have a very large master project, as this is a documentary style show, so there are hours and hours of clips.
    When I open a project on a new or different machine it has to conform EVERYTHING in the project again.
    Where should I store all these conform and cache files so that new people can get started working without having a machine literally be unusable until the conform process finishes?
    Thanks!

    Hi Jon,
    I have a small post production house, and we are spinning up into editing our first series. We're all working from a SAN, and sharing projects and sequences via the Media Browser.
    Glad it is working for you. Just to let you know, this workflow is not officially supported so your mileage may vary based on the kind of system you're working with. There are a lot of variations to the quality of these kinds of systems. Some are turn key, some home built - so I think you understand.
    It's working great so far, but we've been having issues (could be user error) with trying to figure out where best to store the Media Cache database, the cache files, and the preview files so when a project is moved from one machine to another, it doesn't constantly have to re-conform all of the media in the project.
    While it's possible to have the cache files (and the database) in a central location (I only know of one place that pulls that off, and it's a very, very large place), the systems that have this data stored locally are far more reliable. You can work around all the reconfirming by avoiding moving the project data around. You really don't need to move the project around from place to place. Have one computer as the "hub" for inputting data from other workstations. Wouldn't that work?
    When I open a project on a new or different machine it has to conform EVERYTHING in the project again.
    Can't you just have the master project on one machine and work on shorter sequences of your doc on the other machines? When done, just import to the master machine.
    Where should I store all these conform and cache files so that new people can get started working without having a machine literally be unusable until the conform process finishes?
    Premiere Pro simply must have those cache files in order to work. Sorry, there's no way around this problem unless you change your workflow.
    Thanks,
    Kevin

  • I am having all these problems after webroot did a clean up of files; I was able to find the files; all are firefox files, how do I reinstall these files?

    I am having all these problems; yahoo is not the same, cannot do anything on facebook; I found the files that were "cleaned" and they were all firefox files, there are many more in que to be "cleaned" by webroot; how do I reinstall these files? How do I stop webroot from continuing this "cleanup" I emailed webroot but got no reaponse.
    Thank you,
    Donna

    You can't. The only way to get songs in the Music app is to sync from a computer or to download from iTunes.

  • Where are BLOB Files stored when using redo log files.

    I am using Archive Log Mode for my backups. I was wondering if Blob files get stored in the redo log files or if they are archived somewhere else?
    Rob.

    BLOB are just columns of some tables and are stored in related tablespace table by default in their own segments. Changes to BLOB columns are also stored in redo log more or less like any other column.
    See an short example for default LOB storage in Re: CLOB Datatype [About Space allocation]
    Edited by: P. Forstmann on 27 avr. 2011 07:20

  • Size limit of access database with image files stored outside database

    I have read 2GB limit on size of Access database.  We are using Access 2013 database with fields that are data type attachment and storing attached images outside the database.  Does the size of the folder that is holding these images count
    in any way toward 2GB size limit?

    Hi,
    As far as I know, Access database limit size 2GB based on itself, not related to the folder size.  Attachment data
    type is similar to attaching files to e-mail messages. We need to control the Access database size is smaller then 2GB.
    When a field is defined with the attachment data type, you can store one or more files for each record in it.
    Attachments can dramatically increase the size of the database, but since the attached file is stored as a part of the dabatbase, you are not dependent on network drives being available as you would be if you inculded a hyperlink to the file. As a matter of
    fact, feel free to backup the origainal file to other disk after you attach it to the database.
    Regards,
    George Zhao
    TechNet Community Support

Maybe you are looking for

  • I can't believe how hard it is to cancel your account.

    I’ve been a Verizon Wireless customer for as long as I can remember. It’s been close to 20 years. For several years now, I have added smart phones to my accounts as my children have gotten older. I currently have 4 smart phones and one basic phone on

  • Table for Storage to Storage Stock in Transit.

    Dear Friends, There are two storage locations : A and B Created STO  and Posted  goods issue with VL10B & VL02N from Storage Location A but not received in Storage Location B I can find this stock in report MB5T. Now my requirement is to have the Tab

  • WRT54GL broadcast keeps cycling on and off

    I've had a WRT54GL ( for about a week now ) with no real issues.  Today my wife mentioned that the net's been flaky  ( wireless nto hard wired ).  I originally noticed what seemed like minutes for my desktop of laptop to connect to any web pages.  L

  • How can I read weight from scale

    Hi,   I want to setup SAP so that HUPAST transaction can read the weight from the scale. I could see that it looks for an RFC destination and scale name etc. But didnt succeed in creating the RFC destination Please let me know if a third party softwa

  • Importing Accounts in OIA through flatfile

    Hi Experts, I have configured OIA provisioning server for a flat file feed. I have accounts to be imported in a csv file in the below format. responsbility,reponsbilitystatdate,responsbilityenddate are multivalued attributes schemafile name<correlati