How does apex detect the MIMETYPE of an upload?

Hello,
I need to import a bunch of files from the OS filesystem to my own table (blob).
For implementing the download of these files I need to know the mimetype.
Now, the files are stored in my table, but I have no clue how to detect the mimetype of
my files (blob).
How does Apex detect the mimetype of an uploaded file?
Thanks,
Michael
Edited by: MJaro on 21.09.2010 15:52, Reason: little typo

Michael,
Mimetype detection is done during upload, if you don't have a mimetype column in your table where APEX can store it, this information is lost.
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at

Similar Messages

  • How does iMessage detect the other end as being an iOS5 device?

    Well, the discussion topic pretty much says it all.
    I have a lot of friends with iPhone and I know for a fact that they already are using iOS5 (my wife, for example - I did the update myself), but when I first tried using iMessage with them, it didn't work. An SMS was sent instead.
    It works for some, it doesn't for others. I don't know exactly how the detection works.

    Bassicaly ....  It will send as a standard SMS -green- if one of you has iMessage turned off, or you are outside a 3G or wifi area. In all other situations when both sender and receiver have activated iMessage it will go -bleu-.
    That how it should work. But it doesn't Apple doesn't check the receiver it will just send it as an iMessage
    Probably a BUG ...

  • How to determine the mimetype of an uploaded file (GUI_UPLOAD)?

    Hi everybody.
    I use method cl_gui_frontend_services=>gui_upload to upload files and save the binary data in the database. to preview the filetype (pdf, doc, jpg, ...) later i also need to store the mimetype.
    but how can I determine the mimetype of an uploaded file if several file extensions/formats are possible?
    thanks in advance for your help,
    Stefan

    call the function SKWF_MIMETYPE_OF_FILE_GET
    for this pass the filename , you will get the mime type.
    FILENAME                        C:\TEST.PDF  "pass this
    MIMETYPE                        application/pdf "you will get this
    FILENAME                        C:\TEST.JPG
    MIMETYPE                        image/jpeg
    FILENAME                        C:\TEST.DOC
    MIMETYPE                        application/msword

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • HT4241 Does dvi to HDMI adapter works on mid 2007 iMac? Some how my iMac detect the sharp tv but the tv screen is black.

    Does dvi to HDMI adapter works on mid 2007 iMac? Some how my iMac detect the sharp tv but the tv screen is black.

    you need mini dvi to hdmi cable
    http://store.apple.com/us/product/M9321G/B/apple-mini-dvi-to-dvi-adapter?fnode=5 1
    and
    http://store.apple.com/us/product/HA835ZM/A/belkin-hdmi-to-dvi-d-cable-2-m66-ft? fnode=51

  • How do i detect the maximum number of lines

    Situation:
    I have a textfield that displays about 8 lines of text before
    the content would need to be scrolled to view the remaining
    content.
    Question
    Rather than having some ActionScript that is constantly
    trying to scroll the field, how do i detect the following.
    How do i determine the maximum number of lines that may be
    displayed in a textField (or any type of text field) before
    scrolling would be needed?
    Please specify the method. Thank you.

    When tracing the output using the bottomScroll, it only tells
    me how many liines I have output to the textfiedl, it does not tell
    me how many lines the textfield can hold.
    How do I determine how many lines a textfield can
    hold?

  • How does APEX create and save new files. What extension does it save in?

    Hi can someone help me with this question?
    How does APEX create and save new files. What extension does it save in?
    Cheers!
    VJ

    It's really too bad we can't see VJ's face when the concept sinks in. This is one of my favorite moments when teaching APEX classes. Most people love it, some people don't. If nothing else it really proves the power and performance of the Oracle database. Each page view can generate 40+ queries, yet on the average system this takes less than .04 seconds.
    Keep in mind there are no undocumented features or "Oracle Internals" that the APEX team uses to achieve this performance, just sound database design. With every feature they add they evaluate how it will be used and design the tables and indexes to most efficiently answer the query. Sometimes this means going against "purist" normalized principals.

  • How do I detect the data type of a node?

    Hello all,
    I have a few quick questions about using Schema with XDK. I hope someone can answer this for me.
    1) How do I detect the datatype of a node? I need to be able to detect if it is date/time, number or boolean
    2) How do I then parse the string into date, number, etc. ?
    3) Does Oracle SOAP also support this kind of thing? (ie. detecting the data type of a node and then parsing it?)
    4) Does XDK support inline schema?
    thanks in advance!

    Thanks for the response.
    So are you saying that it is not possible or not easy to detect the typed value data type of a node? In past years, I have had experience with converting based on what looks like a number and it is impossible to safely assume something is a number just because it looks like one. For example a Product ID could be: 14E1 which many routines would detect as a scientific notation number. This is why I need to be able to detect the data type.
    But I am no Schema expert, but my understanding of schema is that simple types have standard designations. I think it is something like xsd:string or xsd:number, etc. But no matter what parser I look at them all seem to be implemented the same way and I can't figure out with any of them how to detect the datatype and then parse it appropriately. But it should be possible since it is written into the schema.
    Since I'm using Jdev I'm hoping that the Oracle XDK can do this, if not does anyone know of any good parsers that can? I'm having trouble even locating validating parsers. Aside from Oracles all I could find were IBMs and Xerces which both seem to be based on the same thing anyhow.
    Help or pointers in the right direction would be much appreciated since I have been struggling with this seemingly simple task for a long time.

  • Does Weblogic12c support Application Failover ? If yes, then how does Weblogic12c detect an application failure (OutOfMemoryException)?

    Hi all,
    Need help to setup High Availability at my workplace, can somebody please tell that Weblogic12c support Application Failover ?
    If yes, then how does Weblogic12c detect an application failure (OutOfMemoryException)?
    WebLogic Server - General@

    Hi there user,
    you can achieve HA in different levels:
    1. On a single machine - here you need to set up nodemanager. When started by nodemanager, any server failures will be detected and the nodemanager will try to restart it. OOME is an exception thrown by the JVM and the server state should go FAILED at some point then the NM will try to restart it. Nodemanager is the simplest HA solution you can and must implement for production environment;
    2. On redundant machine - you can configure WLS clustering, but you will need more complex environment, i.e. you will need a load balancer in front of the cluster to reverse proxy the requests. This scenario is can also use nodemanager to control the WLS instances on each machine
    3. Cluster with server/service migration - the most complex scenario where in cases of machine failure the WLS cluster can "relocate" resources (services and whole severs) to spare machines.
    In your case OOME should cause the JVM respectively WLS to be unresponsive, hence the nodemanager will detect this at some point and will try to restart the WLS.
    Hope this helps,
    A.

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • When i connect my philips 170c monitor to my macbook pro 13" early 2011, it does not detect the second monitor?

    help! i've googled around, but none seems to solve my problem
    my macbook pro is early 2011, 13", running lion.
    the philips monitor is vga only, so i have a mini display port to vga adaptor and connecting it to the vga.
    the screen on my mbp does turn blue, but no input is detected on the external monitor.
    any advice?

    If it does not detect the display automatically, try going to system preferences>displays, click detect displays.

  • How does this happen: The picture of recent apps you get when double clicking the home button showed in Settings-Wifi that I had been connected to a network I have not been near for two months. Its not a recent "image" of Settings-Wifi. Can anyone explain

    How does this happen: The picture of recent apps you get when double clicking the home button showed in Settings-Wifi that I had been connected to a network I have not been near for two months. Its not a recent "image" of Settings-Wifi. Can anyone explain?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • In InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to

    This may be a basic question... but in InDesign, how does one determine the pixel size of a text box? Specifically, we need to write text to specifications of 600 pixel width, and have no idea a) how to scale a text box to specific pixel width, b) how to determine what word count we can fit in, and c) how to do it in a table? Thanks!

    Set your ruler increments to pixels Preferences>Units & Increments. You can fill the text box with placeholder text Type>Fill with Placeholder text and get a word count from the Info panel with Show Options turned on from the flyout.
    From the Transform panel you can set a text box's width and height

  • In Photo 1.0, how does one access the map showing where all photos were taken, as could be done previously in iPhoto?

    In Photo 1.0, how does one access the map showing where all photos were taken, as could be done previously in iPhoto?

    Hi JohnDory,
    The information side-bar from iPhoto has been removed in Photos App, and so it's been converted into a pop-up window showing both the exposure, aperture and so technical photo parameters, as well as the comments, faces and LOCATION for that photo.
    This small floating window is shown whenever you click the button in the app title bar, right clicking a specific photo or pressing ⌘i
    If you open the albums view (clicking in the name of the album list, NOT an album name, you can see in your left sidebar - which can be shown or hidden) and press ⌘i without selecting a specific photo the Info pop-up will show the map for your whole library (as well as the total amount of photos, videos, GB used, etc)
    So, I'm afraid the "Locations" view (which I really loved) from iPhoto has been ripped off... and we can only get "some sort of locations view" by this method.
    As for locations... there is no option for manual geotagging (so, setting location to a specific photography which doesn't have it yet)... that really ****** me off 
    Regards,
    braincasualties.

  • How does oracle suggest the archive log

    Hi All,
    My question is about user managed backup and recovery.
    For User managed hot database refreshes.
    We  create a new controlfile and do cancel based recovery.
    How does oracle suggest the next archive to apply when we do "recover database using backup controlfile until cancel;"
    I mean we created a new control file ..rt.
    where is the information about the archivelogs stored.
    Thanks,
    Silver

    In the controlfile.
    The "using backup controlfile" means using a backed up controlfile, and you want to fool Oracle into thinking a point in time recovery will happen so don't use what would be the controlfiles current scn time to automatically say the recovery is complete.  If you have created a new controlfile, all it can know about is where the logs should be and compare to what log sequences the datafile headers have.  So it uses the init.ora parameters and what the data file headers have in them to figure it out. http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3151992035532#36651366990046
    If you backup controlfile to trace you can see log files that have the incarnation history.  See "Recovering Through a RESETLOGS with a Created Control File"  in Performing User-Managed Recovery: Advanced Scenarios

Maybe you are looking for

  • RE: [iPlanet-JATO] models

    Belinda, YES & YES What you are asking to do is EXACTLY what one of the primary value propositions of the JATO design. The JATO Overview 'whitepaper' specifically points this out as a limitation of other MVC frameworks. The constructors of the Views

  • How to delete all TABLEs in Schema SYS which are created since 09:15?

    Unfortunately a script created lots of tables in the wrong Tablespace (=SYSTEM) and Schema (=SYS). How can I delete (in one DDL command) all TABLES which are created inTablespace=SYSTEM and SCHEMA=SYS during the last 3 hours resp. since 09:15 of 25th

  • Anyone have any idea what the problem might be?

    I have a Macbook Pro model MA896LL. Unfortunately I shut the screen without powering the machine off or putting it to sleep and now I get no video. I can hear the machine chiming on and off but there is no video on the screen. I quickly researched it

  • Files and Folders fixed on the desk top

    I'm using 2 monitors and would like to move files/folders to the secondary monitor. I would also like the flexibility to position the folders where I want them and not where they end up automatically. Suggestions please.

  • Payment of duty for differential qty export

    Hi all, We are doing export thru stock yard . the process is as  under : Billing done from plant for say 100 Ton billing type F8 Excise invoice is created referring the Proforam invoce ARE1 is created and export is made under bond.. duty debited for