Reading Images from DB2 content Manager

Has anybody have read images from IBM db2 content manager using oracel forms.
any links will be helpfu;
or any links to how to make windows API calls in forms 5.0.

OK, I found Greg's reply and that fixed it, once I played with it a bit.
"Cory McGinnis" <[email protected]> wrote:
>
I am displaying an html page from a <cm:select> but the images do not
display.
I have set up the dmsbase directory as per the samplePortal, and loaded
the content.
The HTML displays, but with errors for the images.
Here's the select from the portlet:
<cm:select contentHome="<%=ContentHelper.DEF_CONTENT_MANAGER_HOME%>"
query="type='page'"
id="textDocs"/>
<es:forEachInArray array="<%=textDocs%>" id="aTextDoc" type="com.bea.p13n.content.Content">
<p><cm:printDoc id="aTextDoc" failOnError="true" /></p>
</es:forEachInArray>

Similar Messages

  • Problem displaying images from the content manager

    I am displaying an html page from a <cm:select> but the images do not display.
    I have set up the dmsbase directory as per the samplePortal, and loaded the content.
    The HTML displays, but with errors for the images.
    Here's the select from the portlet:
    <cm:select contentHome="<%=ContentHelper.DEF_CONTENT_MANAGER_HOME%>"
    query="type='page'"
    id="textDocs"/>
    <es:forEachInArray array="<%=textDocs%>" id="aTextDoc" type="com.bea.p13n.content.Content">
    <p><cm:printDoc id="aTextDoc" failOnError="true" /></p>
    </es:forEachInArray>

    OK, I found Greg's reply and that fixed it, once I played with it a bit.
    "Cory McGinnis" <[email protected]> wrote:
    >
    I am displaying an html page from a <cm:select> but the images do not
    display.
    I have set up the dmsbase directory as per the samplePortal, and loaded
    the content.
    The HTML displays, but with errors for the images.
    Here's the select from the portlet:
    <cm:select contentHome="<%=ContentHelper.DEF_CONTENT_MANAGER_HOME%>"
    query="type='page'"
    id="textDocs"/>
    <es:forEachInArray array="<%=textDocs%>" id="aTextDoc" type="com.bea.p13n.content.Content">
    <p><cm:printDoc id="aTextDoc" failOnError="true" /></p>
    </es:forEachInArray>

  • I am facing a Problem with reading images from database

    Hi everybody..
    any help will be most appreciated, I am facing problem with reading images from database. I am pasting my code... 
                    string connect = "datasource = localhost; port = 3306; username = root; password = ;"; 
                    MySqlConnection conn = new MySqlConnection(connect); // creating connecting string
                    MySqlCommand sda = new MySqlCommand(@"select * from management.add_products ", conn); //creating query
                    MySqlDataReader reader; 
                    try
                        conn.Open(); // Opening Connection
                        reader = sda.ExecuteReader(); // Executing my Query..
                        while (reader.Read())
                            byte[] imgg = (byte[])(reader["Picture"]);
                            if (imgg == null)
                                pc1.Image = null;
                            else
                                MemoryStream mstream = new MemoryStream(imgg);
                                pc1.Image = System.Drawing.Image.FromStream(mstream);
    It says Parameter not Valid... i am reading all the images from database

    I agree with Viorel. You are getting the error because the format of the data is incorrect probably because the data was modify. It may not be the reading of the database the is incorrect, but the application that wrote the data into the database. You need
    to compare the imgg array data with the data before it was written to the database to see if the data matches.  I usually start by comparing the number of bytes which is easier to check then compare the actual to isolate which function is changing the
    byte count.
    An image is binary data.  The standard VS methods for reading and writing data (usually stream classes) default to ASCII encoding which will corrupt binary data.  The solution usually is to use UTF8 encoding instead of the default ascii encoding. 
    Ascii encoding with stream often aligns the data and adds extra null bytes to the end of the data which can produce these type errors.
    jdweng

  • Read image from scanner

    i want to interact with hardware(scanner) in java
    i want to read image and store in database
    for this
    1.) i want to read image from scanner
    2.) how do i start scanner process
    from where i gonna start
    plz help me to interact with hardware

    Hi, I have faced a similar problem and solved it using the morena api http://www.gnome.eu/Twain/examples/studio.html
    Problem is the scanner works fine with TWAIN, but with SANE, it is totally failing. There is a permanent connection refusal form the scanner ip whenever
    i try to use a network scanner. I am not sure how to solve it. If anyone has solved this please revert back.
    Regards,
    Anthony

  • Read image from excelsheet using labview

    i need to know how to read image from excel sheet using Labview...m not able to get the appropriate property to display the image stored in excel sheet.
    thank you

    you need to ask Microsoft to find out the property name/location under Microsoft Excel. 

  • Message (on one account) when logging in: The user account running the Configuration Manager console has insufficient permissions to read information from the Configuration Manager site database.

    After installing the reportservice/database i cannot use the Configuration Manager Console 2012 anymore with my own AD account. (The accounts of my colleagues are stil working)
    When i login i get the following message:
    The user account running the Configuration Manager console has insufficient permissions to read information from the Configuration Manager site database. The account must belong to a security role in Configuration Manager. The account must also have
    the Windows Server Distributed Component Object Model (DCOM) Remote Activation permission for the computer running the Configuration Manager site server and the SMS Provider.
    I checked the following:
    I am a administrative user in SCCM (Full Administrator)
    I am a member of the administrator group on the server
    Deleted HKEY_CURRENT_USER\Software\Microsoft\ConfigMgr10
    I tried to start it on multiple workstations and deleted my roaming profile
    Any more suggestions?

    Hi,
    Maybe you could have a look on the below blog.
    http://blog.nimbo.com/how-to-disable-user-account-control-in-windows-server-2012/
    (Note: Microsoft provides third-party contact information to help you find technical support. This contact information
    may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.)
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Reading Images from JAR Files

    Hi,
    I am having a very difficult time being able to read images from a JAR file via my Applet. I have tried everything that I know about with no luck. The only way I can get this to work is to store the images individually in a sub directory of public_html on the websever. This works, but I would like the images to come down in a JAR file for performance reasons.
    I am using Internet Explorer 5.5 for my browser. I checked the options and everything seems to be in order, but......
    I would appreciate any feedback that anyone might have on this topic..........
    Thank You....

    once in a jar file i inserted a image
    the jar file on clicking starts an frame.
    so the image was for getting that image at the icon place at top and at minimized window
    i could not get that image from jar file by new imageicon().getimage();
    but i get the image if it is in the directory in which jar file is.....
    can one explain the reason

  • Read image from R3

    Hi everyone,
    How can I read images from R3?
    Regards
    Eduardo Campos

    you need to ask Microsoft to find out the property name/location under Microsoft Excel. 

  • Read images from external jar file (Sun's Java L&F Graphics repository)

    Hi!
    I don't know how to read images from an external jar file. Sun has a Java Look and Feel graphics repository that contains a lot of good images that can be used on buttons and so on. This repository is delivered as a jar file, containing only images, and I want to read the image files from that jar file directly without including them inside my application jar file. The application and image jar files will be in the same directory.
    I have absolutely no clue how to solve this. Is it necessary to include the images inside my application jar file or is it possible to have them separate as I want.
    Would really appreciate some help!
    Best regards
    Lars

    Hi,
    There is two ways :
    1) Add your jarfile to the classpath.
    Use the class loader :
    URL url = ClassLoader.getSystemResource("your/package/image.gif");
    Image im = (new ImageIcon(url)).getImage();
    or
    Image im = Toolkit.getDefaultToolkit().getImage(url);2)If you don't want to add the jar to the classpath you can use this (under jdk 1.4):
    import java.util.*;
    import java.util.jar.*;
    import java.awt.*;
    import java.io.*;
    import java.awt.image.*;
    import javax.imageio.*;
    public class ImageUtilities {
         public static Image getImage(String jarFileName, String fileName) {
              BufferedImage image = null;
              try {
                   JarFile jar = new JarFile(new File(jarFileName), false, JarFile.OPEN_READ);
                   JarEntry entry = jar.getJarEntry(fileName);
                   BufferedInputStream stream = new BufferedInputStream(jar.getInputStream(entry));
                   image = ImageIO.read(stream) ;
              catch (Exception ex) {
                   System.out.println(ex);
              return(image);
    }I hope this helps,
    Denis

  • Read image from ORDImage column.

    I want to retrieve image from table with ORDImage column in PL/SQL but receive the following error:
    declare
    src BLOB;
    begin
    select stockphotos.photo.getcontent into src from stockphotos
    where photo_id = 1 for update;
    end;
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Thanks.

    Please look at:
    Oracle9i by Example Series
    The Oracle9i by Example Series provides hands-on step-by-step instructions on how to implement technological solutions to business problems. The section "Manage Content in the Database" in the "Release 2" series should be of special interest.
    http://otn.oracle.com/sample_code/products/intermedia/content.html

  • How Read image from slingRequest

    Hi,
    We have a user input form which contains input file (image) selection. When user submits the form, we want to read the file selected by user and store it as base 64 encoded data. We have following code to do the same. This code gets executed when the form is submitted.
    //Read image data from slingRequest
    String userImage1 = slingRequest.getParameter("userImage1");
    //Apply base 64 encoding on the data received in slingRequest
    String encodedUserFile = "";
    byte[] userFileBytes = userImage1.getBytes();
    encodedUserFile = Base64.encodeBase64String(userFileBytes);
    These statements are not throwing any error. But, when I try to apply base 64 decoding on the contents available in 'encodedUserFile', its' not the image user uploaded. There seems to be some problem, which I am not able to figure out. Can someone please help me with this?

    Hi,
    You need to use the Sling RequestParameter interface to get an uploaded file.
    See:
    http://sling.apache.org/site/request-parameters.html
    http://sling.apache.org/apidocs/sling6/org/apache/sling/api/request/RequestParameter.html
    Regards,
    Justin

  • How can i retrieve an image from a content Node in repository

    Hi,
    could you tell me how i can retrieve images, which i have stored in content management
    repository content node as primary property?
    i want to display the image in a Jsp, what do i have to include in the jsp page?
    thanx

    Hi,
    You can use javax.swing.ImageIcon like so
    ImageIcon anIcon=new ImageIcon("image.jpg");Hope thats what you are after,
    Cheers
    Jack573

  • How to read data from clusters ( Time Management )

    Hi All,
       How can we read data from cluster tables related to Time Management in different ways?
       Can somebody help me please..
    Thanks,
    Sankar.

    Hi
    Kindly check the following thread:
    Cluster database
    It has a sample code to read from & to store data in a cluster table
    Hope you are looking for cluster tables in HR
    Some useful HR tables:
    HRP1000 - Infotype 1000 DB Table
    HRP1001 - Infotype 1001 DB Table
    HRP1028 - Infotype 1028 DB Table
    Paxxxx - transparent tables for infotypes
    PCL1 - HR Cluster 1
    PCL2 - HR Cluster 2
    PCL3 - HR Cluster 3
    PCL4 - HR Cluster 4
    PCL5 - HR/RP Cluster 5; HR Planning Usage
    PERNR - Standard Selections for HR Master Data Reporting (Structure)
    kindly check the following link for some useful HR tables:
    http://www.atomhr.com/know_preview/SAP_HR_tables.htm
    Hope this helps!
    best regards,
    Thangesh

  • Read images from a jar file?

    Hello, I'm converting a 6i app to 10g. This app does a ton of read_image_file() calls to
    change GIF images on the screen based on user actions. In 6i the images are all stored on the local hard drive. The images are not icons for buttons, but images that appear in different locations on the screen.
    For 10g, is it possible to leave the images in a jar file and effectively read the images from that? Otherwise, I suppose I'm looking at using webutil functionality to download the jar file and unjar it into an images directory for reading from the client?
    Any best-practice scenario for this sort of thing?
    Thanks for any info,
    Gary

    We are migrating from 6i to 10g too. And I try to not use webutil. All my pictures (icons gif files) are in a jar file.
    Just make attention of the size of your pictures. The jar file is loaded when you launch the application (the first time, and after, only if the jar file has changed).

  • Need to read image from scanner

    Hi,
    I wnat to load image from scanner directly into forms. Then save it into table.
    Shahin

    Here we are..
    This is my "bean" for scanning over twain driver or SANE (linux)..
    I have used morena twain drivers (JNI), apache httpclient library for java (i need it for http communication between forms and database) and Itex pdf library for java.
    The bean has three options..
    1. you can select the twain device and start to scan
    2. you can view scanned images
    3. you can generate PDF from scanned images and store it to local disk or database..
    For example how the form look like:
    !http://freeweb.siol.net/peterv6i/scan1.jpg!
    On the first form you can start a new scann or just delete the temporary files in the local folder (user temporary folder).
    After you press the "scann" button the twain dialog apear
    !http://freeweb.siol.net/peterv6i/scan2.jpg!
    The dialog of twain device will startup. Here you can set everythig you can (scann area, colors, dpi ...)
    !http://freeweb.siol.net/peterv6i/scan3.jpg!
    The scanned images are transfered on local disk (temp folder). Every scanned images got timestamp value as name of the image (on the picture this are located in the select list)
    !http://freeweb.siol.net/peterv6i/scan4.jpg!
    If you click on the item the scanned image will aper on the screen
    !http://freeweb.siol.net/peterv6i/scan5.jpg!
    The last screen is for saving / generate a pdf from the array of images or image.
    !http://freeweb.siol.net/peterv6i/scan6.jpg!

Maybe you are looking for

  • How do I install Lion on more than one family computer?

    Q: What is the best way to load Lion on to multiple family computers? We have 2 iMacs, one Mac mini and one Mac Book Pro. I downloaded Lion to the newest iMac but now I need to bring my other machines into line preparing for Mountain Lion.

  • System audit trail for FBL5N and Mass Change use

    Hello, My client carried out the foll actions yesterday. Called TCode FBL5N using a range of customers When the line items were displayed, they selected some of them and then went into Environment - Mass Change - New Values Here they input a new valu

  • ESS in MSS Iview

    Hi all, Is ESS in MSS iview equivalent with related activities iview? I'm trying to make ESS for MY employee as a stand alone area instead of merging it in employee profile general data. But if i preview related activities  in the portal content the

  • Change mech colour

    I have abit of a problem. I'm totally new to AI and need some help. I have a much gradient in a particular colour, but I'd like to change the colour of it. This one I'd like to change to yellow. I have however not idea how to do it. As I said, I'm a

  • When i try to stop iTunes program, it restarts automatically. need to know how to make it stop.

    how do i make the program stop running on desktop? it restarts automatically after i exit.