How to resize display image item?

How to resize an image in display image item not in column?
I find a way to resize it in column which similar to this way
decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null,
'<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius:
4px;" '||
'src="'||
apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)||
'" height="75" width="75" alt="Player Image" title="Player Image" />')
detail_img
but when I try to implement it to display image item which I returned the image from the column, I cant resize it this way, or may be I used wrong syntax, can you please help me finding way to resize it with steps?

I guess it is because of some carriage returns in your dynamic img tag that is being generated may be not, so make sure there are no breaks half-way through he attributes of the img tag.
decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null, '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '|| 'src="'|| apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)|| '" height="75" width="75" alt="Player Image" title="Player Image" />')  detail_imgand also inspect the element/img to see if the code is rendered correctly
Thanks

Similar Messages

  • How can I display images that are not included in any collection?

    How can I display images that are not included in any collection (some filter or smart collection)? A smart collection with parameters "Collection - contains - empty field" does not work. Lightroom 5.

    Thank you! Good idea! I ordered letters of the alphabet (space separated), and it works.

  • How can I display images in drop down.

    Hi All,
    How can I display images in drop down.
    <select><option>image here</option></select>
    please reply soon.
    anser please
    Thanks

    I have not found html forum..That's just incredible.
    where can i find it ?Sorry, I'm still recovering from that remark.
    please reply soonEvery time you end a post with this, or "urgent" or other such keywords, the forum automatically introduces a 5 minute delay so that will actually make the whole process slower (not faster).

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
    Thanks
    Ravi

    Hi Ravi,
    You can add images into your rtf template using MS Word Insert Picture feature.
    Did you try this method?
    Thanks
    Ravi
    [email protected]

  • Apex 4.0 display image item :BLOB column returned by SQL statement

    Hello
    I'm creating an display image item in apex 4.0. The source is a BLOB column returned by SQL statement.
    When I'm issuing an sql statement like this:
       select lado.blob_content
       from   large_documents      lado
       ,        large_doc_headers    ladh
       where lado.ladh_nr = ladh.nr
       more criteriait works fine.
    When I create a function inside a package with the same query (in a cursor)
    function get_image(some parameters in) return blob
    Following in apex by:
    select get_image(some parameters) from dualI get a
    ORA-06502: PL/SQL: numeric or value error: character string buffer too smallAnybody any idea why this does not work?
    Regards Erik

    Hi Eric,
    the environment assumes varchar2-output by default, which will be limited to 32767 characters and may have problems with binary formats. You could define a blob-variable to select the value into.
    DECLARE
      l_blob BLOB;
    BEGIN
      SELECT get_image(some parameters)
        INTO l_blob
        FROM dual;
    END;
    /If you expect the BLOB-Content to be text (you should consider CLOB then), you may use UTL_RAW.CAST_TO_VARCHAR2 to convert the content. If your object is larger than the maximum varchar2 size, or you want to convert BLOB to CLOB, you might be interested in some converter like described here: {message:id=559749}
    Hope this is what you were searching for.
    -Udo

  • How to resize multiple images?

    I am newbie to RH and would like to know if there is a method /shortcut by which I can resize multiple images?
    Specifically to my project: I have close to 50 tables containing various images and their descriptions. When I insert these images into RH, the original image size is inserted and these images are of various sizes.
    I know how to resize multiple images in Word but not in RH and hence, reaching to higher powers
    I am using RH 9
    Appreciate all your help!

    Hi There, Well the best option is to resize each image individually but if you feel that you can select all images together and the  resize them all at once I am sure that you would like to give a read to this post from forums which talks about this job
    http://forums.adobe.com/thread/466933

  • Refresh display image item without reload page

    hi all, is a way to refresh (requery) a display image item to change the image via botton and do not reload page ?
    thanks
    Edited by: Reza.Gh. on Sep 24, 2012 11:56 AM

    I create a sample app :
    https://apex.oracle.com/pls/apex/f?p=9310:1
    code of item  P1_CAPTCHA_IMG :
    SELECT captcha_img FROM captcha WHERE response = :P1_CAP_V;
    item P1_CAP_V  code (computations) :
    SELECT *
    FROM (
    SELECT response
    FROM captcha
    ORDER BY
    dbms_random.value
    WHERE rownum = 1 ;
    Refresh botton code :
    action 1 :
    SELECT * into :P1_CAP_V
    FROM (
    SELECT response
    FROM captcha
    ORDER BY
    dbms_random.value
    WHERE rownum = 1;
    action 2:
    refresh item P1_CAPTCHA_IMG

  • Guys, i want to ask on how to resize the images into 1200 pixels wide?

    Guys, i want to ask on how to resize the images into 1200 pixels wide, how to do it? and what are the step by steps on doing that? thank you!!!

    See this link: http://forums.adobe.com/docs/DOC-3691

  • How can i Display images with may own table

    Hi
    I want display images with my own table. How can I use in this query.
    SELECT    '<a href="#" onclick="javascript:'
           || 'getImageHeight(''my_img'
           || '#ROWNUM#'');javascript:redirect'
           || '(''f?p=&APP_ID.:212'
           || ':&SESSION.:DISPLAY:NO::P212_IMAGE_ID:'
           || ID
           || ''');">'
           || '<img src="#IMAGE_PREFIX#edit.gif" '
           || 'alt="Edit"></a>' ID,
              '<img id="my_img'
           || '#ROWNUM#" src="#WORKSPACE_IMAGES#'
           || filename
           || '"/>' image
      FROM wwv_flow_filesThanks
    Nr
    Edited by: user10966033 on Sep 28, 2009 1:41 PM

    You don't use #workspace_images# since that is for STATIC files, not images in a table..
    see this thread for help: Re: Display image from blob
    Thank you,
    Tony Miller
    Webster, TX

  • How to store/display images with SQL Server 2000

    Hi everybody, I'm totally new to ColdFusion, and creating a
    sample project, where a user would enter in a person's info and
    upload a picture of that person. I trying to get my app to save
    that image to SQL Server database and then to display that pic.
    Currently, it "seems" that I'm able to save to SQL server (my table
    saves user info but all values in my photo column says
    <binary>-I don't know if that is correct), but I can't seem
    to get image and display it on my cf page. I have pasted portions
    of my code below.
    I've been hammering away at this but no luck, so Any comments
    are very well appreciated, example code would be great!
    Thank you so much,
    noijet
    # 1.) I have a 'User Info Entry' page that submits to page
    #2:
    <cfform...>
    <input name="fileToUpload" id="fileToUpload" type="file"
    size="64"/>
    </cfform>
    # 2.) This page does the actual saving, this doesn't output
    any errors but am I saving the image to SQL server correctly? I
    have no idea really how to save images to database, so please
    advise or possibly provide example code. Afterwards, it goes to
    page #3 to display confirmation page that data has been saved.
    <cfif isDefined("Form.fileToUpload") and Form.fileToUpload
    neq "">
    <cfset uploadPath =
    GetDirectoryFromPath(GetBaseTemplatePath()) & "uploads\">
    <cfif not DirectoryExists(uploadPath)>
    <cfdirectory action="create" directory="#uploadPath#">
    </cfif>
    <cffile action="upload" fileField="fileToUpload"
    destination="#uploadPath#" nameConflict="overwrite">
    <cfset imagefile= "uploads\\" & cffile.serverFile
    & "'">
    </cfif>
    <cfquery name="qInsertPerson" dataSource="HRP">
    Execute insertPerson
    N'#Trim(FORM.sLastname)#',N'#Trim(FORM.sFirstname)#',N'#Trim(FORM.sMiddle)#',N'#Trim(FORM .sAlias)#',
    '#imagefile#'
    </cfquery>
    <cflocation url = "savePersonResult.cfm" addToken =
    "No">
    #3.) This confirmation page displays last user entered and a
    picture of the user. The user info retrieved from SQL server is
    displaying correctly but the picture is not displaying(just a small
    red 'x' box). The image calls another getPersonPhoto.cfm file to
    display image.
    <cfquery name="lastPerson" datasource="HRP">
    Exec getLastRow
    </cfquery>
    <cfoutput query="lastPerson">
    #firstName# #middle# #lastName# was added to our Persons
    list. That Person has been given id: #id# <br>
    Thank you for your assistance and cooperation.
    <img src="getPersonPhoto.cfm?id=71" border="0" width="128"
    height="180">
    </cfoutput>
    #4.) This is .cfm file that only displays image of person
    <cfsetting enablecfoutputonly="Yes">
    <cfsetting showdebugoutput="No">
    <cfquery name="getBlob" datasource="HRP">
    SELECT TOP 1 photo FROM Persons WHERE id = 71
    </cfquery>
    <cfheader name="content-disposition"
    value="Inline;filename=ExamplePerson.jpg">
    <cfcontent type="image/jpeg; charset=iso-8859-1">
    <cfoutput>#tostring(tobinary(getBlob.photo))#</cfoutput>
    Note: In my ColdFusion admin, I checked "Enable ... BLOB's"
    and set Blob Buffer to 20000

    Regarding doing the actual saving, here are some other things
    to consider:
    * a max on the image's file size
    * check if it really is an image
    * don't use nameconflict="overwrite". consider
    nameconflict="MAKEUNIQUE"
    * delete uploaded image on file system after insert into db
    Also, on the cfm page that returns an image, try putting the
    cfcontent tag and the cfoutput tag on one line.
    <cfheader name="Content-Type" value="image/jpeg">
    <cfcontent
    type="image/jpeg"><cfoutput>#getBlob.photo#</cfoutput>
    Good luck!

  • How I can display images as table data?

    Dear project Marvel,
    I would like to display images as one of table data, but I do not know how to easily store image data into tables using htmldb and whether I can display the stored images. Does anyone knows how I can store/display images using htmldb? If I cannot do this easily then displaying image (which is stored somewhere else but) just looks like one of columns also fine to me.
    Thanks in advance,
    Rui

    you can show those images inline in your report region if you call our "p" procedure in an image tag. so the example above has you creating a table that you then join to the wwv_flow_files view with a query like...
    select htf.anchor('p?n='||f.id, f.filename) name,
    f.doc_size, f.mime_type, m.upload
    from my_docs m, wwv_flow_files f
    where m.filename = f.name
    ...clicking on the links in the first column would return a page that just showed the associated image. if changed that anchor tag to an image one like so...
    select '&lt;img src="p?n=' || f.id ||'&gt;' the_image,
    f.doc_size, f.mime_type, m.upload
    from my_docs m, wwv_flow_files f
    where m.filename = f.name
    ...your images would then appear inline as opposed to on a separate page.
    [Edited by: rmattama on Sep 25, 2003 1:22 PM]
    i'm not sure how, but i'd earlier posted an incomplete answer to rui's question. i've fixed some of the above and added this below...
    just fixed the html above so it renders correctly in this forum. sorry i didn't see that earlier. also, i'm not sure where the rest of my post went, but rui had also wanted to know what the wwv_flow_files was. that's a view to the table we use to store uploaded BLOBs like images, css's, and stylesheets. since you can only identify one document table in your DAD configuration, we give you this view to allow you access to that doc table that HTML DB owns.
    fyi,
    raj

  • How to resize and image in iPhoto for a favicon on website

    I am trying to add "favicon" to my website and it says it says the image needs to be 16x16 or 32x32 and no larger than 100KB how do i resize the image i want to use to fir these guidlines?

    you go into iphoto then you click on the photo u want to re-size down the bottom there should be 4 icon there should be one saying edit click on that then up the top there are three icon click on the one that says quick fix the click on crop next to the word constrain there is a long bar click on that scroll down it will say custom click on that then put in the size you want the photo to be then u are good to go

  • How to resize GIF images

    Hi
    I used acme.jar to wirte gif images to a local disk . i worked fine , but iam facing problem in resizing these images , when i resize these images i get black background color in tat images .. can any body help me regarding this.....
    thumbImage = scaleToSize(imageWidth, imageHeight, thumbImage);
    Graphics2D graphics2D = thumbImage.createGraphics();
    graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
         RenderingHints.VALUE_INTERPOLATION_BILINEAR);
         graphics2D.drawImage(image,0,0,     thumbWidth,thumbHeight,null);
    out = new BufferedOutputStream(new FileOutputStream(newFilePath));
    GifEncoder gife = new GifEncoder(image,out);     
    gife.encode();
    this is my code .....

    Following is my code:
    public final String dealFile(ActionMapping mapping,ActionForm form,
                   HttpServletRequest request) throws FileNotFoundException, IOException{
              GroupForm gForm = (GroupForm) form;
              ActionMessages errors = new ActionMessages();
              // retrieve the file representation
              FormFile file = gForm.getPictFile();
              if (file == null) {
                   errors.add("FileNeeded", new ActionMessage("error.photo.filenull"));
                   saveErrors(request, errors);
                   return "failure";
              // has the maximum length been exceeded?
              Boolean maxLengthExceeded = (Boolean) request
                        .getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
              if ((maxLengthExceeded != null) && (maxLengthExceeded.booleanValue())) {
                   errors.add("maxLengthExceeded", new ActionMessage(
                             "error.photo.length"));
                   saveErrors(request, errors);
                   return "failure";
              // retrieve the file name
              String fileName = file.getFileName();
              // judge file type
              String fileType = fileName.substring(fileName.lastIndexOf(".") + 1);
              if (!(fileType.equalsIgnoreCase("jpg")
                        || fileType.equalsIgnoreCase("jpeg")
                        || fileType.equalsIgnoreCase("gif") || fileType
                        .equalsIgnoreCase("png"))) {
                   errors.add("NotPict", new ActionMessage("error.photo.wrongformat"));
                   saveErrors(request, errors);
                   return "failure";
              Date date = new Date();
              Random r = new Random(date.getTime());
              // ������������
              String newFileName = request.getSession().getId() + r.nextInt(10000)
                        + "." + fileType;
              String filePath = null;
              String newFilePath = null;
              // the directory to upload to
              String uploadDir = servlet.getServletContext()
                        .getRealPath("/resources")
                        + "/groupphoto/" + DateUtil.asShortString(date)+"/";
              // prepare directory if not exists
              File dirPath = new File(uploadDir);
              if (!dirPath.exists()) {
                   dirPath.mkdirs();
              // retrieve the file data
              InputStream stream = file.getInputStream();
              // write the file to the file specified
              OutputStream bos = new FileOutputStream(uploadDir + newFileName);
              int bytesRead = 0;
              byte[] buffer = new byte[8192];
              while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
                   bos.write(buffer, 0, bytesRead);
              bos.close();
              buffer = null;
              filePath = dirPath.getAbsolutePath() + Constants.FILE_SEP
                        + newFileName;
              File _file = new File(uploadDir + newFileName);
              Image src = ImageIO.read(_file); // ����Image����
              int width = src.getWidth(null); // ����������
              int height = src.getHeight(null);// ����������
              // convert the picture to picture within 100x100 and save to a file with
              // prefix
              // 100x100_ for later listing purpose.
              newFilePath = dirPath.getAbsolutePath() +Constants.FILE_SEP
                        + "100x100_" + newFileName;
              int newWidth = 0;
              int newHeight = 0;
              int bigger = width <= height ? height : width;
              if (bigger > 100) {
                   if (width >= height) {
                        newWidth = 100;
                        newHeight = height * 100 / width;
                   } else {
                        newHeight = 100;
                        newWidth = width * 100 / height;
                   ImageUtil.convert(filePath, newFilePath, newWidth, newHeight);
              // close the stream
              stream.close();
              _file = null;
              src = null;
              dirPath = null;
              String url = request.getContextPath() + "/resources" + "/groupphoto/"
              + DateUtil.asShortString(date)+"/"+ "100x100_" + newFileName;
              return url;          
         }

  • How to resize photoshop image without changing canvas size?

    When i had the older versions of photoshop i would change the image size and it would enlarge on my canvas for me to rearrange. Lately i realized on CC when i increase image size so does my canvas size. Is there anyway to prevent my canvas size from increasing too?

    I am having what appears to be this same issue.    I am using PS CC.  
    hello @ c.pfaffenbichler
    I resized my image in image> image size.  
    Details:
    I am not a ps expert but woefully self taught.  However through much trial and error I have in my experience over the years, achieved some comfortability with the image size dialog box as well as the canvas size dialog box.  SOME comfortability lol.  That is, I feel that I understand what is going on most of the time and when flummoxed have studied adobe literature or read hundreds of posts here and elsewhere to gain additional knowledge which many times resolves the issue.  I like digging and finding the answers.
    In this case, my digging is done dug a giant hole and I am exhausted and found nuthin'.
    I feel like I am going nutso.
    In my mind,
    1.  There is the image I am working on
    2.  There is the canvas the image is sitting on
    My expectation and previous experience is that I can change the Image size by going to Image > image size and this change does not affect the canvas size.
    My expectation and previous experience is that I can go to Image >canvas size and change the canvas size and this does not affect the image size.
    I could also use the Transform to resize the image which also, would not in my expectation, change the canvas size.
    In the beginning of my workflow on this particular collage I did not have this issue,  so that leads me to believe I did or am doing something to cause this rather than it being some kind of bug.    But what do I know.
    I thank you in advance for your assistance.

  • How to not display certain items based upon certain criteria (Edit Form)

    I have a Edit form which was created from an interactive report I generated.
    There are 10 item fields which are listed which can be changed.
    Sometimes I want to see just 9 of the fields on the form based on what the value is of another field in the record.
    When I display the fields on the Interactive report I can filter this out by using a case statement, but how
    do I do this with the edit form as the query is not there.
    Thanks for your time in advance,
    Anon

    Use Conditions to control whether the item appears or not.
    In the item definition is a Conditions section where a large number of different types of condition can be used to determine whether the item is rendered. These include comparisons of the value of the item, or another item, items being null, and a lot of other options. Conditions are widely used throughout APEX&mdash;sometimes in subtle or noninuitive ways&mdash;so it's worthwhile studying how they're used.

Maybe you are looking for