How read a file properties

Hello,
I need to read a file properties at start up the application to load some costants. How can I do this? Where put the code to read file?
Thanks everybody!

Under the Studio Components guide for BPM 10g you'll find a Properties File component. The direct link to it is here: http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/standard_components/Fuego/Io/PropertiesFile/PropertiesFile_component.html
Is that what you're looking for?
Edited by: user741070 on Oct 17, 2008 2:25 AM

Similar Messages

  • How to change File Properties Creator

    I'm using PSE 7.0 Organizer. When I change the date/time of my files, PSE assigns 'Adobe Photoshop Elements 7.0' to the Creator in the File Properties.
    How can I change this to a string of my chosing, such as ME. I'm am using right-click file > Adjust Date & Time of Selected Items... to set the date/time on images that I'm scanning from slides.When these images are scanned, there is no Exif data in the scanned file until I do this action. So this is the only way I know to get these to be sorted in the correct Date taken order.
    Thanks,
    John

    You can't change the "Creator" tag under "File properties" in PSE7.
    Anyhow the "Creator" Tag here represent the Application through which edition has been done on the image, it does not represent the Author.
    If you want to add your name as a author to a image, you can do the same by opening the image with Photoshop Elements Editor and follow these steps:
    1. Click on "File" menu and select "File Info".
    2. Now in the "File Info" dialogue box, Select the Tab "IPTC" and enter your name against the Coloumn "Creator" or you can do the same by selecting tab "Description" and entering your name against the Column "Author".
    3. Now Save the file.
    Now open the same file in organizer again and look for the metadata properties of the image, Click on Radio button "View: Complete" to view complete metadat of the image. Now You can see your name against the "Author".
    Hope It must have resolved your query.

  • Read sequence file properties from the test sequence

    Hi,
    I use the old version of TestStand 2.1. I have the option of version sequence (Sequence File Properties) that incrimante each backup. I wanted to know if I can get in the sequence, a variable that indicates the version of the current program.
    Thank you in advance
    Solved!
    Go to Solution.

    If I understood your question correctly, either use ActiveX steps to access the PropertyObjectFile.Version property or use the hidden property: RunState.SequenceFile.Data.Version. Hidden properties are subject to change in future versions of TestStand though, so it's more future proof to use the API. This particular property has however never changed so far.
    Hope this helps,
    -Doug

  • How do read  windows file properties?

    I want to be able to read the size of the file on disk - no the size of the file using file.length() which only gives the size of the file in bytes. also i want to be able to read anyother info that the os is keeping on a file. so, how can i do this? where does windows store property info. fi hope you can help.

    This might work. Copy the following into wordpad and save the folowing as text in the location C:\Windows\.hotjava\ named properties, no extension:
    #AppletViewer
    #Sat Jul 29 14:43:34 2000
    appletviewer.version=1.0

  • How to know file properties from a URL?

    Hi experts,
    I'm trying to use a function to know some properties from a file. The only information I have is its URL and I need to know the file name, file size, nime type...
    I used the "BBP_ATTACH_CONTENT_WEBGET" function, but I didn't receive that information
    Anyone can help me? Anyone knows what function can I use or what can I do?
    I'm using SRM 7.0
    Thanks in advance
    Edited by: Carlos Serrano Rodrigo on Jul 27, 2011 8:45 AM

    The question is... How to get the details/properties of a file which I only have the URL (I don't have its GID). Probably, you are right, this post should be in another forum. I'm working in SRM, so I thought this was the right forum.
    I tried to use BBP_PROCDOC_GETDETAIL (previously I got the GID whith BBP_ATTACH_METH_READ_PROP_MULT function), but this is not an attachment to a procurement document. So, I hadn't receive anything.
    Thank you for your response, I'll try to post in diferent forum.
    Regards

  • How read .iwa files

    Pages has crashed, my file is now corrupted and I'm trying to get the text from this file.
    if I Right click on the file > Show package content > open index.zip , I can see a bunch of .iwa files which seems to contains my original text, especially "Document.iwa".
    If I "$ nano Document.iwa" (because "$ file" only returns "data") I can see some of my text, but the overall seems crypted.
    Does anyone know how to decode/read this kind of .iwa file to recover text?

    Not sure why the corruption happens - can't help fix that one. I did notice that the file that becomes corrupted gets a weird extension added making it a folder and preventing pages from opening the file.
    *FIX*
    Rename the folder to only include .pages and select the option to change the extension.
    Once the rename is done you will be able to open the file in Pages again.

  • How read a file from applet?

    Hello.
    I have an applet which is in a signed jar file. And a configuration xml file. All I want to do is to put it near the jar file and access to it from applet. But applet cannot find it. I just want to read it simply. Also I don�t want to put it in a specified location on the server and want to have it near the jar file.
    Thanks very much.

    Check the API doc for Applet (that's java.applet.Applet). You call myApplet.getDocumentBase() to get the base URL (directory). I believe the base URL returned is actually the base URL of the HTML doc which your applet is embedded in. Add your xml filename to the end of the path. Then look at the API doc for java.net.URLConnection. You can call myURLConnection.getInputStream() to get an input stream of your xml.
    Nick

  • Read a file and insert rows into table

    Hi,
    i would like to know how read a file (expl.txt) with the utl_file package and after insert each row into the table (dataID).
    ie :
    file /tmp/expl.txt is containing :
    id1 id2 describe
    2 3 test1
    6 5 test2
    4 7 test3
    and
    table dataID (
    id1 number,
    id2 number,
    describe varchar2(100));
    Thanks you very much.

    Hello,
    You can use the TEXT_IO package.
    Perform an over-all search (right upper corner) on TEXT_IO, and in the results you will find a manual on how to use the package.
    Hope this will help you.
    Regards,
    Cindy

  • File properties cannot be set anymore?

    Hi,
    I have an application reading custom file properties (name/values accessible using dsofile.dll) to take actions on the processing of these files.
    Using win xp/vista, right-click on file, there is a tab "custom" where file properties/values can be added.
    In win 8.1 pro: no file properties available, and no way to add them! If I go to work, I can add properties, but these are NOT accessible using dsofile.dll.
    If I take a file from old computer, copy it to new one, there is a custom tab and I can view file properties. But no possibility to edit them nor to add properties to a new file.
    Any hint? Is it a deprecated feature / regression? Do I have to install  something (component, ...)?
    Regards.
    Alain Bourgeois

    Hi  Alain Bourgeois,
    I set up an environment and tested it according to the information listed below:
    http://support.microsoft.com/kb/224351
    Indeed, it didn’t work when you created a new office document, office 2007 Or office 2013, I get the error shown as below:
    After clicking the Detail it gives the following information:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.Runtime.InteropServices.COMException (0x800300FC): The name  is not valid. (Exception from HRESULT: 0x800300FC (STG_E_INVALIDNAME))
       at DSOFile.OleDocumentPropertiesClass.get_SummaryProperties()
       at FilePropDemoVB7.FilePropDemo.OpenDocumentProperties() in D:\CDBackup\Projects\dsofile\2.1\Samples\VB7\FilePropDemo.vb:line 535
       at FilePropDemoVB7.FilePropDemo.cmdOpen_Click(Object sender, EventArgs e) in D:\CDBackup\Projects\dsofile\2.1\Samples\VB7\FilePropDemo.vb:line 724
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    This message gives the detail information to solve this issue, but I am not a professional developer, I will continue to find causes related to Windows, if there might be any, meanwhile, I suggest to post it at the VBA forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=isvvba
    Regards
    Wade Liu
    TechNet Community Support

  • Output file properties to PDF?

    Anyone know how to output file properties to PDF?  I'm hoping to print image dimensions alongside images in contact sheets.  Thanks.

    Review the following note, it may be helpful.
    Note: 364177.1 - XML Publisher and Concurrent Manager Integration
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364177.1

  • How to read from a .properties file...?

    Hello all,
    I'm new to this forum.
    I have a problem in reading data from .properties file...
    Follow is my properties file...
    log4j.properties
    log4j.rootLogger=warn, file, mail
    log4j.appender.file=org.apache.log4j.RollingFileAppender
    log4j.appender.file.maxFileSize=100KB
    log4j.appender.file.maxBackupIndex=5
    log4j.appender.file.File=D:\log.txt
    log4j.appender.file.threshold=info
    log4j.appender.file.layout=org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
    #email appender
    log4j.appender.mail=org.apache.log4j.net.SMTPAppender
    #defines how othen emails are send
    log4j.appender.mail.BufferSize=1
    log4j.appender.mail.SMTPHost="smtp.Honeywell.com"
    log4j.appender.mail.From=[email protected]
    log4j.appender.mail.To=[email protected]
    log4j.appender.mail.Subject=Log ...
    log4j.appender.mail.threshold=error
    log4j.appender.mail.layout=org.apache.log4j.PatternLayout
    log4j.appender.mail.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
    I want to access file path given in .properties file..
    I'm coding like this...
    Properties props = new Properties();
    String p=props.getProperty("file.FILE");
    The above code is not getting me the string.. it shows null value...
    Any solution...?
    Thanks in advance......

    RahulSharna wrote:
    public Properties getProperties(String fileName)throws Exception{
    Properties prop = null;
    FileInputStream fis = null;
    Exception e = null;
    File file = new File(fileName);
    if(!file.exists())
    new FileNotFoundException(fileName);
    try{
    prop = new Properties();
    fis = new FileInputStream(file);
    prop.load(fis);
    }catch(Exception exp){
    e = exp;
    }finally{
    if(fis != null){try{fis.close();}catch(Exception ep){}}
    fis = null;
    file = null;
    if(e != null)
    throw e;
    return prop;
    }Hope the above snippet helps :)
    REGARDS,
    RaHuLYou do know that you can throw out of the catch block without "short-circuiting" the finally block, right? Making the declaration of e completely foolish. (Unless you actually want to do something after the try/catch block, of course.) And, if all you're going to do is throw the exception anyway, why bother catching it?

  • [Urgent] How to let FileAdapter to read next file after a customized period

    Dear friends,
    We are using SOA Suite 11.1.1.5 and use FileAdapter in BPEL Process to read files.
    The file adapter in BPEL Process need to handle 14 inbound different files every batch time. And we want to let File Adapter to start reading next file after every 5 minutes. How can we achive this?
    We tried the MinimumAge and SingleThreadModel properties, but seems no use.
    Thank you in advance.
    Regards,
    Tony

    Hi Tony,
    I think this can help you. Set the following JCA property in File/FTP Adapter .jca file. This will restrict the max no. of files to be read every polling cycle. Set the polling frequency to 5 mins.
           <property name="MaxRaiseSize" value="1"/>Let me know if any problems.
    Regards,
    Neeraj Sehgal

  • How to get File Reference of a properties file from EJB

    Hi,
    I am using Sun App server 7 with Oracle 9i. I am keeping all my SQL statements in a properties file from which I am loading it while making a database operation from Stateless beans. My problem is I am not able to get the reference of the properties file. Here is the code through which I am getting the SQL statements loaded to a cache.
    String sqlFileName = "SQL.properties";
    sqlCache.load(new FileInputStream(sqlFileName));
    From the cache I am sending the SQL statement depending on the key value. But the problem is I have to keep the SQL.properties file on the App Server config directory of the instance where the server.xml file resides. Otherwise it is not able to find the properties file. But I don't want to put the properties file on the config directory of the server instance. Please help how to get the properties file from the packakge. My file is residing inside a package com.company.sql . Botht the properties file and the class accessing the file are residing in the same package. Please help how to get the reference of the file with out putting the file in the config directory.
    Thanks
    Amit Patnaik

    Just wanted to warn you of the hazards if you read a file from EJB
    So please make sure that these hazards will not affect your application. However the solution suggested to use getResourceStream() concurs with ejbSpec
    This snippet is from suns blueprint on ejb
    Why can't EJBs read and write files and directories in the filesystem? And why can't they access file descriptors?
    Enterprise beans aren't allowed to access files primarily because files are not transactional resources. Allowing EJBs to access files or directories in the filesystem, or to use file descriptors, would compromise component distributability, and would be a security hazard.
    Another reason is deployability. The EJB container can choose to place an enterprise bean in any JVM, on any machine in a cluster. Yet the contents of a filesystem are not part of a deployment, and are therefore outside of the EJB container's control. File systems, directories, files, and especially file descriptors tend to be machine-local resources. If an enterprise bean running in a JVM on a particular machine is using or holding an open file descriptor to a file in the filesystem, that enterprise bean cannot easily be moved from one JVM or machine to another, without losing its reference to the file.
    Furthermore, giving EJBs access to the filesystem is a security hazard, since the enterprise bean could potentially read and broadcast the contents of sensitive files, or even upload and overwrite the JVM runtime binary for malicious purposes.
    Files are not an appropriate mechanism for storing business data for use by components, because they tend to be unstructured, are not under the control of the server environment, and typically don't provide distributed transactional access or fine-grained locking. Business data is better managed using a persistence interface such as JDBC, whose implementations usually provide these benefits. Read-only data can, however, be stored in files in a deployment JAR, and accessed with the getResource() or getResourceAsStream() methods of java.lang.Class.
    Hope this info helps!

  • Is it possible through labview to set and read window¿s based file properties​?

    Any file in XP operating system has file properties associated with it, such as, size, location, when the file was created, modified and last accessed. I know that Labview has the ability to access the size and modified property. Other file types such as image format types jpg, bmp and tif have additional associated properties such as: title, subject, author, and comments. Is it possible through labview to read and set these properties programmatically?

    Hpopenoe wrote:
    > Any file in XP operating system has file properties associated with
    > it, such as, size, location, when the file was created, modified and
    > last accessed. I know that Labview has the ability to access the size
    > and modified property. Other file types such as image format types
    > jpg, bmp and tif have additional associated properties such as: title,
    > subject, author, and comments. Is it possible through labview to read
    > and set these properties programmatically?
    Well, you can most probably do that by calling Windows API functions.
    Note however that the properties you mention are not generic Windows
    file properties but file specific internal attributes. Explorer does at
    least in XP handle some of those properties and shows them to the user
    but does so with internal file type handlers to extract the properties
    from the file.
    I'm not sure those file type handlers are actually available for other
    applications than Explorer without quite some work. If they are
    available they are certainly not part of the standard Win32 API but most
    probably part of the Windows shell component and I would guess not just
    through normal API function calls, but through the shell namespace
    enumeration, which is built on COM interfaces, something you only can
    call from standard programming languages, most of them are done in C++
    (and if you are a little more persistant in standard C).
    So you are likely to need to either write your own DLL doing the nitty
    gritty work of calling the shell interface and using that DLL in LabVIEW
    or find an Active X component which does the work for you. No doubt
    there is such an Active X component somewhere but how good and expensive
    is always a big question.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to get .ai (Adobe illustrator) file properties???

    Hello to all,
                         I am using c# window application framework 3.5 .I am working on the graphics search engine . Now i want to get the .ai (Adobe illustrator)files properties  so please help me how to get .ai files properties?????

    Illustrator file is not just simple one image, that there will be a single image height, width and bit depth available. Illustrator file is made of two components, one is PDF and another is Illustrator private data called PGF. PDF spec is available to everyone while PGF has very limited documentation, but both of them are vector based format, it can contain paths, images, gradient, text etc. They can have multiple pages of varied sizes and each page can have multiple images. So there is no single image height, width or bit depth for the entire file in total.

Maybe you are looking for

  • [Forum FAQ] Three helpful ways for analyzing Inventory issues in System Center 2012 Configuration Manager

    To troubleshoot issues related to Inventory, we can view the related logs or force a full inventory to analyze the reason. In these article, we mainly introduce the detailed ways to enable Verbose and Debug logging, save the inventory report and forc

  • Change decimal places in a KF

    Hi, I have a KF Amount with Data Type = CURR. This KF has a data element associated ( automatically associated  when is created) with Lenght 17 and Decimal places 2. The KF is used in a ODS as Data Field. Now the user want to update the field, with 5

  • Background colour of rootUIElementContainer

    Hi All, Can i change the background colour of the rootUIElementContainer to White ? If yes, How? My actuall problem is the i am having a group UI element and want that no part of the rootUIElementContainer be visible. If this can be done then i needn

  • XPath

    Is it possible to select the nodes in an XML document with distict values using XPath??If Yes how?if not can you suggest some way?? For example : <base> <node> <tag>val1</tag> </node> <node> <tag>val1</tag> </node> <node> <tag>val2</tag> </node> <nod

  • Add Service interface

    Hello folks, In PI 7.1 there is a new naming for message interface which is the Service interface. When i create a Business service : i can add sender and receiver Service interfaces. But if i create a Technical system in SLD and assign Business syst