Show BLOB icon based on file type?

I have a report which shows BLOB file types as thumbnails. You click on the icon and the file pops up in its own window. This is all based on the How-To docs for APEX on OTN. That said, when the blob is an image, the icon shows up as a small preview of that image. However when the blob is something else, say a word document, it shows up as blank. You can still click on it, but the thumbnail is blank.
This code call the image:
href="javascript:popupURL('#OWNER#.download_my_file?p_file=#ID2##NAME#')"
img title="Click to pop up large image" src="#OWNER#.download_my_file?p_file=#ID2##NAME#" width="57" height="75"
Does anyone have an clever ideas as to how I would display the Word icon if it is a word document or the Excel icon if it is an excel document. TIA.

Here is your missing part...showing icons code...
SELECT '< a href="apex_util.count_click?p_url=#OWNER#.get_doc?p=' || doc_id || '&p_cat=DOCS&p_id=' || doc_id || '&p_user=' || :app_user || '&p_workspace=' || apex_custom_auth.get_security_group_id || '" >< img src="' || decode(mime_type,   'application/vnd.oasis.opendocument.text',   '#APP_IMAGES#icodt.GIF',   'application/vnd.ms-excel',   '#APP_IMAGES#ICXLS.GIF',   'application/msword',   '#APP_IMAGES#ICDOC.GIF',   'application/pdf',   '#APP_IMAGES#icpdf.GIF',   'application/vnd.ms-powerpoint',   '#APP_IMAGES#ICPPT.GIF',   'application/vnd.oasis.opendocument.spreadsheet',   '#APP_IMAGES#iccalc.GIF',   'application/vnd.oasis.opendocument.presentation',   '#APP_IMAGES#icodp.GIF',   'text/plain',   '#APP_IMAGES#ICTXT.GIF',   'application/x-zip-compressed',   '#APP_IMAGES#ICZIP.GIF',   '#APP_IMAGES#ICGEN.GIF') || '" width="16" height="16" border="0" / >< /a >' "Type",
  '< a href="#" onclick="doc_menu(this); return false" class="repmenu" id="' || doc_id || '" >' || name || '< /a >' "name",
  updated_by,
  updated_on,
  checkedout_by
FROM doclib_documents
WHERE revision_of = 0
AND deleted_as_of = to_date('04-22-2004',   'MM-DD-YYYY')P.S:
Change "< " to "<" and " >" to ">"...because otherwise code would not be seen on forum...
Message was edited by:
Funky

Similar Messages

  • Resetting icons based on file type

    Not sure what happened here, but maybe a week or so ago, the icons for my image files (jpg, png, etc.) become different things. In the same folder, JPG files may have 3 or 4 different icons. Sorry, I don't know how else to explain it. Any idea how to make it so they all just go back to the standard icon for those different file types? thanks

    Sorry, please disregard. I just restarted Finder and everything works fine now.

  • Change all icons of a file type in Yosemite?

    Hello,
    I just upgraded from a early 2011 MBP running Mavericks to a new Retina MBP running Yosemite. I did not use Migration Assistant as I wanted a fresh start and instead have copied over all of my data from a clone manually. I use Parallels 10 to run a Windows 7 VM to run some software, including MS Office, etc. Since my upgrade, all of my Office file icons (.docx, .xlsx, etc.) are the generic white/gray page with the turned down upper-right corner. I set the default program for all to be the correct application within my VM, but now would like to change the file icons for all files of a type to something more meaningful. Somehow, I had that on my previous MBP, but can't remember how that happened... Without having to individually change each icon for 10,000+ files, is there an easy way to batch change all Excel file types (.xls, .xlsx, .xlsm, .csv, etc.) to a single icon?
    Thanks in advance.

    Same thing happening to me.  I've fixed disk permissions, for what that's worth.  Still have generic icons for office docs.  It's always something....

  • Iconic buttons - does file type in Forms 6i have to be .ico?

    In Forms 6i, does the file type for an icon to be displayed on a button have to be .ico? We are thinking of having our buttons re-done by a design firm and will be going to Forms 9i sometime next year. It would be nice if we could use the same files for 9i as we need right now for 6i.
    I have some other questions too from our marketing guy:
    1) I'm asking a design firm for a quote to convert them from button-looking 1980's things to Windows-looking icons. When the user mouseovers the icon, it would appear as a button (like in all MS apps), and when they have no use, they would appear greyed out. Does Oracle support the mouseover state?
    2) Can you put a grey pipe between groups of similar icons, like in MS apps?
    3) Any special concerns or issues with having icons with the word appearing to the right of the icon ?
    4) How about the grey line that appears under the menu names and on top of the toolbar icons (the separator line) - can you paint that line in Oracle Forms 6i? What about 9i?
    Thanks.

    All of my answers apply to 6i as we haven't used 9i yet...
    1) Yes for menu toolbar buttons. Don't know otherwise. If you run the forms over the web (i.e. not client/server), and you set the application's "lookAndFeel" property in 9iAS to the correct value ("generic" I think), then each button will be grey until you fly the mouse over it. If you use the "oracle" lookAndFeel, then the buttons are always colored, and you get fly-over text when you park the mouse over a button.
    2) Yes. If you put the toolbar icons in a menu (.mmb/.mmx) module then you can group them between "separator" menu items. Be sure to set the properties so that they appear in the toolbar.
    3) I don't know if that's possible for toolbar icons. For regular buttons in a form, I believe you have to paint the text in the button icon.
    4) If you use the "oracle" lookAndFeel, then the toolbar is visibly separated from the menubar. If you use "generic", then the menu and toolbar share a common grey area.
    Best Regards,
    Brian

  • Dreamweaver CS6 displaying the wrong icon for certain file types

    I recently upgraded to the Maverick and I noticed that my Dreamweaver changed some of my files' icon to Acrobat Reader symbol. This does not represent the actual file type. My most important files, such as mp3 and m4v, are not displaying correctly. My concern is that it is affecting my website. How do I change the icons back to the original file type icons? Much needed help! Thanks!

    What do local file associations have to do with your website? You have a severely wrong understanding of this stuff. Anyway, file associations on Mac can be changed using a right-click and Get Info and then choosing a new default program for the file type.
    Mylenium

  • Globally setting icon for a file type

    I've been using LilyPond a lot recently. The .ly files it saves don't have their own icon, though, they just get the generic document icon. I know that I can manually set an icon for a single file using 'Get Info', but it's not practical now because I have so many .ly files. Is there a way I can tell OS X to use my own icon every time it sees a .ly file?
    Thanks,
    (- Steve -)

    Hi, Stephen.
    If by LilyPond you mean this application, it's the application's responsibility to assign the custom icon for files it creates, e.g. .ly files you edit and save in LilyPond. You might want to send feedback concerning this to the developers. However, as I understand the application based on a quick review of its manual, it can work with any plain-text (ASCII) file.
    You can change the default application in which all .ly files open by using the instructions in "Mac OS X 10.4 Help: Changing the application that opens a document." That may result in those files bearing the same icon as the LilyPond application. That is also the mechanism by which a given icon is assigned to all files of a given type.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to show two amount (based on value type and entry code)  in same column

    Hi, I have to show two amount in the same column how can i do that...
    For example there is 
    1) premium amount which depends upon the entry code lets say entry code 1000 = Premium amount .
    2) Now there is another premium amount but this amount is stored on basis of value type ...let us say for value type 'prem' = premium amount .
    these amount are in different field can i shown it in same column in BEx query.
    If you can you please help .

    use the selection criteria to restrict the field types in the query designer- use other variables to check the value
    if it doesnt reconcile- you can alternatively use a multi provider for the same thing- that way you will get the same amount in 1 column and you could restrict using the infoprovider column

  • How to set icon to a file type??

    How to assign an icon to the application generated file?
    Thanks in advance.

    What GUI do you work with?
    I assume you want to see the icons in Windows. You will have to modify the registry, possibly by some native API call. Have a look at the MSDN library then.
    Hiran

  • Reset icons for a file type system wide?

    All of the .mpg files on my system are from a camcorder that records MPEG-2 video with 5.1-channel audio that QuickTime cannot play.
    By default all of these .mpg files had a QuickTime icon, even though QuickTime can't play them. I assigned a different application (VLC) to these files through the normal Get Info >> Open With >> Change All method and now all of my .mpg files open with VLC and play just fine.
    However, after I pressed Change All it seems the system changed about half of the icons on my .mpg files to VLC's icon and left the rest with QuickTime icons.
    Is there any way to change all the .mpg icons back to one or the other (preferably VLC, since that's what actually plays them)?
    Needless to say changing icons one file at a time would be too time consuming.
    Any help appreciated.

    The problem I had may be similar to yours. I de-installed iWork 8, after testing it. I have a registered copy of iWork 6 and i was happy.
    Anyway, after the de-installation all the Pages icons where folder icons!?! While searching the net for a solution, because none of the described methods worked, I remembered that *Onyx, the maintenance program, has a function to delete and rebuild the application-file links*.
    So I did this and everything was fine after assigning the default application (Pages)...except one of my pdf file icons on the desktop was broken, so be aware!

  • DNG file types don't show thumbnails or previews

    I am having trouble with Adobe Bridge CS5 for Mac OSX.  Up until last week it was working fine.  I haven't made any changes to my computer or my camera or anything like that.  But now .DNG files won't show their thumbnail or preview.  I only see the icon for the file type in the thumbnail list, and then when I click on the thumbnail, I just see a bigger version of the file type icon in the preview window.  However, JPEGs show up just fine.
    I've searched through this forum and tried:
    - Resetting the Workspace
    - Resetting Bridge to default (Opening it with the Option key pressed)
    - Purging the cache
    - Checking that Camera Raw is properly installed (I have 6.7)
    - Updating DNG Converter to 8.3
    But no luck yet.  Is this a new issue or something?

    What about your old DNG photos which used to display properly? Can you still see those okay?
    Have you set the Compatibility preference in DNG Converter to Camera Raw 6.6 and later?
    Can you confirm that you have only one copy of Camera Raw 6.7 installed, and no other versions in alternative File Formats folders?
    You could also try ACR 6.7.1:
    Mac http://www.adobe.com/support/downloads/detail.jsp?ftpID=5602
    Windows http://www.adobe.com/support/downloads/detail.jsp?ftpID=5603

  • Icons in Finder for many file types are now blank

    For no reason at all when I booted my Mac today many of the icons for my file types have just dissapeared! Anyone have any idea how to get them back? It is REALLY annoying because it makes files look like the are a folder deeper than they really are when using the list view which I always do. It's not all icons though but noticably it's all archives (.zip, .tar.gz .jar) and CSS, JS and JSP files.

    For the second tiem this week the answer to my problem with OS X is a re-boot. I'm used to that working on Windows but not on OS X. This kind of thing should not be happening but it is and it didn't used to happen.

  • File type jpeg in BLOB Oracle 10g

    Hello all,
    I need to know if Oracle 10g BLOB datatype supports jpeg file type.
    Thank you,
    Sonya

    Hi,
    >>I need to know if Oracle 10g BLOB datatype supports jpeg file type.
    BLOB means Binary Large Object. So, any binary data is supported.
    Cheers
    Legatti

  • How do I change the desktop Icon for an external hard drive?  I have gone to "Get Info" and tried dragging and dropping  several formats of pictures and the icon changes to the generic image of that file type.

    how can I change the desktop icon for an external hard drive.  Using LaCies and Dimple hard drives.

    One of the things I've found with OS X (at least with Snow Leopard, which is my first excursion into OS X), is that all too often the thumbnail displayed on a file, whether a file created or one downloaded, is a false thumbnail. That is, when you do a Get Info on the file the icon in the upper left is the generic icon for that file type, rather than the thumbnail displayed in Finder. Makes it a bit difficult to copy.
    Apparently Finder uses Preview in the background to generate the displayed thumbnail without actually creating one.
    What I've resorted to doing, particularly with graphic images, is to process them with GraphicConverter - I have its prefs set to automatially add thumbnails and previews. With an individual file this means opening it in GC and doing a Save As. However, a much easier and faster way is when there are two or more such files; I put them in a common folder and drop the folder onto GC. GC then opens them in a catalog view, in the process adding real thumbnails and previews to each automatically. Doesn't take long to do several hundred files that way.

  • Can't Associate AE File Types

    I am running Adobe Creative Suites CS4 for my company. However, we had a file we needed to open so we also installed After Effects CS5.5.
    However, now all the AE files open in CS5.5 and this doesn't work for us as our plugsin are installed in CS4. I've tried several times in Windows 7 to associate AE files back to CS4.I've tried through the Control Panel under Default Programs and the right click context menu by "Open With". The problem is when I nativate to the After Effects.exe for CS4, it WILL NOT load in the Windows menu to allow me to re-associate it. The only option remains CS 5.5.
    Any way I can perhaps manualy associate these files by doing some kind of edit in the Registry?
    Thanks!

    See this or that on how to change icons for associated file types in Windows 7 or just do a Google search...
    Bear in mind that the location of file you may want to pick an icon from is
    C:\Program Files (x86)\Adobe\Adobe After Effects CS4\Support Files\AfterFX.exe

  • Remove the unique icon for movie files

    In Finder, I get a custom icon for each movie file that is the first frame of the movie. That doesn't help me, so I want to change it to only show the QuickTime image as a custom icon. This is the behavior of Tiger and it was useful to me. I don't get any benefit out of seeing the first frame. I get a benefit out of instantly knowing it is a movie file. Please reply if you know how to revert Leopard to using the application icon rather than the first frame image as the document icon.

    Moof666 wrote:
    Progress? I think not. Anyone know a hack to make the Finder show app icon for all files at once?
    Open a Finder window, go to Macintosh HD (or whatever the boot volume is called in your system), click the little gear icon/button, and select "Show View Options", then un-tick "Show icon preview", and click on the "Use as Defaults" button (if this button is not active, select a different option from the Arrange drop-down menu, and it will activate).

Maybe you are looking for

  • Difference in Pricing of Credit memo Inovice AND Credit memo

    We have difference in prices when we create a return credit memo. We have scale price and for 500 product the scale price is 92 rs. the basic price is 112. We have created an order for 500 items where 92 rs has piced and in the invoce for 500 92 rs h

  • Convert data is not writng anythng in LSMW?

    Hi Friends, After uplaoding the data, when I goto convert data step and execute. It reads 2 records but it doesn't write anything. So I am not able to execute the batch input method? I am doing that for Material master? Can any one help me regarding

  • Any suggestion on how to stop "update service provider"

    Every time I connect my iPhone to my iMac computer, iTunes keeps asking to update my service provider. I keep updating the settings, but it keeps asking me to update service provider every time I connect. How do I stop this from happening?

  • Adobe Presenter 8.0 Download Link

    Hi, Please provide Adobe Presenter 8.0 exe Download link. My company wants to use Adobe Presenter 8.0 to develop WBT's. Thanks, Satish

  • Failing ODS activation

    Hello all,     I am on BW 3.5.  I have an ODS that serves as a datasource for five cubes and another ODS.  This source ODS loads these targets every day, and has been in place for years.  No changes have been made recently to any of the involved stru