More than four images in a row?

I have it set up to display four images in a row. Does anyone know how to display more than that using Apex? Thanks, E.

Assuming that you are storing your images in a table in a column of type BLOB, 
and that you have a procedure to display an image and another to download the
image from your table, change your code to look as shown bellow.  Basically
this code generates an image tag < img> and an anchor tag < a> .  The anchor
tag calls the download_file procedure to download the image file. The image
tag calls the display_image procedure to display the image. 
(see comment below for images stored on the filesystem)
NOTE:  I put a space between the < and the tag name in  the "img",  "br" and "a" tags in the code to keep the system from interpreting them.   Take the space out when you use the code in your system.
SELECT col1, col2, col3, col4, col5, col6
FROM
(SELECT
'< img  src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
       '< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
       '">' || doc_name|| ' </a>' col1, 
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
       '< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
       '">' || doc_name|| ' </a>', 1) over (ORDER BY id) col2,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
       '< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
       '">' || doc_name|| ' </a>', 2) over (ORDER BY id) col3,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
       '< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
       '">' || doc_name|| ' </a>', 3) over (ORDER BY id) col4,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
       '< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
       '">' || doc_name|| ' </a>', 4) over (ORDER BY id) col5,
lead('< img src="#OWNER#.display_image?p_id=' || id || '" height="75" >' ||
       '< br/>' || '< a href="#OWNER#.download_file?p_file_id=' || id ||
       '">' || doc_name|| ' </a>', 5) over (ORDER BY id) col6,
row_number() over (ORDER BY id) rn
FROM image_documents)
WHERE Mod(rn, 6) = 1
The code for my procedures follows.  Change table/column names as appropriate.
My image table:
CREATE TABLE image_documents (
  id              NUMBER         NOT NULL,
  keywords        VARCHAR2(4000) NULL,
  doc_name        VARCHAR2(500)  NULL,
  bytes           NUMBER         NULL,
  mime_type       VARCHAR2(50)   NULL,
  file_contents   BLOB           DEFAULT Empty_Blob() NULL
Code for display_image procedure:
CREATE OR REPLACE PROCEDURE display_image
(p_id NUMBER, p_mode VARCHAR2 DEFAULT 'DISPLAY') AS
   v_mime_type  VARCHAR2(50);
   v_bytes      NUMBER;
   v_doc_name   VARCHAR2(500);
   lob_image    BLOB;
BEGIN
-- uncomment this block and change XXXX  to you app ID to
--  keep users from running procedure
--  from outside your application
  APEX_APPLICATION.G_FLOW_ID := XXXX;
  IF NOT wwv_flow_custom_auth_std.is_session_valid THEN
   htp.p('Error Code: '||APEX_APPLICATION.G_FLOW_ID);
   RETURN;
  END IF;
  SELECT doc_name, bytes, file_contents
    INTO v_doc_name, v_bytes, lob_image
    FROM image_documents
   WHERE id = p_id;
   owa_util.mime_header('application/octet', FALSE);
   htp.p('Content-length:' || v_bytes);
   htp.p('Expires : ' || To_Char(SYSDATE + 1/24, 'FMDy, DD Month YYYY HH24:MI:SS') || ' GMT');
   IF (p_mode = 'DOWNLOAD') THEN
      htp.p('Content-Disposition: attachment; filename="' || v_doc_name  || '"');
   END IF;
   owa_util.http_header_close;
   wpg_docload.download_file(lob_image);
END display_image;
GRANT EXECUTE ON display_image TO PUBLIC;
-- Code for download_file  procedure
CREATE OR REPLACE PROCEDURE download_file(p_file_id in number) AS
v_doc_name VARCHAR2(100);
v_mime_type VARCHAR2(48);
v_bytes NUMBER;
v_file_contents BLOB;
BEGIN
-- uncomment this block and change XXXX to your app ID to keep users
--  from running this procedure from outside of your application
APEX_APPLICATION.G_FLOW_ID := XXXX;
IF NOT wwv_flow_custom_auth_std.is_session_valid THEN
  htp.p('Error Code: '||APEX_APPLICATION.G_FLOW_ID);
  RETURN;
END IF;
SELECT doc_name, bytes, mime_type, file_contents
   INTO v_doc_name, v_bytes, v_mime_type, v_file_contents
   FROM image_documents
WHERE id = p_file_id;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( nvl(v_mime_type,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_bytes);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||v_doc_name|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( v_file_contents );
end;
For images stored in the file system, you do not need the procedures. 
Just define a virtual path in the httpd.conf file pointing to the file
directory and make the tags as follows:
< img src="virtual_path/img_file_name" height=25 />
< a href="virtual_path/img_file_name"> img_file_name </a>
Example: (assuming we are using the /i/ virtual path)
SELECT
'< img  src="/i/' || doc_name || '" height="75" >' ||
       '< br/>' || '< a href="/i/' || doc_name || '">' ||
       doc_name|| ' </a>' col1,
'< img  src="/i/' || doc_name || '" height="75" >' ||
       '< br/>' || '< a href="/i/' || doc_name || '">' ||
       doc_name|| ' </a>' col2,
  :Hope this helps.
ackness

Similar Messages

  • Is there a way to reset more than one image at a time?

    I have a folder with 1100 images taken on four different cameras. I have a new default setting for one of the cameras that I would like to apply to most but not all of the images in this folder. I could remove the offending images and reimport, I could filter by serial number and sync a preset. It would be easier, however, if could just select the images I want and hit the reset tool and reset all the images selected. But it only seems to reset the dominant image. Any way to get the reset button to work on more than one image at a time?
    Gordon

    do it in Grid not Filmstrip or Develop.
    Don
    Don Ricklin, MacBook 2Ghz Duo 2 Core running 10.5.1 & Win XP, Pentax *ist D See LR Links list at http://donricklin.blogspot.com for related sites.

  • For more than 75000 images...

    My client wish to have all his item images into the database.
    i have created an UDF at row level so that he can choose different pictures for same item by browsing into folders. i found tht images are stored in SBO database.
    do SBO hav the memory capacity for incorporating more than 75000 images?
    Meera.

    Hello,
    The steps to do that :
    1. set both server connection whether it is join domain or TCP/IP (IP static), which it means both are under same workgroup.
    2. Install SQL server in the database server.
    3. Install SAP B1 completely in the license server and use the server name where SQL server installed there.
    That's the architecture design of 2 servers for SAP B1.
    Rgds,

  • Error - Can't open more than one image in CS3

    My Photoshop CS3 was working fine until all of a sudden it no longer lets me open more than one image at a time without crashing. Anyone else have this problem? How do I fix it?

    Hi,
    There may be two issues you have to check:
    1) The " scratch disk" feature in photoshop(usually gets full). Go to preferences - performance. Also check how much RAM PS is using.
    2) Printer Communication: sometimes Photoshop is unable to communicate with the default printer(may be unstable drivers, out of date etc). Network computers also make some issues
    If you want to read more about this follow this link:
    http://www.fluther.com/disc/22453/photoshop-cs3-not-opening-more-than-one-image-at-a-time/
    They talk about the issues I mentioned here. Let me know if you found this information useful.
    Vicente Tulliano

  • In Keynote, how do I put more than one image on a single slide?

    I would like to put 2, 3, or 4 “pictures” on a single slide, and program them with transitions so that they could pop-on or dissolve one at a time.  Is it possible to put more than one image placeholder on a slide?

    Yes. Just copy-paste the placeholder that the theme has, multiple times.

  • How to show more than one image on my screen at same time?

    I recently upgraded to PS-CS4 from CS3 and notice that I can only view one image on my screen. Is there a way to view more than one image on the screen at the same time? I cannot seem to find a way to change this feature.
    Thanks, Richie

    John Joslin wrote:
    In addition, if you don't like the tabs, select Float All in Windows from the Arrange Documents drop-down in the Menu bar up top.
    Or keep pressing the F key.
    The drop-down bar also has a conveneint way of fitting multiple images on the screen. See the illustration below:

  • How do I view more than one image at the same time in CS6?

    How do I view more than one image at the same time in CS6?

    Hi there
    If you go to Window > Arrange you can choose from several view options. Below I have selected Two-Up Horizontal since I have two images, but you can select other options if you have more than one image.

  • How do you open more than one image at a time in Camera Raw?

    We used to be able to select more than one image from a folder and process one after the other in camera raw. Now we can only do one at a time. Is there a secret keyboard short-cut to allow this still?

    Which operating system are you using?
    One should still be able to open multiple files into camera raw.
    Camera raw files. tiffs and jpegs.
    If in the pse 13 Editor in the Expert mode you go to File>Open in Camera Raw, you aren't able to open more than one file into camera raw?

  • How do I use more than four PDOs when working with NI-Industr​ial Communicat​ions for CANopen?

    When I call CANopen TPDO Create.vi to create TPDO objects I can only input PDO1 through PDO4. How do I work with more than four PDOs?
    I see the other forum thread using an older version of CANopen, but it does not appear to directly translate into the newer NI-Industrial Communications for CANopen.
    http://forums.ni.com/t5/Automotive-and-Embedded-Ne​tworks/PDOs-on-a-CANopen-network/m-p/405001?requir​...

    Hi wireman,
    A good resource for CANopen is available here.  That page explains that typically in the CANopen standard, there are only 4 predefined PDOs in each direction (transmit and receive).  To use extra PDOs, additional configuration is required.  The configuration of the predefined PDO Channels refers to the COB-ID that they are linked to by default.
    According to the LabVIEW help files, the COB-ID is 'calculated' by adding the value of the PDO Channel and the Node ID, if the COB-ID is zero.  However, if the COB-ID is explicitly defined, then LabVIEW will ignore the calculation provided by the Node ID and PDO Channel.  So, if you need more than the four PDOs, you'll need to use the COB-ID input to differentiate which channel is being referenced.
    I hope this clears some things up, and please don't hesitate to ask for more advice.
    Regards,
    -Dave C
    Applications Engineer
    National Instruments

  • Lightroom won't export more than one image at the time

    I am having trouble exporting my RAW files as JPEG files. At first Lightroom 4.4 seemed to skip certain photos when exporting and now I'm unable to export more than one image at the time. How can I fix this? I didn't seem to have this problem before the 4.4 update, but then again, the 4.4 update has been running for a few days now. I run on a 32bit Windows 7 with 4GB of RAM.
    Lightroom has also been a considerable lot slower since the last couple of days, yet there have been no changes at all to my computer or system or anything - nothing's changed expect for the fact that Lightroom isn't behaving as it used to.
    Can anyone help me?

    I think I've found the problem - I've accidentally 'synced' my folder instead of importing the RAW files. Which brings me to my next problem and question - I've already edited the RAW files and would really like it if there's a way I could re-import the files without losing my changes/metadata, is there anyway that's possible?

  • Is it possible to datamerge more than one image per page?

    I am building a product catalogue using datamerge.  Is it possible to data merge more than one image per page? (ie I have a logo, product image and dimensioned drawing to go with each product page)
    What would the coding be for the Data Field Name?
    Would it be
    @Logo
    @Product Image
    @Dimension Drawing
    Add image fields in the data source file
    By adding image fields to the data source file, you can allow a different image to appear on each merged record. For example, when you merge documents that include information from various companies, you may want to include an image of each company’s logo as part of the merge.
    Open the data source file.
    At the beginning of the data field name, type an “at” symbol (@) to insert text or paths that refer to image files.The @ symbol is required only in the first line; subsequent lines should include the image paths. Paths, which are case-sensitive, must follow the naming conventions of the operating system in which they’re stored.
    If you get an error message when you type the @ symbol at the beginning of the field, type an apostrophe (') before the @ symbol (such as '@Photos) to validate the function. Some applications, such as Microsoft Excel, reserve the @ symbol for functions. 
    (Windows) Example of image references in data source file
    Bill Tucker
    36
    C:\Photos\BillTucker.jpg
    Dat Nguyen
    53
    C:\MyDocuments\dat.gif
    Maria Ruiz
    26
    C:\Photos\Ruiz.psd
    (Mac OS) Example of image references in data source file
    Bill Tucker
    36
    Mac HD:Photos:BillTucker.jpg
    Dat Nguyen
    53
    Desktop:Family:dat.gif
    Maria Ruiz
    26
    Mac HD:Photos:Ruiz.psd
    You can use InDesign to view the path of an image on your operating system. Insert an image in an InDesign document, and then use the Links panel to view the image’s location. With the image selected, choose Copy Info > Copy Full Path from the Links panel menu. You may need to edit the path after you paste it in your data source. This technique is especially useful for images on a server. 

    anna-rees wrote:
    I am building a product catalogue using datamerge.  Is it possible to data merge more than one image per page? (ie I have a logo, product image and dimensioned drawing to go with each product page)
    What would the coding be for the Data Field Name?
    Would it be
    @Logo
    @Product Image
    @Dimension Drawing
    Yes, pretty much exactly as you describe. You would then just add those fields to the boxes in your page. I tend to add an apostrophe before the @ symbol in Excel so it doesn't think it's a function - as per text you quoted above.
    If you get an error message when you type the @ symbol at the beginning of the field, type an apostrophe (') before the @ symbol (such as '@Photos) to validate the function. Some applications, such as Microsoft Excel, reserve the @ symbol for functions.

  • Cannot add more than four or five files at a time

    This has really been bothering me for a while. When I try to add files to the library, if I select more than four or five, nothing happens. No errors are received but nothing happens! In addition, it does not even remember my last folder so I have to navigate back to try again.
    If I incrementally add four files at a time it works, but this becomes extremely annoying.
    In addition, adding the entire folder usually does not work in this scenario.
    I am using the newest version of iTunes and see it both on XP and on Vista.

    I am also having this problem and it is a real pain in the *. And it seems we are not alone, some one else suggested that you add files by selecting them in their windows folder and dragging and dropping them into your library pane on the left, especially with the "copy into itunes music folder" turned on. That works for me and it is about the same as adding them with the add file option. Cheers.

  • How do I get more than 99 images????

    I have iDVD v2.1. I have a Mac OS X 10.2.8. I want to update my iDVD, but how can I do that? I want to have more than 99 images in a slide show, but I think I need to update it. The only update I found for 10.2.8 Macs is the iDVD 3.0.1 update, which requires iDVD 3. Can I update to iDVD 3? HOW?!?! Please somebody help. If I can't, then is there a way to get more than 99 images in a slideshow at all?

    Hey,
    Thank you very much. That's very helpful. Thank you for your time! I bought the hardware for OS X Tiger 10.4... and I'm having a little bit of trouble installing it. Could you possibly go to that question that I asked and have any suggestions? It's located at
    http://discussions.apple.com/thread.jspa?threadID=526888&tstart=0
    Thank you so incredibly much for your time. I'd really appreciate your advice and help, because you sound like an experienced Mac user!

  • MS Outlook 2010 - Group by subject and show messages which has count of more than four

    Hi there,
    Like everyone I have hundreds of emails hitting me daily. I always wanted these two ways enabled in outlook to reduce my inbox. Can anyone let me know if this is possible, if not MS product team you got a request.
    1) Outlook lets us to group all the messages by subject BUT it doesn't sort by the highest amount messages.
    Ex: Out of 100 messages in inbox, lets say msg A: same subject - 10 emails; msg B: same subject - 5 emails... rest are single subject eamils.
    when i group by subject i would want msg A and msg B to show first, so that i can take action.
    2) Same concept but want to filter only emails which has more than FOUR replies on the same subject
    Thanks for taking look at my questions.

    Just wanted to say hi and check if there is anything else that I can do for you on this problem.If so, please do not hesitate to let me know and I
    will be happy to help.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Placing more than one images in one container (was: InDesign)

    Hi,
    I'm new to inDesign. Can anybody help me placing more than one images in one container like rectangle in which I can get coordinates of the different grphics/images with reference to the container not document page.
    Thanks and best regards
    Sal

    I´n not quite sure what you are trying to do but I´m afraid it´s not possible in InDesign. Coordinates are always referencing the page, or actually the origin which is usually on the top-left corner of the page.
    If you just want a single frame for multiple images, you could try to use paste into command. Group your images and Edit > Cut. Draw an empty rectange, select it and Edit > Paste Into. Now you have your group of images inside that one frame and they shouls act like one image if you for instance scale your frame....

Maybe you are looking for