How to paste an image from the database by creating a new page?

Hai,
i'm trying to paste more than 6 images in two pages...
The condition is that i want to paste only 3 images in a page.
When the first 3 images were pasted... i want a new page to be automatically created and the next or 4th image will be pasted on the
next page...
i have codings for creating a new page and for pasting the image...
But how shall shall i paste the 4th image in the next page...
Can any one plzz explain me...

>
Hi, I'd like to display a dynamic image from the web inside a JLabel or any other swing component it could work in. I've been looking on the Swing tutorials and others forums, all I can have is that a JLabel can load an Icon object, defined by an image URL, but can this URL be like "http://xxxxx/image.jpg" somehow or can it only be a local image URL?>
I do not know why you start talking about an image on the web then go on to show concerns about whether it will work for a 'local' URL.
But perhaps this answer will cover the possibilities.
So long as you can from an URL to the image, and the bytes are available for download (e.g. some web sites wrap a direct call to an image in HTML that embeds the image), the URL based icon constructors will successfully load it.
It does not matter if that URL points to
- a web site,
- a local server ('localhost'),
- an URL representation of a File on the local file system, or
- it is inside a Jar file that is on the application's run-time classpath.
How you go about forming a valid URL to a 'local resources' (or indeed what you regard as local resources) is another matter, depending on the form of the project, and how the resources are stored (see list above).
Probably the main reason that examples use images at a hard coded URL on the net is that it makes an 'image example' self contained. As soon as we compile and run it, we can see the result. I have posted a few examples like that on these forums.
Edit 1:
BTW - Welcome to the Sun forums
Edited by: AndrewThompson64 on Apr 21, 2009 12:15 PM

Similar Messages

  • How to paste pictures, images from the clipboard

    Hey all,
    I've made a java-application and with a click on a button, I jump to a drawprogram.
    When I've finished my picture, copied it to the clipboard(ctrl c), I want to show it in my application.
    How can I do this and in which component must I paste it?
    Thanks

    There isn't a way to do it that is part of Lightroom. There is a plug-in that might help you, though. Check it out here: Locktastic
    It doesn't say if its compatible with LR4, but you can try it to find out.
    Plug-ins aren't usually as efficient as built-in functionality (like PM), but it might be a solution for you.

  • How do i store and fetch image from the Database(Access)

    i am facing one problem in inserting the image into the database.the steps i followed as
    1)i have created one database(access) as "Image" and into that one table as "Image" and field as "image"
    type of the field is ole object.
    2)i have inserted one image into the image field through "database.vi"
    3)now i am trying to get the image from the database by "Fetching Example.vi"
    4)it will succesfully retrieve the image from that field .
    5)but when i close the both programs and reopen those that time i am unable to get retrieve the image.
    Attachments:
    Add_to_Database.vi ‏78 KB
    Fetch_from_database.vi ‏67 KB

    I would like to suggest different approach for saving the images in the database.
    I was working on Medical Imaging Company. The way we save the images in real-time was by writing the name and path of the images to database.
    The images themselves where saved directly to disk.
    I don�t think that access is very good in taking care of GBytes of data.
    It happens some time that the database gets damage. If you have the images separately you can create fix procedure. (We had one).
    Good Lack,
    Amit Shachaf,

  • Can BI Publisher read the images from the Database?

    Hi All,
    Can BI Publisher read the images from the Database?
    if yes how it can be achieved?
    Thanks
    Aravind

    Hi,
    There is an example in oracle db. Use the schema PM (Print Media).
    Select the corresponding table that contains the column AD_PHOTO.
    In your RTF template simply to print the image stored in the db use:
    <fo:instream-foreign-object content-type="image/jpg"> <xsl:value-of select="AD_PHOTO"/>
    </fo:instream-foreign-object>
    RUn the RTF template and it should show you all.
    Cheers
    Jorge
    p.s. If this answers your question then please grant the points and close the thread

  • I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty  box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable?

    I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty  box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable? Any ideas

    Try dragging the image to the desktop, then drag the image to the slide you want it on

  • How to search a string from the database?

    how to search a string from the database? starting with some character

    If you're trying to do this in a SELECT, you can use the LIKE verb in your WHERE clause.
    Here's an Example
      SELECT obj_name FROM tadir
        INTO prog
        WHERE pgmid = 'R3TR'
          AND object = 'PROG'
          AND obj_name LIKE 'Z%'.
    In this case it will select every row that obj_name starts with Z. 
    If you wanted to find every row that the field obj_name contains say... 'WIN'  you use LIKE '%WIN%'.
    Edited by: Paul Chapman on Apr 22, 2008 12:32 PM

  • How to select alternate entries from the database table

    Hi Experts,
    can u help me, how to select alternate entries from the database table.
    Thanks

    As there is no concept of sequence (unless there is a field specifically included for the purpose), there is no meaning to "alternate" records.
    What table do you have in mind, what data does it hold, and why do you want alternate records?
    matt

  • How do you copy images from the internet and paste them on Microsoft Word

    I'm trying to copy images from the internet and trying to paste them on to Microsoft Word and Powerpoint for an assignment but it's not working. I tried to use copy and paste and then paste special but nothing is working. Saving the image onto documents and trying to open them on Microsoft Word still doesn't work.
    PLEASE HELP!!!
    Thank you

    Hi Lily, and welcome to Apple Discussions.
    A screenshot can capture almost anything you're viewing. Hold the command and shift keys down, then press the 4 key and release all keys. Hold down the mouse button and drag the cursor to the size/area of the image you want to capture. Release the mouse button and you've captured the image. Remember that it is the individual's responsibility to respect copyright laws.

  • How I can transfer data from the database into a variable (or array)?

    I made my application according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed one function to query the database - add the two parameters and get the value of the table in String format. A test operation shows that all is ok. If I want to display this value in the text area, I simply drag and drop service to this element in the design mode
    (<s:TextArea x="153" y="435" id="nameText" text="{getDataMeanResult.lastResult[0].name}"  width="296" height="89"  />).
    It also works fine, just a warning and encouraged to use ArrayCollection.getItemAt().
    Now I want to send the value to a variable or array, but in both cases I get an error: TypeError: Error #1010: A term is undefined and has no properties..
    How can I pass a value from the database into a variable? Thank you.
    public var nameTemp:String;
    getDataMeanResult.token = authors.getDataMean(arrayOfNumber[0], dir_id);
    nameTemp = getDataMeanResult.lastResult[0].name;
    public var nameArray:Array = new Array();
    for (var i:uint=o; i<3; i++){
    getDataMeanResult.token = authors.getDataMean(arrayOfNumber[i], dir_id);
    nameArray[i] = getDataMeanResult.lastResult[0].name;
    And how i can use syntax highlighting in this forum?

    Astraport2012 wrote:
    I have to go back to the discussion. The above example works fine when i want to get a single value of the database. But i need to pass an array and get an array, because i want to get at once all the values for all pictures tooltips. I rewrote the proposed Matt PHP-script and it works. However, i can not display the resulting array.
    yep, it won't work for Arrays, you'll have to do something slightly more intelligent for them.
    easiest way would be to get your PHP to generate XML, then read that into something like an ArrayList on your HTTPService result event (depends what you're doing with it).
    for example, you could have the PHP generate XML such as:
    <pictures>
         <location>test1.png</location>
         <location>test2.png</location>
         <location>test3.png</location>
         <location>test4.png</location>
         <location>test5.png</location>
         <location>test6.png</location>
    </pictures>
    then you'll read that in as the ResultEvent, and perform something like this on it
    private var tempAC:ArrayList = new ArrayList
    protected function getStuff_resultHandler(event:ResultEvent):void
        for each(var item:Object in event.result.pictures)
           var temp:String = (item.@location).toString();
           tempAC.addItem(temp);
    in my example on cookies
    http://www.mattlefevre.com/viewExample.php?tut=flash4PHP&proj=Using%20Cookies
    you'll see an example of how to format an XML structure containing multiple values:
    if($_COOKIE["firstName"])
            print "<stored>true</stored>";
            print "<userInfo>
                    <firstName>".$_COOKIE["firstName"]."</firstName>
                    <lastName>".$_COOKIE["lastName"]."</lastName>
                    <userAge>".$_COOKIE["userAge"]."</userAge>
                    <gender>".$_COOKIE["gender"]."</gender>
                   </userInfo>";
        else
            print "<stored>false</stored>";
    which i handle like so
    if(event.result.stored == true)
                        entryPanel.title = "Welcome back " + event.result.userInfo.firstName + " " + event.result.userInfo.lastName;
                        firstName.text = event.result.userInfo.firstName;
                        lastName.text = event.result.userInfo.lastName;
                        userAge.value = event.result.userInfo.userAge;
                        userGender.selectedIndex = event.result.userInfo.gender;
    depends on what type of Array you're after
    from the sounds of it (with the mention of picture tooltips) you're trying to create a gallery with an image, and a tooltip.
    so i'd probably adopt something like
    <picture>
         <location>example1.png</location>
         <tooltip>tooltip for picture #1</tooltip>
    </picture>
    <picture>
         <location>example2.png</location>
         <tooltip>tooltip for picture #2</tooltip>
    </picture>
    <picture>
         <location>example3.png</location>
         <tooltip>tooltip for picture #3</tooltip>
    </picture>
    etc...
    or
    <picture location="example1.png" tooltip="tooltip for picture #1"/>
    <picture location="example2.png" tooltip="tooltip for picture #2"/>
    <picture location="example3.png" tooltip="tooltip for picture #3"/>
    etc...

  • Display Image from the database but prevent it from refreshing on every pages

    Hi there,
    I can see there are many discussions around this but my query is slightly different. I'm writing this on behalf of one of my developers. (sorry for my ignorance on techie stuff.. :-))
    A logo is being displayed on a few pages, which is called from the database. However, the problem is that  - this logo refreshes every time when you traverse to each page causing a performance issue or sometimes slow loading of the image.
    My question is - how do we stop it from loading on each page from the database?.  I would rather load once when the main page loads initially and then maintain this on other pages too.
    We can keep this logo on a file system (FS)  and display it via CSS/HTML/frame but since we want to keep it flexible/dynamic where a user can upload a new one whenever it changes and hence DB seems to be the suitable option (in my opinion).
    Can someone please help?
    If you need any further info around the coding how it is being done at present, pls let me know.
    Thank you

    read this http://docs.oracle.com/cd/B28359_01/appdev.111/b28393/adlob_tables.htm#g1017777
    you can cache lobs in the database too
    you can also upload the pic in your file system using utl_file package and then put the image in the working directory mentioned in i.war
    you can then reference the image and it will not be stored in the database and will be cached
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog

  • How can i retrive image from sql database

    hi
    i have a problem.i want to retrive image stored in a table in binary form.how can i retrive the image from the table and show it in my page how can i do this? i have a sql database.plz help me out....

    hi
    my java file has compiled now i have made these changes plz see
         public InputStream getBinaryStream(String colname) throws Exception
              return rs.getBinaryStream(colname);
         public boolean GetSig() throws Exception
              boolean b=false;
              try
                   ps=myConn.prepareStatement("Select Sign from Signatures where Accode='1201780000000083' ");               
                   rs=ps.executeQuery();
                   b=true;
              catch(Exception e)
                   System.out.println("This is the problem"+e);
              return b;
    //          now how can i get it in my jsp page and disply the image in my page i am writing this code in the jsp file
    SIGN.makeConnection();
                                                      if(SIGN.GetSig())
                                                                while(SIGN.getNext())
                                                                               Stream Signatures=SIGN.getBinaryStream("Sign");
                                                                               System.out.println("Signatures is"+Signatures);
    %>
    <%=Signatures%>
    <%                                                                                                                                                                          }
                                                 SIGN.takeDown();
    %>
    this error is coming in the browser
    org.apache.jasper.JasperException: Unable to compile class for JSPD:\jakarta-tomcat-3.2.2\work\localhost_8080%2Fbackoffice\_0002fcdsl_0002fsignatures_0002ejspsignatures_jsp_0.java:96: Class cdsl.Stream not found.
                                                                               Stream Signatures=SIGN.getBinaryStream("Sign");
    plz see...i am waiting for reply

  • Retrieving an image from the database and printing it

    Can anybody help please
    i dont know how to retreive an image from a image database and send to the printer.
    The image is stored in the database in cells ( not as a path to a file).

    Hi,
    I want to print a gif image.
    How can i get this done?
    I am trying graphicsobject.drawImage(....),it prints the image only once.If i try second time the image wont be printed,where as if i switch off and then switch on the printer and try again ,then it will print.I am facing the same problem with a HP Laser Jet as well as a thermal Printer.Actually i want to print a bar code.
    some body pls help me to sort this issue.
    Regards,
    ciju
    [email protected]

  • How to view tagged images from the camera in Lightroom?

    How do I see a tagged image from the camera (tagged using the lock button, to remind me of a image I want to find quickly) once imported into Lightroom? This is possible to do in Photomechanic, as I can see all of the tagged images from the camera once opened in Photomechanic. Yet so far I have not found a way to allow me to do this in Lightroom so far. Any solutions welcome please.

    There isn't a way to do it that is part of Lightroom. There is a plug-in that might help you, though. Check it out here: Locktastic
    It doesn't say if its compatible with LR4, but you can try it to find out.
    Plug-ins aren't usually as efficient as built-in functionality (like PM), but it might be a solution for you.

  • How do I retrieve images from the iPad simulator's Photo app?

    I created some images with my app running in the ipad simulator and redorded them in the photos app.
    How do I retrieve these images from the iPad simulator to my mac?
    Thanks in advance! =]

    Hey ArmidaKers,
    Thanks for using Apple Support Communities.
    This article explains how to restore a backup from iCloud.
    iCloud: Restore your iOS device from iCloud
    https://support.apple.com/kb/ph12521
    Have a nice day,
    Mario

  • Loading an Image from the database and display it on browser

    I do not know if this is even possible.
    At the moment, to load an image inside an Html page you need to use the <img src=""> tag. and in the src you put the path of the image. Now I would like to save an image inside the database.
    An option to still display the image on the browser would be that my service object, would load the object from the database (saved as blob) then save it somewhere on the Server, and the still use the <img> tag to load the image from that location.
    However I was wondering wheather there is another way to do it without saving this image on the server. that is loading the bytes from the database (or a location on the server) and provided these bytes to the jsp page to display the image.
    Is this possible? or?
    regards,
    sim085

    hmm ... ok .. that sounds good .. but that means that
    a servlet must exsist at all time to display the
    required image.Servlets are usually instantiated by the servlet container upon an incoming request.

Maybe you are looking for

  • Bookmark from Forms 11g

    Hello Seniors, I want to call microsoft word with all bookmark from forms 10g. (we have Visual basic application with word template ,all word template have bookmark and we want to call all bookmark directly from forms 10g). I am able to call microsof

  • No update can improve speed on Quad 6600?..

    Have I, as an owner of a G5 Quad with a NVidia 6600-video card, understood this correctly: 1. Aperture relies heavily on videocard performance, as opposed to Light Room, Photoshop, Canon DPP etc. 2. The NVidia 6600 is not sufficent for Aperture to ru

  • BAPI to post service entry acceptance

    Hi, Am looking for a BAPI which can be used to post an acceptance for an existing service entry.  Found that BAPI_ENTRYSHEET_RELEASE only works if the service entry is subject for release and does not work for this scenario.  Could not use BDC as wou

  • ITunes Background is PINK???

    I am running iTunes version 8.01.11 and since I purchased and registered my new iPod 80GB Classic 3 months ago the background of iTunes is either permanently bright pink (magenta) or an extremely dark grey colour! I have run every diagnostic that I c

  • I have a Mac OS X 10.7 Lion and have lost the sound in I Tunes. How to fix?

    I have lost the sound in I Tunes. I have a Mac OS X 10.7 Lion. All other sound is fine i just cannot get any sound from my music library.  How to fix? Terry