How can I read the image from database into form

hi everyone
if I have table like this
create table test
(id number(10),
pic long raw);
in this table record
in form If I have block non database
how can i read the image into non database item
I try with this code but no good
select pic into :photo from test where id=5;
photo its non database item kind image
how can i invoke image into item
thanks alooooooot

Hello,
You can't select image with select query. You need to create another database block from test table which has item binds with database pic column. Now in where condition in test block's property you have to write id=5. Change test block's properties UPDATE ALLOWED, INSERT ALLOWED, DELETE ALLOWED to NO. Only Query allowed property set to YES.
Now in your particular trigger write the code
GO_BLOCK('test');
Execute_Query;
please mark if it help you or correct
Regards,
Danish

Similar Messages

  • In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone.

    In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone which are downloaded and not saved,but they remain in cache.
    Even in some apps i have data which i want to remove,but cant find a way to remove them and they are in my cache eating up my memory.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • How can i  read a image from a oracle DB?

    How can i read a image from a oracle DB?
    Because in the DB a have a field that is a picture that i would like to show in a jpanel.....but this field is in oracle DB only has strange caracters ..... so Do i have to read this field like a input stream?....
    Could some body help me please?
    Thanks...
    Mary

    Well I suppose the picture is stored in a blob. If that is so this is some code I have used to load a picture to a panel. Hope you find it usefull.
    PreparedStatement retreive = db.createPreparedStatement("select bl from test where ln = ?");
    Blob bl;
    try{
    retreive.setBigDecimal(1, new BigDecimal(jTFln.getText()));
    ResultSet rs = retreive.executeQuery();
    if (!rs.next())
    System.out.println("Empty Result Set");
    bl = rs.getBlob("bl");
    if (bl == null) {
    System.out.println("Null Blob");
    return;
    InputStream is = bl.getBinaryStream();
    int imageLength = (int) bl.length();
    System.out.println(imageLength);
    System.out.println(bl.length());
    byte[] imageData = new byte [imageLength];
    is.read(imageData, 0, imageLength);
    image1 = new ImageIcon(imageData);
    photo = new JPanel() {
    public void paint(Graphics g){
    g.setColor(Color.lightGray);
    g.drawImage(image1.getImage(), 0, 0, this);
    } catch (BadLocationException ble){
    ble.printStackTrace();
    } catch (SQLException sqle){
    sqle.printStackTrace();
    } catch (IOException ioe){
    ioe.printStackTrace();
    }

  • How can i get the data from database & add them as a link

    Hi,
    how can i get a data from a database(DB2) and that data will be having a file so i should make them as a link.i tried it in jsp .
    <%
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
    Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");     
    response.setContentType("text/html");
    Connection conn = null;
    conn = DriverManager.getConnection("jdbc:db2:spintran");
    Statement stmt = conn.createStatement();
    stmt.executeQuery("set current schema tut");
    ResultSet rs = stmt.executeQuery("select * from tutorial");     
    %>
    Type Of the Category : &nbsp&nbsp&nbsp
    <%
         while (rs.next())
         String desc = rs.getString(1);     
         out.println(desc);
    %>
         <A HREF = "<%=desc%>"><%=desc%> </A>
         <%
         %>
    but it is not working.how can i link.
    thank you.

    what is desc? is it the file name ? whats the data type of desc in db? INFILE?
    if desc is just the name of the file, then make sure that such a file exists in the proper folder.only then the link works..
    that is, if desc is 'a.jpg' then a.jpg should be existing in the same folder as your html is.

  • How can i get the images from a picture ring into a cell in Excel?

    Hi
    I need to get the chosen image from a picture ring into a cell in a Excel worksheet. If i use an invoke node i only get to write a picture from file. How can i get the picture directly from the picture ring into Excel?
    Kenneth

    No, there is no simple way of doing it directly. You need some clipboard manipulation which means you need to write some codes in excel as well. Importing the image through a file is much easier.
    -Joe

  • How can i read a image from clipboard

    Hi all,
     Can you anyone help me to figure out this problem,actually i have an VI that capture screen image(similiar to print screen option in windows) & save it in a file.and now the thing is,its working in code,once if i converted that to EXE it is not reading that image from the clipboard .I have attached that VI along with this thread please check it.
    Attachments:
    Clipboard.vi ‏20 KB

    Hey,
    It seems that the Get Image from Clipboard method is not available for executables.
    The following thread gives a working example with a CIN -> http://forums.ni.com/ni/board/message?board.id=170&message.id=35987&requireLogin=False
    Christian

  • How do I read the images I bundled into the jar file?

    I just wrote an applet that uses
         Toolkit tk = Toolkit.getDefaultToolkit();
         tk.getImage("blah.gif");to load a bunch of image files. The class file and gif images were bundled into a jar file to minimize the number of connections the browser has to make to the server.
    The applet works fine in appletviewer but trips a java.security.AccessControlException: access denied (java.io.FilePermission select.gif read) when run in a browser. I know you normally use Applet.getImage(URL) to load images but wont that circumvent the JAR file and make a seperate connection to the server for each image? That would defeat the purpose of using a JAR file.
    How do I access the image files I bundled into the JAR file?

    From your Applet class, write the following:
    URL imgUrl = getClass().getResource("blah.gif");
    Image img = getImage(imgUrl);The returned URL will be from the Applet class ClassLoader, which will look into the specified archive (jar) file.

  • HT4946 From the backup folder how can I move the images from there?

    I just backed up my iphone and I went into the back up folder but you cant save the images, how can I do this?

    You would need 3rd party software to extract photos from a backup.  Instead of doing that, just import them from the camera roll using your usb cable: http://support.apple.com/kb/HT4083.

  • How can I remove the image from an OCR/Image PDF?

    I have some scanned PDFs which have perfect rendering via OCR.  Every word is in the proper place. To make the file size smaller and the text clearer, I would like to remove or detach the image overlay.  How can this be done?  The files are over 90% images in size.
    This is with Acrobat Pro 9 on OS X Snow Leopard, but I assume the technique is independent.
    Thanks for your help.

    No.

  • How can I read the images' path in the stored catalog?

    I'm really new to pluginu development and LR. I have a problem finding the right methods to execute my intentions.
    I'd like to get the real path(s) of the pictures in the catalog, so that my external plugin can use them for further processing.
    I know Lightroom stores the catalog in C:\Users\[user name]\Pictures\Lightroom\Lightroom 5 Catalog.lrcat. But I want to get the actual path to each .jpg inside that catalog and write that path into a simple file (e.g. .txt) from which my plugin can read the path and use the images chosen by the user in LR.
    Then my plugin stores the processed images with tags into a file which should be read by LR. I don't know if it's so easy. Maybe it must create an extra collection for the catalog?
    The thing is that the Lightroom 5 manual isn't really helpful. And it would be great if someone could help.

    Thank you. I already figured it out by searching the whole internet
    But there's a thing bugging me. I want to delete the log file in which all paths are stored because everytime I run the plugin I get duplicates of the paths.
    So I thought of removing the existing log file before every time I use the plugin.
    I tried LrTasks.execute("del %HOMEPATH%\\Documents\\photosPath.log"). But nothing happens. When I use my personal path then it works pretty well. But I want it to work on any computer....

  • How can I read the voltage from a serial port

    I am fairly new to LabView and I am having trouble figuring out how to read the DC voltage coming out of an RF Power Supply through a serial port so that I can monitor the voltage every few seconds. In order to do this do I need to purchase a DAQ card or anything like that?

    You would not need a DAQ card to read data over the serial port. You would, however, need a serial port. That may sound sarcastic, but it's not, since many manufacturers are ditching serial ports on computers. If you don't have a serial port then you would need to get something like a USB<->serial adapter or a serial port card that you plug into an expansion slot in your computer.
    Assuming you've got that then you need to find the command set for the RF Power Supply, and write drivers for it so you can send the command to read the voltage, and then read the resposen. I would suggest looking in the Instrument Driver Network to see if a driver for your supply has already been written. 

  • How can i acces the images from jar to with in jar

    I want to now make a executable jar file which contain all class files and one jar file (which contain all images).
    before jar i use
    icon=new ImageIcon(getClass().getResource("image.gif"));
    now what can i do and it is possible that no change in the path of image icon.

    A jar inside a jar wouldn't be a good idea I don't think- you'd end up having to code around some things to get at the internal jar instead of being able to use code like "getResource()" like you posted.
    Consider an ANT task that will handle building your jar for you, if this is a logistics issue. The task can unzip the image jar and shove it in with the application jar.

  • How can i change the image from a comand button

    i thought it works whit the folowing coden
    <h:commandButton id="but1"
    image="image1.gif"
    onmouseover="document.getElementById(\"but1\").image=\"image2.gif\""/>
    but is dont work
    is this the righet way, or i'm complite wrong
    can somebody help

    Use the folowing:onmouseover="this.src='images2.gif'"Good luck with the relative path to the image :-)

  • How can i read the data from attached file?

    using javamail i receiving a mail with attachment
    but unable to read the content of the file
    Plz help me out
    thanks in advance

    The answer is in the JavaMail FAQ.

  • How can i Read the Data from such Excel files?

    Dear All,
            Here I am attaching an excel file in which all the datat cells have more than one data, can anybody tell me, how to read from such kind of excel files?
    Thanks in Advance & Happy New Year,
    Rujuta

    Greetings Ruju,
    Here is what I do to read such a file:
    I first save the Excel file (xls) as CSV file (which is easier to handle: Comma Seperated Values) .. Open the file using Excel and save it CSV.
    Then using the code attached I get all these values in a string array.
    Hope this helps
    Ayman Mohammad Metwally
    Automation Engineer
    Egypt - Cairo
    Attachments:
    CSV2ARRAY.vi ‏29 KB

Maybe you are looking for

  • Error while posting asset aquisition

    Hi to All, I am getting following error while posting aquisition entry. "Company code 211 manages parallel currencies in Asset Accounting. For each area that posts automatically online to FI, you have to define one dependent depreciation area that ad

  • How do I sync iCloud calendar with Googlemail account (calendar) on Mac

    I keep getting error notifications coming up on my Calendar in the Mac, its related to my Googlemail account, I basically want my google calender to sync with the iCloud so when I put events onto my iCloud it will automatically link with Google Calen

  • Is it possible to specify exactly coordonates where to display a field

    Hello all, We use BIP 11.1.1.6 (build 5.12.110) In a rtf template, we've got for-each loop. We don't know exactly how many rows to display. After a for-each group, I need to write a sentence at 15cm from bottom My constraint: For other reasons, I can

  • Bapi or FM for J1ID tcode

    Hai friends,        Is there any BAPI or FM for tcode J1ID       thanks in advance, Regards Janani.S

  • Time stamps in Java

    Do we have some functions which I can use to implement timestamps in java ?