Problem in display file content

Hi all,
I've a big problem about using the iFS content display function. My project needs to build up a document search engine and the search result, included the part of the document content, is required to display on the web interface.
Most of the document I searched is PDF and MS word documents. I tried to use the feature in
oracle.ifs.beans.document and get the content out and I tried so many function call there but the result seems not too successful. Following is the function call I tried before.
1/.
Document.filterDocument() ;
Document.getFilteredDocument() ;
As I know, it used the INSO filter to filter the document. The content return is fine for me, but not the format. No matter I put true/false into the Document.filterDocument(), the HTML format will also return instead of plaintext.
I expected to return plaintext in this function so I can customise the format. But why it coudln't be?
I guess there is something wrong about the INSO filter but I have no idea how to configure it....
2/.
Reader a;
a=getContentReader();
Nothing is return using ths function and it ususally reutrn the error message to me. I've no clue....
3/.
InputStream a=null;
a=getContentStream();
It return some strange byte code which is not what I need....
4/.
ContextThemes a=new ContextThemes[50];
generateThemes(false);
a=getThemes();
Maybe it is not relevant function but I tried it.
Nothing I returned to the object arrary.
I will v.v.v. appreciate if someone can help (Hope the supports are not in holiday this moment...)
null

I checked the API of getContentStream() and getContentReader(). it will return the binary data of the document and the readable content will NEVER return to the Reader or InputStream variable.
In addition, even the SimpleTextRenderer with ifsfileSystem.renderAsStream() function is used, the data returned also not the text data of the document. WHat I can get is the properties of that document object, not the useful content in the document.
For the INSO filter Java function filteredContent(), no matter the true or false option chosen in the function, it can only return HTML result. It cannot return the text data!!!!!!
I tried so many solution and it's also not work. I start feel ashame to use Oracle iFS!!! How can the function to be such a unreliable???
HEY, Oracle Support, it is a high time for you to give us a clue.
null

Similar Messages

  • Problem in displaying file thru FDTA

    hi all,
    we have a problem with FDTA while displaying the content of DME file which generated through FBWE transaction for Bill of Exchanges.
    it is showing some chinese characters in dispaly.
    but when we down load the file into PC the file getting downloaded in correct format.
    the problem here is user is looking for display functionality of the file.
    if any body came across with this issue, please share about.
    Chandra

    Hi Chandra.
    I'm facing the same problem. Have you solved it?
    Now I'm generating DME from transaction F110. And I've noticed that it happens in prod.system, in QAS or dev. no problem with showing files.
    Thanks, Mau

  • How to display file contents on a web page

    On unix platform I have created a class that can read the contents of a file and display them to the standard output. But now i want to display these file contents on a web page through jsp. On JSP code I have imported this class and want to assign a record from a file and write it to the screen using html. I think the class needs to be modified in order to return the string record read from a file so that im able to access it from a jsp and assign it to a variable the I can display it on the screen. Can someone help me with these code?

    Actually, you mean Linksys.  BIG difference there.
    Linksys Business Series was accumulated into Cisco Small Business, since it was purpose built for small business, not residential/consumer grade.
    The new PVC2300 actually are Cisco branded on the case.
    The collateral you seek is protected by the business unit that supplies it, since it was placed on a portal that only Cisco registered partners can access.
    As I wrote, I already checked with the BU and they told me thats where it lives and not to hand it out.  I cannot override that. 
    I am not sure there are any secrets in there, but I dont make the rules, sorry.
    Do you want to be a Cisco Partner?   Sign up and gain access to everything you need to sell Cisco successfully to end customers?  If you tell me your geography (city/state/zip, I will have an ICAM call you and help recruit you.....
    Steve D
    Systems Engineer
    U.S. Partner Sales team
    RTP, N.C.

  • Problem with Sender File Content conversion

    Hi everybody,
    I have a flat file with the following structure:
    PR1xxxx
    CL1.1xxx
    ALxxx
    PTxxx
    PTxxx
    PTxxx
    CL1.2xxx
    ALxxx
    PTxxx
    PTxxx
    Cl1.3xxx
    PR2xxx
    CL2.1
    Alxxx
    PTxxx
    Ptxxx
    CL2.2xxx
    ALxxx
    PR3xxx
    I need to send an IDOC (ORDERS05) per CL and I also need that the PR goes together with the CL.
    Something like that:
    IDOC 1
    PR1xxx
    CL1.1xxx
    ALxxx
    PTxxx
    PTxxx
    PTxxx
    IDOC 2
    PR1xxx
    CL1.2xxx
    ALxxx
    PTxxx
    PTxxx
    IODC 3
    PR2xxx
    CL2.1xxx
    The problem is that I am not able to attach the PR with each CL because the PR is written once at the beginning.
    I have tested all the posibilities in the content conversion area but I don`t find the way to achiveve that.
    Maybe, Have I to do something in the mapping program?
    Nested substructures are possible in the File Content Conversion?
    Any idea?
    Thanks for everything

    We can handle this in mapping as follows
    Crate an Intermediate structure Identical to your input structure. Just you need to add an sub element (Let’s say "T" to your CL node.
    This sub element will be used to remember CL node belongs to which PR node.
    Map your Input structure to Intermediate structure.
    While mapping PR Node of input to PR Node of Intermediate structure use a user defined function as follows
    Integer ii;
    GlobalContainer g;
    g=container.getGlobalContainer();
    Object o= g.getParameter("_&HLID");
    if (o==null) ii=new Integer(0);
    else
    ii =(Integer)o;
    ii =new Integer(ii.intValue()+1);
    g.setParameter("_&HLID",ii);
    Use another user defined function to retrieve the value of this _&HLID and put it to T as follows:
    GlobalContainer g;
    g=container.getGlobalContainer();
    Object o= g.getParameter("_&HLID");return o.toString();
    For all other fields just do a 1:1 mapping.
    Then
    Map your intermediate structure to destination structure (IDOC)
    Here the only catch is:
    For populating the value of PR for each CL
    Pass both the element T and the element of PR from which you want to pick the value to a user-defined function (raise the context of both elements to the top node).
    In array a we have the value of T
    In array b we have the value of element of PR
    int j=0;
    for(int k=0;k<b.length;k++){
    for (int i=0;i<a.length;i++)
         if (a<i>.equals(new Integer(j+1).toString())){
              System.out.println(b[j]);
         j=j+1;
    Hope this takes care of your problem.
    If you don't get anything please get back to me.
    Abinash

  • Display file content in Web Dynpro ABAP

    Hello,
    we would like to be able to display any file after having uploaded files using FileUpload ui  element in a web dynpro abap application.
    for microsoft word excel files, the OfficeControl ui element can be used and for  pdf documents the InteractiveForm ui element can be used.
    for other formats  such as '.tif', '.jpg', '.txt'..... we did not find out how to be able to display the file contents
    Does anybody know if and how this could be achieved?
    Cheers
    Ana

    Chris,
    You may be right. Also it requires some configuration in SAP KPro ( document class etc).
    Please see SAP [Help |http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCSRVBDS/BDS_STRUCTURE.pdf]on Business Document Services.
    At page 64 of this document under topic 'Display Documents' 'Feature it says. "If it is not possible to display the document in place, an appropriate viewer that is available on the
    PC is started and the document is displayed u201Cout placeu201C

  • Problem in display file in java applet embeded browser

    hi, i am facing problem to display the file from local drive in java applet embeded browser. here is the error message i get:
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i think it should be the java security problem and i have try to get the solution from internet. i try to solve by using the fllowing method:
    keytool -genkey -keyalg rsa -alias yourkey
    keytool -export -alias yourkey -file yourcert.crt
    javac yourapplet.java
    jar cvf yourapplet.jar yourapplet.class
    jarsigner yourapplet.jar yourkey
    but the command prompt ask me to enter the keystore password. i try to enter any password. but i show me the error:
    keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect.
    So may i know what is the problem actually?Thanks a lot.

    Hi,
    here is the sample coding :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.geometry.ColorCube;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
    import com.sun.j3d.utils.behaviors.mouse.MouseZoom;
    import com.sun.j3d.utils.behaviors.mouse.MouseTranslate;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import org.web3d.j3d.loaders.VRML97Loader;
    import com.sun.j3d.loaders.Scene;
    public class SimpleVrml extends Applet implements ActionListener {
    String           location;
    String           initLocation;
    Canvas3D     canvas;
    SimpleUniverse     universe;
    TransformGroup     vpTransGroup;
    VRML97Loader     loader;
    View          view;
    Panel          panel;
    Label          label;
    BranchGroup     sceneRoot;
    TransformGroup     examineGroup;
    BranchGroup     sceneGroup;
    BoundingSphere     sceneBounds;
    DirectionalLight     headLight;
    AmbientLight     ambLight;
    TextField      textField;
    Cursor          waitCursor;
    Cursor          handCursor;
    public SimpleVrml() {
    initLocation="cylinder.wrl";     
         setLayout(new BorderLayout());
         GraphicsConfiguration config =SimpleUniverse.getPreferredConfiguration();     
         setLayout(new BorderLayout());
         canvas = new Canvas3D(config);
         add("Center",canvas);
         panel = new Panel();
         panel.setLayout(new FlowLayout(FlowLayout.LEFT));
         textField = new TextField(initLocation,60);     
         textField.addActionListener(this);
         label = new Label("Location:");
         panel.add(label);
         panel.add(textField);
         add("North",panel);
         waitCursor = new Cursor(Cursor.WAIT_CURSOR);
         handCursor = new Cursor(Cursor.HAND_CURSOR);
         universe = new SimpleUniverse(canvas);
         ViewingPlatform viewingPlatform = universe.getViewingPlatform();
         vpTransGroup = viewingPlatform.getViewPlatformTransform();
         Viewer viewer = universe.getViewer();
         view = viewer.getView();
         setupBehavior();
         loader = new VRML97Loader();
         gotoLocation(initLocation);
    public void actionPerformed(ActionEvent ae) {
         gotoLocation(textField.getText());
    void gotoLocation(String location) {
         canvas.setCursor(waitCursor);
         if (sceneGroup != null) {
         sceneGroup.detach();
         Scene scene = null;
         try {
         URL loadUrl = new URL(location);
         try {
              // load the scene
              scene = loader.load(new URL(location));
         } catch (Exception e) {
              System.out.println("Exception loading URL:" + e);
         } catch (MalformedURLException badUrl) {
         // location may be a path name     
         try {
              // load the scene
              scene = loader.load(location);
         } catch (Exception e) {
              System.out.println("Exception loading file from path:" + e);
         if (scene != null) {
         // get the scene group
         sceneGroup = scene.getSceneGroup();
         sceneGroup.setCapability(BranchGroup.ALLOW_DETACH);
         sceneGroup.setCapability(BranchGroup.ALLOW_BOUNDS_READ);
         // add the scene group to the scene
         examineGroup.addChild(sceneGroup);
         // now that the scene group is "live" we can inquire the bounds
         sceneBounds = (BoundingSphere)sceneGroup.getBounds();
         // set up a viewpoint to include the bounds
         setViewpoint();
         canvas.setCursor(handCursor);
    void setViewpoint() {
         Transform3D viewTrans = new Transform3D();
         Transform3D eyeTrans = new Transform3D();
         // point the view at the center of the object
         Point3d center = new Point3d();
         sceneBounds.getCenter(center);
         double radius = sceneBounds.getRadius();
         Vector3d temp = new Vector3d(center);
         viewTrans.set(temp);
         // pull the eye back far enough to see the whole object
         double eyeDist = 1.4*radius / Math.tan(view.getFieldOfView() / 2.0);
         temp.x = 0.0;
         temp.y = 0.0;
         temp.z = eyeDist;
         eyeTrans.set(temp);
         viewTrans.mul(eyeTrans);
         // set the view transform
         vpTransGroup.setTransform(viewTrans);
    private void setupBehavior() {
         sceneRoot = new BranchGroup();
         examineGroup = new TransformGroup();
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
         sceneRoot.addChild(examineGroup);
         BoundingSphere behaviorBounds = new BoundingSphere(new Point3d(),
              Double.MAX_VALUE);
         MouseRotate mr = new MouseRotate();
         mr.setTransformGroup(examineGroup);
         mr.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mr);
         MouseTranslate mt = new MouseTranslate();
         mt.setTransformGroup(examineGroup);
         mt.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mt);
         MouseZoom mz = new MouseZoom();
         mz.setTransformGroup(examineGroup);
         mz.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mz);
         BoundingSphere lightBounds =
         new BoundingSphere(new Point3d(), Double.MAX_VALUE);
    ambLight = new AmbientLight(true, new Color3f(1.0f, 1.0f, 1.0f));
    ambLight.setInfluencingBounds(lightBounds);
    ambLight.setCapability(Light.ALLOW_STATE_WRITE);
    sceneRoot.addChild(ambLight);
    headLight = new DirectionalLight();
    headLight.setCapability(Light.ALLOW_STATE_WRITE);
    headLight.setInfluencingBounds(lightBounds);
    sceneRoot.addChild(headLight);
         universe.addBranchGraph(sceneRoot);
    public static void main(String[] args) {
    new MainFrame(new SimpleVrml(), 780, 780);
    cylinder.wrl :
    #VRML V2.0 utf8
    # A cylinder
    Shape {
    appearance Appearance {
    material Material { }
    geometry Cylinder {
    height 2.0
    radius 1.5
    view.html:
    <html>
    <applet code="SimpleVrml.class" width=600 height=600>
    </applet>
    </html>
    error msg that i get :
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i can display the wrl file in applet itself but i can't display in the browser.is it any problem with my code?Urgent, please help me. Thanks.

  • Problem in Sender File content conversion

    Hi all,
    my sender file structure is as follows:
    records
    header
      f1   minlength=1 MaxLenth=1
      f2   minlength=5 MaxLenth=5
      f3   minlength=7 MaxLenth=7
    detail
      f1   minlength=1 MaxLenth=1
      f2   minlength=5 MaxLenth=5
      f3   minlength=18 MaxLenth=18
    now i need to use these fixed field legth file and perform fcc.
    under fcc of communication channel
    documentname=MT_details
      rcs   header,,detail,
    header.fieldNames  header.f1,header.f2,header.f3
    header.fixedFieldLengts 1,5,7
    detail.fieldNames  detail.f1,detail.f2,detail.f3
    here I Am not using any key field
    when i test the scenario with test file
    A E123 X12345
    T T123 Textlineitem12345
    My problem is the file is not getting picked from the specified path.
    Please correct my configuration.
    Thanks,

    Check the FOLDER permission of the path.
    There may be some permissions missing to access that folder .
    Check with your BASIS or UNIX team.
    Edited by: Naresh Nelapatla on Feb 27, 2012 7:17 PM

  • Problem with Sender File Content Conversion Communication Channel

    Hi All,
    I am using XI 3.0--SP 16.
    I have configured a Sender communication channel with File Content Converison which takes up a Fixed length text file and converts to XML.
    My scenario is that I have some 'n' files, out of which one file has error in content conversion.
    In a normal scenario I would expect other files to get processed, but they are not.
    I can correct the error or even discard the error file. But I am unable to understand why XI is not processing the rest of the good files.
    Thanks in advance.
    Regards.,
    Sudharshan

    Hi,
    @Renjith
    The QOS is EO, thats why I am wondering why it is not picking the rest of the good ones
    Regards,
    Sudharshan

  • Problem with displaying XML Content well formatted.

    Hi all,
    I am developing a website which have one functionality to display XML content which is received from some other party.
    I am using TextArea for displaying this XML content on my webpage. As this XML content is not at all formatted it looks very ugly for a human to read.
    I want this XML content to be displayed well formatted, As Mozilla Firefox display it hierarchically and well formatted.
    Kindly give some suggestion for displaying XML well formatted on a webpage.
    Any comments from you people will help me.
    Thanks
    typurohit.

    The following link is a XML-based document. An XSL stylesheet transforms the XML document to HTML in the web browser. Feel free to grab a copy of the stylesheet to use as a guide.
    http://www.masonicartbook.com/production.htm
    Good luck!

  • Problems with displaying the contents in a TextArea in Swing?

    Hi All,
    In my project i am getting the contents of a .txt file from the server machine and i want to display it in a TextArea in Swing.
    I have done that without any problem.But the contents from a .txt file that are displayed in a TextArea is not aligned property but when i print it in the console it looks ok.But when it is displayed in the
    TextArea it is not aligned properly.
    Plz. do provide a solution regarding this.
    Thanx,
    m.ananthu

    Hi Camick,
    Thanks man it looks neat and the alignment is good.
    Thanx,
    m.ananthu

  • How to display file content in browser using servlet..? urgent!!!

    hello,
    i am building a application for which when a user logs in he will we redirected to page where he will have one link ,with this link a file is associated.
    when user press that link he should be able to see that particular file in internet browser....
    now can anybody give me a code sample of how to display a file in browser....
    please reply me as soon as possible...

    thanks for your reply....
    but i don't want this....
    i want to read a file from disk into stream or buffer and from that again reading and printing in browser.....
    a servlet should be built for this....
    i wrote this but its not working
    ========================================================
    public class FilePrinting extends HttpServlet
         public void doPost(HttpServletRequest req,HttpServletResponse res)
              throws IOException,ServletException
              ServletOutputStream out=res.getOutputStream();
              res.setContentType("text/html");
              String fileURL="/mydomainWebApp/Test.htm";
              res.setHeader("Content-disposition","attachment; filename=" +="Test.htm" );
              BufferedInputStream bis=null;
              BufferedOutputStream bos=null;
              try
                   URL url = new URL( fileURL );
                   bis=new BufferedInputStream(url.openStream());
                   bos = new BufferedOutputStream(out);
                   byte[] buff = new byte[2048];
                   int bytesRead;
                   // Simple read/write loop.
                   while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
                   bos.write(buff, 0, bytesRead);
              }catch(final MalformedURLException e)
                   System.out.println ( "MalformedURLException." );
                   throw e;
              }catch(final IOException e)
                   System.out.println ( "IOException." );
                   throw e;
              }finally
                   if (bis != null)
                        bis.close();
                   if (bos != null)
                        bos.close();
    =======================================================================
    please send me sample code if anyone have../...

  • Problem in reading file contents in to inernal table

    i have  a problem with the archive file
    actually i have created archive files in SAP file system i stored the archive file in a external repository.
    now i like to access one of the archive file i want to read the contents of the file in to a internal table.
    the starting of the file contains some unique document number i need to able to capture that document number.
    i am able to read the contents from archive file but the contents are unknown charecters.
    i used open data set to read the contents of the file , but i cannot resolve these unknown charecters.

    Call transactions
    - SARA Archive Administration
    - AOBJ to find the read program (if exists) associated to the archive object
    More information on [Archive Administration|http://help.sap.com/saphelp_smehp1/helpdata/en/8d/3e4d70462a11d189000000e8323d3a/frameset.htm] and [Archive Development Kit|http://help.sap.com/saphelp_smehp1/helpdata/en/2a/fa0391493111d182b70000e829fbfe/frameset.htm]
    Regards,
    Raymond

  • Display file contents

    Hi, I am learning servlets, and am trying to write my own simple upload program.
    I'm trying to see first whether my code can pick up the contents of the file the user specifies. The form is set to multipart/form-data and uses POST.
    Right now I'm using ServletInputStream to print out the information submitted in the request, but instead of printing out the contents of the file, it prints out all the POST parameters, including the file name parameter. It is only the file, theigh, and I want the contents of the file to also be displayed.
    Can anybody please help me by describing what I could do to output the contents? Does another type of stream need to be opened to start looking at the file's contents, in addition to just looking at the POST headers and parameters?
    Thanks.

    Hi Sudhir,
    I found an example which does similar to what you are looking for. Unzip the zipped file and you should see two examples.
    File Read Customized will help you to read data from file and format into single column.
    File Read Customized_multiple line will help you to read data from a file which has multiple rows and columns. Then it updates table on the front panel with new line read.
    Please feel free to use it. I am also attaching a sample text file for you to try the example.
    Kalyan
    Kalyanramu Vemishetty
    Automated Test Systems Engineer
    National Instruments
    Attachments:
    example.zip ‏25 KB

  • Problem with display of content in Windows XP - help!

    Hi, I recently created a Windows XP partition on my Mac using Boot Camp and am having a problem. Everything that I open in Windows is way too big and in some cases, it means that I can't access the whole page or scroll up or down. Even when I open Gmail or other pages in Internet Explorer, they look huge. I have tried playing around with the display settings but it does not solve the problem. I am wondering if I could be missing a driver that I need or something? I did install drivers with my Mac OS X disc after installing Windows XP but I am not knowledgeable enough to be able to tell which drivers actually got installed. Any help greatly appreciated as there is a software program I would really like to run on this partition and I can't figure out how to resolve this problem. Thanks!

    There was just a post or two about a week or so ago about the same problem but I'll be danged if I can find them now.
    I believe one of them had an nVidia(?) card and they had an update on nVidia's web site for such a problem if I remember right. They just installed the new driver onto the Windows side and it fixed the problem. I don't know if it came from a Microsoft or an nVidia site that they found the reference to.

  • Iframe has a problem in displaying the content of the source in iframe

    iframe displaying a RSS feed from an XML file so on subscribing to RSS, iframe goes blank and does not render any kind of control. Inspite of this, control comes for the bookmark. This functionality is working fine with all the versions of IE. but am facing thi sin all firefox versions.

    Hi
    Thanks for your idea.
    I am not understanding what is <calculate number of pages>
    int pages = <calculate number of pages>if (pageIndex >= pages){    return(NO_SUCH_PAGE);}// no need for else; if pageIndex >= pages we have returned and are not in the method anymoreGraphics2D graph = (Graphics2D)g;int x = <x coordinate of page pageIndex>int y = <y coordinate of page pageIndex>graph.translate(pageFormat.getImageableX() + x, pageFormat.getImageableY() + y);disableBuffering(compent);compent.paint(graph);enableBuffering(compent);return PAGE_EXISTS;How can we get it for JTree?
    Thanks
    Archana

Maybe you are looking for

  • Spry menu bar and IE

    Menu bar works fine in all other major browsers, but there is a gap in the "specialty" submenu.  Also, it is very "twitchy in IE" i have been working on this for way too long, somebody please help.  superfunecotours.com is the site. Here is the spry

  • Issue Putting Data from ArrayCollection into List

    I'm having trouble getting data that has been pulled from a textArea and put into an ArrayCollection to be displayed in a List.  The data is being saved and then read as a file from local storage.  When I run the application, nothing appears in the c

  • Error in SQL Statement: SAPSQL_INVALID_FIELDNAME F~/BIC/ZREVISQTY

    Dear Guys,                 Regards..In the "Listcube" transaction and "Manage Contents" of the cube,whenver i execute the transaction to get the 'Output List' ,i get the following error : " Error in SQL Statement : SAPSQL_INVALID_FIELDNAME"..with the

  • Will my iphone 6 at&t international compatibility

    Will mi iphone 6 free contracto at&t work properly in argentina with a Personal Co chip?

  • Reader Mac installer problems

    Hi there New to the forum, just after seeing if anyone has a soloution for me: Ive checked someonline help topics but dont seem to have found my answer and saw another discussion on here , that sounded similar, but when i clicked on it it to read the