Image Gallery from images in database.

Hi,
I am developing image gallery from images stored in oracle database.
I am using JQuery ColorBox plugin (http://www.jacklmoore.com/colorbox/example1/) and I need to specify image in href for plugin.
My JSP page (http://localhost:8080/gallery/show_image.jsp?id=1) fetch image from database and show.
I can see image in browser when I run url http://localhost:8080/gallery/show_image.jsp?id=1.
But following not working when JSP page specify in href.
<h2>No Transition + fixed width and height (75% of screen size)</h2>
class="group3" href="http://localhost:8080/gallery/show_image.jsp?id=1">Grouped Photo 1</ a>
class="group3" href="http://localhost:8080/gallery/show_image.jsp?id=2">Grouped Photo 2</ a>
class="group3" href="http://localhost:8080/gallery/show_image.jsp?id=3">Grouped Photo 3</ a>
class="group3" href="http://localhost:8080/gallery/show_image.jsp?id=4">Grouped Photo 1</ a>
class="group3" href="http://localhost:8080/gallery/show_image.jsp?id=5">Grouped Photo 2</ a>
class="group3" href="http://localhost:8080/gallery/show_image.jsp?id=6">Grouped Photo 3</ a>
class="group3" href="http://localhost:8080/gallery/show_image.jsp?id=7">Grouped Photo 3</ a>
Any solution?
- Thanks
Zohaib.
Edited by: zohaib82 on Oct 30, 2012 2:46 AM
Edited by: zohaib82 on Oct 30, 2012 2:46 AM

Hard to say when you don't provide anything actually useful other than "its not working". I can only guess that your JSP needs to set a proper content-type. I would investigate using an image servlet in stead of your JSP:
http://balusc.blogspot.com/2007/04/imageservlet.html

Similar Messages

  • Image gallery From an XML file...

    Will flash reconize an XML file that is parameter based (Call
    Functions) into a database to create a type of listing service to
    show homes for sale?
    My client is wanting a basic image gallery for now that will
    later become a a fullfledged interactive document later down the
    road for showing options in the homes they build. First, they have
    Spec homes that they want to showcase (simply put these are homes
    they already built and are sitting on the property that are move in
    ready).
    Step 1:
    The end user would visit an HTML (CFM) document where they
    would choose there search criteria.
    Step 2:
    then another page would show with an exterior photo of the
    home, and a breif description where the user would select the home
    they want to view more infomation.
    Step 3:
    This then would load the image viewer which is the flash
    file, that would call to the XML file to load the parameters to
    which home model to show.
    The home will have a unique home model name in which the
    photos are labeled accordingly the same way...
    Exterior = ModelHomeName.jpg
    Image 1 = ModelHomeName_1.jpg
    Image 2 = ModelHomeName_2.jpg
    Image 3 = ModelHomeName_3.jpg
    Image 4 = ModelHomeName_4.jpg
    Image 5 = ModelHomeName_5.jpg
    etc...
    Is there a certain way flash has to read the XML file with
    parameters to translate it? Or what is the quickest possible way?
    Thanks,
    Eric

    Any luck anyone?

  • Image gallery from two tables

    I've created an library that stores image names by ID and an image gallery table that stores the values of up to 15 images by image ID. The data looks like this:
    ImageTable (id | name)
    1 | one.jpg
    2 | two.jpg
    3 | three.jpg
    4 | four.jpg
    5 | five.jpg
    6 | six.jpg
    Gallery Table (id | slide1 | slide2 imageID ... and so on to slide15)
    1 | 1 | 3 | 4 | null | null .... and so on to 15
    1 | 2 | 5 | 6 | null | null .... and so on to 15
    In this example the slide show 1(id1) would show one.jpg, three.jpg, and four.jpg
    Slide show 2 would show two.jpg, five.jpg, and six.jpg.
    If I pass a recordID (gallery.php?recordID=1) to the page I'm getting a perfect gallery recordset. Just one column comes in. I can't seem to figure out how to match that table row to the image table.
    I think the problem is in the Query. I've tried dozens of loop and join queries but I can't seem to get anything to work I want to build a list of image names like this (html omitted):
    if ($row_imgGalery['slide1'] == $row_imageTable['id']){
       echo $row_imageTable['name']; }
    if ($row_imgGalery['slide2'] == $row_imageTable['id']){
       echo $row_imageTable['name']; }
    if ($row_imgGalery['slide3'] == $row_imageTable['id']){
       echo $row_imageTable['name']; }
    // and so on
    The closest I have come is to get the first row to return the right value. From there on I get either nothing or the images in order. I'm probably going about this all wrong. Any ideas would be appreciated.

    I can see that I didn't explain myself very well. My Gallery table must have a unique ID for every gallery. 1 cant assign gallery 1 image 1 and then  image 3 later one because the Gallery table populates the gallery page. I need a slot for each image just the same as a contact table needs a slot for first name, last name, address, etc.... The image slots are no different that that except that they all refer to image id's. If there's a way for a single record to call up 15 variables without having 15 columns I'd be interested in seeing it.
    My image table will shortly contain about 2000 images. In a year it could contain 10,000. Each row in the image table contains the image ID, and a bunch of other data including descriptions, user ID for the person submitting the image and other things including metadata for the images. I've got the image upload and image data part of the system working perfectly. It's searchable by image type, user, date, photographer. It's beautiful. I can find any image in the library in seconds.
    I've created a form to populate the Gallery table that uses a scrollable, searchable image gallery. You can select up to 15 images for each gallery. All that is stored is the gallery id (primary key) date (date the gallery was created) user id (id of the person creating the gallery) Gallery Name (self explanatory) Gallery Description (a descriptive paragraph for the gallery) and slots for up to 15 images. At the end of the table is an approval field. Set approval to no and the gallery pages no longer appear in the public menu structure but administrators can view and edit the page. I've used this technique for hundreds of different data sets from contact managers to blogs.
    A simple Dreamweaver Master Detail page sets calls up the Gallery page by galleryID when a user clicks on a link. Originally I entered image names in the 15 available slots for images just to get things started. When using image names the gallery page works perfectly but there's no way to link to the other data.
    The gallery page displays all images in a 3 column by 5 row layout. A slide show of the images can be played full screen. Having less than 15 images in a gallery is not a problem because if the column contains a null nothing is displayed on the page.
    I can't be inserting Gallery ID's into the image records because one image may be used in multiple galleries. I don't want to insert all of the data from the Image table into the Gallery page because that's a bunch of redundant data. All that needs to happen is that the gallery slide 1 column needs to link to the same image id in the image table so I can retrieve and display the rest of the data. The only way that I can seem to make this work is to write up fifteen separate queries. There's got to be a simpler way to have gallery slide1 point to an image id and call up the fields and so on.
    Because of a deadline I wrote 15 separate queries and the system works just fine. There's way more code than is necessary, but it works just fine. Every possible available  image slot needed it's own query. If someone has an idea of how to simplify this please let me know. I'm going to go and soak my hands now. I've been typing code for 3 hours straight.
    Here's my code that's working: (the html and other fields are omitted for clarity)
    <li>
    <?php
    $slide1 = $row_pageRS['img1ID'];
    $img1 = mysql_query("select * FROM imageLog WHERE id = $slide1");
    if (mysql_num_rows($img1) > 0)
    { while ($row = mysql_fetch_assoc($img1))
        echo $row['imageName']; }
    ?>
    </li>
    <li>
    <?php
    $slide2 = $row_pageRS['img2ID'];
    $img2 = mysql_query("select * FROM imageLog WHERE id = $slide2");
    if (mysql_num_rows($img2) > 0)
    { while ($row = mysql_fetch_assoc($img1))
        echo $row['imageName']; }
    ?>
    </li>
    And so on until I get to slide 15.

  • How to check image GPS data and get image file from image field

    Hello,
    I have some trouble and want to fix this problem.
    1. I want to validate image file before its attached in image field about the image file have a GPS data or not. Have any way that can be check about image has contained a GPS data?
    2. After validate image and PDF form is upload to the server. I want to get image file that embed in image field, because I have to extract image from PDF form and store this image in project image folder. If this topic can be fix by code script please give me some example code.
    Thakyou for every comment and suggestion
    Best Regards,
    Mai

    Hi Naill,
    First I have to say thankyou for your answer.
    About my (1) question, My image fields have set to be a embedded data and I try to test many example script of image fields.I can get image content type, image size. But that not work when I used ImageField1.desc.embeddedHref.value. It's response as "Unknown Embedded URI". Therefore, image field is and embedded data. How can I access filename?
    (2) In that forum. As I see, his problem is about how to automate change image field with href image file. But I want to extract an exist embedded image in PDF form to normal image file with original metada (such as extract image filed to .JPEG with GPS data. Same as before attached in PDF form.). There has any concept or solution in this problem?
    Best Regards,
    Mai

  • Image gallery DELETE IMAGE function broken

    I followed the ADDT Basic Image gallery tutorial and everything was working flawlessly until I got to the delete image section. I added the 'delete image' information on the list_img.php page, and that is all linked correctly.
    on the delete_img.php page I followed the tutorial to the letter, an when I click the delete link on the list_img.php page it gives me this error (with the correct url listed):
    Fatal error: Cannot instantiate non-existent class: tng_dispatcher in /home/myhosting/public_html/MyAccount/gallery/delete_img.php on line 10
    The code on that line of delete_img.php is:
    // Make a transaction dispatcher instance
    $tNGs = new tNG_dispatcher("../../");
    I even re-uploaded the entire /includes/ folder to no avail. Help please!

    Sorry about that.  If you can check my history, I normally always thank people who have helped, and I was intending to go back on the last few to sort them out.  Just got my first job so it has been rather hectic and been stressing out to much.  Also, I do things slightly different to other people.  If I receive a correct answer (which I normally do thank), I tend not to actually reply but to thank instead, mainly because if I reply I am pushing unanswered questions further down the list and eventually out of view.  I will go back and sort out the thanks I owe.
    In terms of asking the mods, other forums I visit are normally moderated by the community, so I assumed that someone like yourself might be the moderator.
    I tottally understand what you are saying, and as I say, I am normally on top of this.  Will go back now and sort out the thanks.
    Sorry for the delay.
    Nick

  • How can I map an image (JPEG) from the SQL database image string

    I saved the image into SQL database, see attachment (SaveImage2SQLDB.rar), while I have some trouble to retrieve the image. I also attached the vi which I used to convert the string to image. The string already has a value I obtained from the database. Can anyone tell me the reason why it didn't work.
    Thanks in advance.
    Jane
    LabVIEW 2012, VDM 2012
    Attachments:
    convertstringtoimage.vi ‏78 KB
    SaveImage2SQLDB.zip ‏27 KB

    Hi Jane,
    What exactly isn't happening correctly?  The conversion or the retrieval? 
    This discussion forum may be of some use: http://forums.ni.com/t5/LabVIEW/image-from-compressed-string/m-p/2207894
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • Read image data from SQL Server database and display it in a JSP web page

    Hi experts,
    I am doing a project in which I have to upload images to the database via JSP/servlets. I am able to do this.
    Now I want users to view and dowload these images which are stored in the database.
    Please help me of how can I read the images from the database and display it on jsp webpage and also can be downloaded by users via jsp pages on client side.
    Please help!

    Hi you may go through the below post to find what could be a better way to do that.
    http://forum.java.sun.com/thread.jspa?threadID=5163829
    REGARDS,
    RaHuL

  • PHP Image Gallery with Images placed every other paragraph

    Currently I have multiple images that where uploaded to the details page of Post 1. Every other paragraph I have an image displayed. With say 5 images.
    What I would like is that the user can click on the image and open up a gallery (on the same page, like Lightbox Gallery) and view through the other 4 images related to Post 1, as these images may not be full resolution on the details page.
    If I understand correctly, Lightbox makes a small thumbnail preview of the images, which I don't want, and lists them like a Gallery (Next to each other). Can anyone direct me on the best way to accomplish this?
    Thanks,
    Riley

    Sorry for the confusion, I didn't mean lightbox actually created the thumbnails, but it produces them similar to the link you provided which I don't want. My image uploader does create thumbnail images, but only one per new post.
    My format is similar to this:
    POST 1
    Text Paragraph1 (Image1 )
    Text Paragraph1 (               )
    Text Paragraph1 (               )
    Text Paragraph1 (               )
    (Image2) Text Paragraph2
    (               ) Text Paragraph2
    (               ) Text Paragraph2
    (               ) Text Paragraph2
    Now what I would like is that they can click on the picture and it opens up the image at say 600px X 600px resolution, with the next/prev buttons so they can browse through only the picutres on this page.
    I have been trying to find an example but seems that some take you to a different page of just the image you clicked on, or a new page with the gallery.
    I like how the lightbox gallery opens up on the same page, that way you close out of it and can continue reading. But I want to be able to have the images placed in different positions on the page, and not in a row like with a Gallery.
    I hope I help clarified what I am trying to do.

  • E65 image gallery

    Hi all.
    I have an issue regarding E65's image gallery and the way it works. Hopefully someone can help me out. Among other things I use my phone as my quick backup device and being a web developer you can imagine the number of gifs that are involved. All these are neatly packed in their folders and should be of no concern to the image gallery, but thats not the case. The gallery, thinking it's doing me a favor, wants to show me all images on all folders, both phone and card memory. Never mind that they're tucked away, some even 10 levels into project folders... they are all scanned.
    Now this wouldn't be a problem if the file manager had an option to view images in such a way that I could open one image and click left/right for next previous image in that folder. Unfortunately that does not work and I am left looking at the photos I've taken opening every file one by one.
    I had hoped that I found a solution when I discovered image gallery folders, but I cant for the life of me figure out where they're located. Even when I explicitly put an image in a different folder using the organize option it still remains right where it was saved. Why is that? Better still where are those special gallery folders saved? Or are they best left inaccessable to the end user.
    So to wrap this up, can anyone suggest anything ( besides hidding all my backed up images on a file system level ) that would prevent the image gallery from scanning them? Can it be made so that the "scan everything" is off? Any software update fixes this maybe? Any 3rd party image gallery which is not as smart?
    Many thanks for your help.
    Kind regard,
    Vince

    Regardless of E or N series this is a Symbian or operating system issue in that all pics, regardles of physical location are shown in the gallery.
    There are some ways of hiding or locking pics and I recommend searches on this forum to find those that are most suited to your needs

  • Unable to save images from image preview or photoshop to network drive

    Hello,
    I have an issue when viewing an image file from image preview or photoshop and saving it to a mapped network drive. When trying to save it to the drive, I am met with the error "You don't have sufficient access privileges". However, I am able to save the image to my desktop THEN place it in my mapped network drive.
    This has left me pretty puzzled. Has anyone else run into this issue? It was working fine a couple of months ago, and I thought it might correct itself. The issue remains at large. I am not sure why it would stop working, but still works if I click and drag files to it.

    Your assumption is correct.
    The workflow is:
    Select Image in Aperture for external editing.
    Send Image to external editor via one version of Aperture's "Edit with NameOfExternalEditor" command.
    Aperture creates a new Original based on the selected Image and opens specified external editor with the Original loaded.
    You make changes to this file in the external editor.
    You close this file and select "Save Changes" (or similar) when prompted.
    You return to Aperture and find an Image based on the newly-created Original selected.  This Image shows the changes you made in the external editor.  It is badged with Aperture "Edited externally" badge.
    Let's check a couple of things:
    - Are you showing all Images in the Aperture Browser?
    - Are there any externally-edited Images in the Project after you have completed editing in Photoshop?
    For the first, clear any filter you have set for the Browser by clicking the dark-on-light drop-down magnifying glass icon _in_ the Browser search field and selecting "Show All".
    For the second, filter for externally edited Images by clicking the dark-on-light magnifying glass icon _next to_ the Browser search field and setting a filter with the Rule "File Type" set to "is", "externally edited".
    Report back.

  • Jasper report on HTML when one image loaded from database and for the other

    How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
    My code
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
              exporter = new JRHtmlExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
              exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
         exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
         exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
         exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
              exporter.exportReport();
              byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
    Can any one help pls
    Message was edited by:
    ameet.au

    hey sorry for posting it in this forum.
    but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
    byte image[] =(byte[]) outData.get("image");
                        ByteArrayInputStream img = new ByteArrayInputStream(image);
                        hmimg.put("P_PARAMV3", img);
    print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
    bdata= JasperExportManager.exportReportToPdf(print);

  • How can i show images from different folders  in image gallery

    Hi All,
             i have downloaded and executed photo viewer image gallery application.
              in that we r showing images sequentially what we have defined in xml file.
             but i want show images randomly or i want show images from different gallary.
    Can any one help me.
    thanks
    Raghu.

    WaqarLFC7 wrote:
    On Windows:
    Ctrl + click on the songs you want to group - then right click and click get info and it will ask you if you want to get info for multiple items click YES then under album name it whatever you want and them songs will be grouped into 1 album.
    Mac:
    Same procedure but hit SHIFT instead of CTRL.
    Actually, it's right click or ctrl click, same as windows.

  • How to get images dynamically from database without file paths in the table field

    I have a MS-Access database. I am working with ASP.NET. In the database there is product table in which I have "CodeNo" as a field which is a text field, and the product codes like "SM-R-2035". I also have another field "Image" which is also a text field and which have a file path in it corresponding to the particular product Image (e.g. Images\Products\SM-R-2035.jpg). So far every thing is ok. I have to update this site very frequently and lots of images are added each and every time. Its a tedious work to type the paths and file name every time and it also take a lot of time.
    What I am asking is : Is it possible to get images from a specific folder at runtime which is referenced by the "code no" itself and not the file path from the database. (Say at run time the "code no" is referenced from the database and the corresponding image is loaded dynamically from the specified folder). In other word I want to avoid the tedious work of typing.
    Can any one help with this issue. Any other simple suggestions are welcome.

    All you need to do is simple concatenation to obtain the path for the image file.  You didn't mention whether you are using VB.Net, C# or some other language to do your coding.
    If the code in your database is SM-R-2035, the file name is SM-R-2035.jpg and the path to the images foilder is Images\Products\SM-R-2035.jpg, Conceptually here is what you need to do:
    dim code_var
    dim path_var
    code_var = the code you obtain from your relevant field in the database
    path_var = "Images\Products\" & code_var & ".jpg"
    Now path_var is what you would call to obtain the image from your images folder.

  • Problem Populating Image Item From Database

    Hi All,
    I am using Oracle 9i & Forms 6i on Windows platform & working in client/server model. I created a form in which, I am reading an image file from the file system & then saving it into the database. In the Databse, i created the column as BLOB. But, when I query, this does not retrive the saved image in Image Item. But image is actually saved. When I tried, changing the database column to LONG RAW, it is working. I mean its reading the image in the image item from the database.
    Can anyone pls tell me, is there any problem like this, as we can retrive from LONG RAW but not from BLOB, or I am missin something here.
    Regards

    Hi,
    I use Forms 6i to save and retrieve image in BLOB column without problems.
    Some weeks ago, my column was long raw and I update it without problems. Nothing to do in Forms and juste modifiy query and recompile in Reports.

  • Missing Metadata in Web Gallery images exported from Aperture.

    Images that I export directly to my .mac web gallery from aperture do not show any meta data on their info pages. In aperture the images have all meta data.
    I have checked all the presets and all include metadata. There is no specific preset for web gallery I notice.
    Has anyone else solved this?

    I want to change all the metatdata in groups to copywrighted. I can not seem to do this. There could be a checkbox on or off when importing. This would be perfect for bringing in older copywrighted archives.

Maybe you are looking for

  • For currency at the time of report generation it is considering decimal

    Dear Team, I struck  with this issue from the long time and I really appreciate if any body help me on this, Des: Delivery and Billing happened, the amount is 1234/-, the dispalying the same in the documents but while generating the report from VBRK

  • Automatic creation of production order form demand

    Dear Gurus, In my cycle, I want to copy monthly plan from EXCEL sheet through BDC to SAP System.please tell me on which screen it will upload(in md61 or some other). After uploading is there any option according to date wise production order should c

  • Purchase Analysis Question

    Hello experts i am not sure about something if happened before and i would like you knowledge about it. do you know if it is possible in Purchase Analysis, under Items tab to display Items that are in not buy mode(Purchase Item=No)? i am sure that it

  • My air book with 10.8.4 got warm when the powersuppley is on

    My air book with 10.8.4 got warm when the powersuppley is on

  • Locating unassigned photos in library, finding duplicates

    ola, does anyone know of a script or something available to find unassigned pix in the "photo" library that are not assigned to "folders" or "albums"? and...... i've bought into some clean up software that's supposed to help find duplicate pix in iph