Reading MP3 header information from file

Hi,
Im currently using the JMF bean to play a specified location. Such as a media player would do. Now I would like to read the ehader information of MP3 files - if provided as a source. How can I access this data ?
thanks,
detlef

You need to read about the .DWG file format somewhere. Use some binary file editor like Ultraedit and try to understand the file's layout.
Hint: if it is a binary format, do not use "readLine". Read the raw bytes and try to get the structure of the file piecewise.

Similar Messages

  • Read header information from an e-mail that is an attachment to another e-mail

    I've written a macro using VBA code within Outlook 2010 that will extract header information from an e-mail and then save it to a csv file.  The code works well, but unfortunately, the header information I need is within e-mails that are sent to
    me as attachments.  Which means that I am opening the attachment and then running the macro to get the header information.  Is there a way for VBA to open the attached e-mail and read its header?
    Ideally, I would like to write code that will cycle through all of the e-mails in a folder, open the e-mails that are attachments and save off the header information.
    Any help or suggestions would be greatly appreciated.
    Thank you for your time.

    You should try the Exchange Development forum
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
    DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com

  • Read SOAP Header Information

    Hello All,
    We want to read SOAP header from incoming message. We followed blog from William to use the option "Do not use SOAP Envelop". However, we are not sure if we need to modify Sender Interface to include Envelope / Header in the message structure itself.
    How to Read SOAP Header Information
    If we modify the message structure , it changes the WSDL as well and generating request message something like below :
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aif="urn://transport.nsw.gov.au/test/poc/aif">
       <soapenv:Header/>
       <soapenv:Body>
          <aif:Envelope>   <------- Added by Modifying the structure
             <Header>
                <FileType>?</FileType>
             </Header>
             <Body>
                <MessageHeader>
                   <!--Optional:-->
    How can we use  "Do not use SOAP Envelop" feature without modifying the WSDL structure?
    If we don't modify the message structure , it is failing to identify the receiver and also we would not be able to see the fields while doing graphical mapping.
    Thanks !!

    Hi,
    Did you check the namespaces in your receiver determination? In interface determination, this could be solved by creating another mapping. Which PI version are you using?
    Regards,
    Mark

  • ORA-27047: unable to read the header block of file

    My Windows 2003 crashed which was running Oracle XE.
    I installed Oracle XE on Windows XP on another machine.
    I coped my D:\oracle\XE10g\oradata folder of Win2003 to the same location in WinXP machine.
    When I start the database in WinXP using SQLPLUS i get the following message
    SQL> startup
    ORACLE instance started.
    Total System Global Area 146800640 bytes
    Fixed Size 1286220 bytes
    Variable Size 62918580 bytes
    Database Buffers 79691776 bytes
    Redo Buffers 2904064 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    I my D:\oracle\XE10g\app\oracle\admin\XE\bdump\alert_xe I found following errors
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Wed Apr 25 18:38:36 2007
    ALTER DATABASE MOUNT
    Wed Apr 25 18:38:36 2007
    ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
    ORA-27047: unable to read the header block of file
    OSD-04001: invalid logical block size (OS 2800189884)
    Wed Apr 25 18:38:36 2007
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
    ORA-27047: unable to read the header block of file
    OSD-04001: invalid logical block size (OS 2800189884)
    Please help.
    Regards,
    Zulqarnain

    Try to install win 2003 server software, do the fresh installation of oracle software, now copy the datafiles and controlfiles to same locations as you did on winxp.
    get back to us, if still not out of the woods. I still doubt that a simple restore would do the trick, since you doing it across different platforms, might be I can be wrong, but this is what I personally feel, you not able to start the database on winxp.
    hare krishna
    Alok

  • How to read relevant record type from file into LSMW ?

    Here my req is like this.
    file with 5 records.
    some of records in file are begin with 'AD'.
    i want to read only that records from file while reading data.
    i created one field in source structure with record type filed.
    even i had given this Identifing Field Content:AD
    but after reading data from file its reading all records from file.
    But it should read only record type AB from source file.
    How can we achieve this?
    Thanks in Advance.

    For this do the follwing steps
    goto step 3 Maintain Source Fields
    press the change mode button  after the double click the filed which is pass the AD value
    then it will appier one popup window in this window you have one check box like " selection parameter for import/convert data"
    tick thic chekc box and save it.
    now when you read the data in Step9 , here you find select options there you enter AD* now you will get the only records start with AD.

  • Reading and extracting information from pdf file

    Hi everybody!
    what am looking for is Java packages which can allow me to read and extract information form pdf file
    I would really appreciate link wtih sample code
    thanks in advance!

    STFW.
    http://www.google.com/search?q=java+read+pdf&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8

  • Losing Header Information from Siteminder

    We have been working to migrate several of our internal CF8 sites over to a new CF11 server. I have only been supporting CF for about a year, so I'm afraid I am not as knowledgeable as I should be.
    Most of our sites are working correctly; however, we are encountering a unique issue with a site called Workforce Tracking. It utilizes a header variable (RACFGROUPS) that is returned by Siteminder. This is handled by the application.cfm file, with the relevant section below:
    When I navigate to devworkforcetracking2.localnetwork.com/Jobs/, the default index.cfm page gets loaded, the application file is called, and the RACFGROUPS header information is available. I have been using CFOUTPUT on the variable for debugging:
    However, if I try to navigate to workforcetracking.localnetwork.com/Jobs/index.cfm (or any site under /Jobs/), I receive this error message:
    This is despite the fact that the exact same index.cfm file is being called.
    I contacted our Siteminder team, and they provided me with a file to test if the RACFGROUPS variable is being received by other file types inside that folder. The header information is working correctly for their test file.
    As far as we can tell, our setup between CF8 and CF11 is identical. We have been picking over this site for quite some time, trying to figure out why the header information is available for /Jobs/ but not for anything under it, and we have not had any luck.
    Anyone run into this before? Any advice?

    In my case, if I show headers via an ASP page, I see all 27 headers.  When I show the same headers from a CFM page, I only see 24 headers.  And the 3 missing headers are the last 3 headers listed on the ASP page.
    I have enabled debug logging for isapi_redirect.log.  The log only shows 24 headers (see below).
    Is there a limit to the number of headers that isapi_redirect.dll supports?
    I am running ColdFusion 11 Enterprise on Windows Server 2008 32 bit.
    [Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3944): Forwarding request header usertype : Employee
    [Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3973): Service protocol=HTTP/1.1 method=GET host=10.4.101.59 addr=10.4.101.59 name=devasicint.internal.local port=80 auth= user= uri=/secureint/headerinfo.cfm
    [Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3985): Service request headers=24 attributes=0 chunked=no content-length=0 available=0

  • How to design plug-in which extract information from file opened in illustrator

    Hi Everyone,
    I want to design a plug-in in adobe illustrator which could extract information from pdf file which is opened in illustrator.
    Can anyone give me direction from where could I start.??
    Thanks in advance.

    This is very difficult in any API because there are no tables in PDF.
    If the table is at a known exact location you would extract text from each known cell location
    If you have to discover tables you need to decide how to recognise them: perhaps by looking for drawn lines and analysing their relationship to see if they form a grid; then use the positions derived to get the text from the table.

  • How to design plug-in which extract information from file opened in illustrator in Illustrator

    Hi Everyone,
    I want to design a plug-in in adobe illustrator which could extract information from pdf file which is opened in illustrator.
    Can anyone give me direction from where could I start.??
    Thanks in advance.

    Moving this discussion to illustration community.

  • UDF - Removing Header Record from File

    Hi Team,
    In my file(File Content Conversion) to ABAP server proxy scenario...
    The source File structure is like this...
    KUNNR|Matnr|Description----->(This is Hearder Record.Each File contains this header record.)
    1001|0077321|Special Materials
    1002|0077323|Raw Material
    File adapter will picks the file , In Message Mapping The first record is the Header Record from the above file structure.So I need to remove the Header Record.
    Can we handle  this requirement with any FCC parameter ;I think we can do it with the help of UDF in MessageMapping?
    Can anybody ghelp me the sample code for this.
    Thanks.
    Drumi

    Hi,
    You can use Document Offset in FCC to  specify the number of lines that are to be ignored at the beginning of the document.
    Regards,
    Priyanka

  • Work order header information from BAPI_ALM_ORDERHEAD_GET_LIST

    Upfront I'll admit that this question likely falls outside of MII as I am getting bad results in SE37 as well.  Was hoping others in this group have experience with this.
    When I use BAPI_ALM_ORDERHEAD_GET_LIST there are several work orders that do not get returned, and I can't figure out why, or even what is the common thread between them.  The missing orders are viewable via iw33, and information can also be returned from BAPI_ALM_ORDER_GET_DETAIL.
    Right now, the only thing I pass in OPTIONS_FOR_ORDERID with a range of orders (ie 20 or so).  Orders are returned in the correct range, just not the one I am looking for.
    Rod

    Hi Rod,
    The only thing I can think of is that there are times where orders (or other objects) are created outside of normal procedures.  My experience was with Batch histories, but if the objects are not created in the normal process (a nebulous term at best), they will sometimes not be stored in all the proper tables.  Can you check the processing history of the orders missing to see if there are any discrepancies there? 
    Otherwise, you may need to get some ECC side help.  The ABAP code in the underlying function module may direct you to all the tables which should be populated with the correct data so you can check which tables are not populated. 
    An alternative option for getting the work order header information would be to go back to the old reliable RFC_READ_TABLE.
    Good luck,
    Mike
    Edited by: Michael Appleby on Feb 12, 2011 4:13 PM

  • Read/write calendar information from outlook/yahoo server

    Hi,
    my requirement is read calendar information from outlook/yahoo server.
    pls tellme any opensource (java) available for this.pls any sites theoratically/practically explained on this.
    pls help me on this.
    regards
    karthik

    I posted this question a while ago and didn't receive any responses but there are a lot of people who have viewed it and 10 have said they have the same question so I thought I would update you that I added my nanny to my exchange server account (created an email for her) and I send all invites to that email address and they work.  So sending invites from an exchange server account to a non-exchange server account apparently is a bug so to solve it, get on an exchange server I guess.

  • Read the good information from a record

    Hello all,
    I save in a record (RMS) following infomation:
    id - int
    webid - int
    del - int
    name - string
    if I want read the name directly do I need to read all previous information (id, webid, del)? Do you know a way to read directly the name without reading the other information?
    Now my code is like :
    try {
                   RecordStore rs = RecordStore.openRecordStore(Produit.DB_PROD,true);
                   RecordEnumeration re = rs.enumerateRecords(new ObjShopperFilter(), new ObjShopperComparator(), true);
                 while (re.hasNextElement()){
                      ByteArrayInputStream stream = new ByteArrayInputStream(re.nextRecord());
                      DataInputStream reader = new DataInputStream(stream);
                      try {
                           reader.readInt();
                          reader.readInt();
                          reader.readInt();
                          String name = reader.readUTF();
                         reader.readLong();
                          if (reader.readInt()==id){
                               reader.reset();
                               stream.reset();
                               rs.closeRecordStore();
                               return name;
                      catch (IOException e) {
                           //debug
                          System.out.println("IOException in Category.isUsed:002:" + e + ":" + e.getMessage());
                      finally{
              catch (RecordStoreException rse){
                  System.out.println("RecordStoreException in Category.isUsed:001:" + rse + ":" + rse.getMessage());
              Could you help me ?
    Regards

    I think that my explanation wasn't good :(
    I don't want to find a special record...I want read a special part of a record.
    When I save a record I write in bytes values in int, string, double...(ex.: 1,"john",2.3).
    So my RMS contains some same records, for example
    1,"john",2.3
    2,"rose",3.4
    3,"Louis",3.0
    When I read all my records, I would like retrieve directly the String "john","rose"...
    My solution is to read each component of a record without save the read value (see my previous code...) until read the element that I want keep the value.
    Is it possible to read directly a part of a record?
    I hope that these explanation could help you to understand my needs.
    Regards

  • Problem with reading MP3 tag information

    This may be a simple fix, but I'm having no luck figuring it out. I've got an application here that scans through a given directory for all files. We are going to assume that all files below the given parent directory are *.mp3 files. Every file we find is going to have its path stored into an ArrayList. After the ArrayList is created, we will then through the ArrayList, getting the String value which is a path to our MP3 file.
    The application works well when I am simply printing out the ArrayList to the console. It's printing out everything in the ArrayList. The ArrayList consists of both directories and paths to actual files. The problem comes when I am trying to take the String from the ArrayList, pass it into my getID() method. Here is the code. i've commented the line in my main method that is giving me problems.
    * Main.java
    * @author tristan
    * Created on August 7, 2007, 4:26 PM
    package audioidreader;
    import java.io.*;
    import java.util.*;
    import org.blinkenlights.jid3.*;
    import org.blinkenlights.jid3.v1.*;
    import org.blinkenlights.jid3.v2.*;
    public class Main
        /** Creates a new instance of Main */
        public Main ()
         * @param args the command line arguments
        public static void main (String[] args) throws Exception
            /* tempDir is the directory where we will be searching for files. The ArrayList 'files'
             * is where all the file listings will be stored by using getFileListing(tempDir). The
             * for() loop get the size of the ArrayList, starts from the first index, and gets the
             * index value. The index values are supposed to be paths to an MP3 file. We will use
             * System.out.println() to print out all the paths to all the MP3s found to the console.
            File tempDir = new File ("/home/tristan/My Music");
            ArrayList files = (ArrayList) getFileListing ( tempDir );
            for(int i = 0; i < files.size (); i++)
                System.out.println ( files.get (i) );
                // getID((String) files.get (i)); // throws an exception
        static public ArrayList getFileListing ( File aStartingDir ) throws FileNotFoundException
            /* First, we check to see if our directory for the MP3s exists or not. In this case,
             * we are calling validateDirectory() with a file object passed from our main method.
             * If the directory is good, we then create a new Arraylist to store the results in.
             * We then scan through our directory and find every file within our parent directory
             * and we add the result, even directories, to the ArrayList. Once everything is done,
             * we return the 'result' ArrayList to where it was originally called from Main.
            validateDirectory (aStartingDir);
            ArrayList result = new ArrayList ();
            File[] filesAndDirs = aStartingDir.listFiles ();
            List filesDirs = Arrays.asList (filesAndDirs);
            Iterator filesIter = filesDirs.iterator ();
            File file = null;
            while ( filesIter.hasNext () )
                file = (File)filesIter.next ();
                result.add (file);
                if (!file.isFile ())
                    List deeperList = getFileListing (file);
                    result.addAll (deeperList);
            Collections.sort (result);
            return result;
        static private void validateDirectory (File aDirectory) throws FileNotFoundException
            /* This method checks to see if our parent directory that we entered is an existing
             * directory. If the directory does not validate, we will throw an exception specific
             * to the reason of not being valid.
            if (aDirectory == null)
                throw new IllegalArgumentException ("Directory should not be null.");
            if (!aDirectory.exists ())
                throw new FileNotFoundException ("Directory does not exist: " + aDirectory);
            if (!aDirectory.isDirectory ())
                throw new IllegalArgumentException ("Is not a directory: " + aDirectory);
            if (!aDirectory.canRead ())
                throw new IllegalArgumentException ("Directory cannot be read: " + aDirectory);
        static private void getID (String mp3) throws ID3Exception
            /* getID() is called by the main method. What we are attempting to do here is
             * receive the String (path to MP3 file) that is passed to us and do a test on
             * it. First, we will use the String to our MP3 and make it a file object.
             * After creating the file object, we are then using that object to create
             * an MP3 object. Now, we will read the tages from the object to determine
             * if it is an ID3 v1.0 or ID3 v2.3.0 tag. Regardless of what it is, we want to
             * print out some information to the console in the format of 'Artist - Title'.
            File oSourceFile = new File (mp3);
            MediaFile oMediaFile = new MP3File (oSourceFile);
            ID3Tag[] aoID3Tag = oMediaFile.getTags ();
            for (int i=0; i < aoID3Tag.length; i++)
                if (aoID3Tag[i] instanceof ID3V1_0Tag)
                    ID3V1_0Tag ID3_1 = (ID3V1_0Tag)aoID3Tag;
    if (ID3_1.getTitle () != null && ID3_1.getArtist () != null)
    System.out.println (ID3_1.getArtist () + " - " + ID3_1.getTitle ());
    else if (aoID3Tag[i] instanceof ID3V2_3_0Tag)
    ID3V2_3_0Tag ID3_2 = (ID3V2_3_0Tag)aoID3Tag[i];
    if (ID3_2.getArtist () != null && ID3_2.getTitle () != null)
    System.out.println (ID3_2.getArtist () + " - " + ID3_2.getTitle ());
    If I type in an actual String that is a path to an MP3, such as:
    getID("/home/tristan/My Music/Incubus - Drive.mp3"); Everything works fine. I've tried casting the value pulled from the ArrayList as a String and then passing it to the getID() method, but my exception I am getting is:
    Exception in thread "main" java.lang.ClassCastException: java.io.File cannot be cast to java.lang.String
            at audioidreader.Main.main(Main.java:38)
    Java Result: 1Line 38 is the line I have commented out. Any ideas?

    You're right. That is a bit misleading. Anyway, I
    decided to not cast (String) to it. It was a simple
    fix just like I figured, but of course I figure it
    out after I made the post.
    getID (files.get (i).toString ());fixed my problem. Thank you.But not in the correct way. You should really use the canonical path or the absolute path.

  • BODI 11.7: Missing Source Information from File Format Editor

    I'm trying to import data from multiple flat files and need to include the file name of each file as an attribute for each row, however, I do not have the Source Information section of the File Format Editor that the DI Technical Manual refers to on page 367.
    I'm sure I'm missing something small in terms of properties to switch this feature on and hoping that someone can help me???
    I'm using Data Integrator 11.7.3.1

    This is a call-property, not a class property.
    When you open the file format editor via the object library you can define the class as such.
    Open the file format reader from within the dataflow, there you can specify the properties specific to this reader call - including the "include filename column".

Maybe you are looking for

  • No data output field in DAQ Assistant

    I am currently trying to read temperature from my NI WSN 3202. I have a thermistor connected to AI0 and AIGND.  I am following a tutorial to convert from volts to degrees F and everything has been working so far.  Once I reach the step for DAQ that i

  • Itunes 10.3 wont install...tried about 5 times...help?

    For some reason, after trying to upgrade my old version of itunes the new version wont fully install. I get 'error 7" almost every single time, or i get "itunes has not full installed" then it goes away...like it uninstalls itself? I have just downlo

  • Organizer working-Editor not working

    After install the Orgainzer works but the Photo Editor doesn't. When I click the Photo Editor in the splash screen it tells me my trial period is up. I'm using Windows Vista Home Basic 32 bit

  • Installing actions in PSE7

    Hi! I'm trying to install third-party actions in PSE7 and cannot find the folder they're supposed to go in. When I try the things suggested already in this forum I don't have the appropriate folders to place the actions in (photo creations, actions,

  • Can someone review my working program and..

    Let me know if I wrote this out clearly and if it seems to be written alright for someone with a few days of Java. Just looking for advice or comments. Do not need anything fixed or anything like that its working how I need it to. Thanks you guys are