What is the correct MIME type for an AD RMS protected PFILE?

Hi,
 The context of why this question is asked is as follows: In an SAP Webdynpro application (the UI is displayed in a web browser). We intercept the file with SAP data that is being downloaded, encrypt it using AD RMS and then send the modified (encrypted)
file back to be downloaded by the browser into the user's downloads folder.
 Because of this interception and modification of the text file being downloaded (.txt), which is now a .PTXT file (PFILE) there is a conflict in the MIME TYPE. 
So could you let me know what the MIME type for a PFILE would be? Is there a standard MIME Type for all these PFILES? (.ptxt, .pfile etc..)? And is it by any chance "application/octet-stream"?

Hi,
I also noticed this - it seems that Microsoft's 4 char extensions like .docx are not being recognized by application type so that either the web server or mod-plsql is defaulting to the "application/octet-stream" mime type which refers to a file with binary content - instead of the traditional "application/msword" mime type you would expect.
If you know, at the point of insert into your database table, both the mime type and file name, one workaround would be to check if the mime type is 'application/octet-stream' and the file's extension is ".docx" or other likely extensions and then treat it as mime type 'application/msword", etc.
Not really a solution but might be sufficient workaround depending on your situation.
Ted
Edited by: Ted Martin on Oct 25, 2012 7:27 PM

Similar Messages

  • Identifying the correct MIME type for file uploads

    How does Apex identify the MIME type of an uploaded file? I have a page that uploads a file and accesses it via APEX_APPLICATION_FILES. That works fine. The problem is that, for certain file types, the mime_types column is "application/octet-stream" instead of the correct file type. I think it's using the Content-Type from the client browser, though I'm not quite sure. Is there any way to override this server-side in Apex?
    I'm running Apex with mod_plsql. Adding an AddType directive to Apache and adding the correct association to the mime.types file did not work.

    Hi,
    I also noticed this - it seems that Microsoft's 4 char extensions like .docx are not being recognized by application type so that either the web server or mod-plsql is defaulting to the "application/octet-stream" mime type which refers to a file with binary content - instead of the traditional "application/msword" mime type you would expect.
    If you know, at the point of insert into your database table, both the mime type and file name, one workaround would be to check if the mime type is 'application/octet-stream' and the file's extension is ".docx" or other likely extensions and then treat it as mime type 'application/msword", etc.
    Not really a solution but might be sufficient workaround depending on your situation.
    Ted
    Edited by: Ted Martin on Oct 25, 2012 7:27 PM

  • Why do I still get giant gray 'X's instead of an audio player, even with the correct MIME type for my Ogg Vorbis file, whether coded in the audio tag or as a source?

    I uploaded Saturnalia.ogg to my site and used the audio tag to try to display it on my test page. I'd love to ditch the ultra-slow Flash players I currently use, but I don't want to leave most of my site's users wondering what the files sound like, where they are, and why are there giant gray Xs ruining my layout. The audio files work fine in Safari and Opera, and IE uses the correct fallback text. I've tried both coding the file into the audio tag and into source tags. I've set controls="controls" and tried both type="audio/ogg" and type="audio/vorbis". I've tried with and without autoplay.
    According to Mozilla, audio tags are supported, but I'm not seeing any of that support on my site.

    Where are you seeing that?
    Earlier:
    <audio src="dsh.ogg" controls="controls" type="audio/ogg">Your browser does not support the HTML5 audio tag.</audio>
    Now:
    [<object type="application/x-java-applet" width="580" height="15px" controls="controls">
    <param name="archive" value="cortado.jar" />
    <param name="code" value="com.fluendo.player.Cortado.class" />
    <param name="url" value="http://desolosubhumus.webs.com/dsh.ogg" />
    You need to install Java to play this file.
    </object>]<br />
    <audio src="dsh.ogg" type="audio/ogg">
    You need to install Java to play this file.
    </audio>
    *p tags removed for readability
    I know the audio tag should open before the object tag opens and close after the object tag closes, and that I shouldn't need duplicate fallback text, but it wouldn't show up that way. The way I have it set up now finally works on Firefox, IE (plays, not fallback text), Opera, Safari, and Chrome. I'm still trying to tweak the code to make it more standard (audio tags in the proper places), to clean it up so it's not such a huge chunk, and to see if I can get the applet to stay visible (which may not be possible, as the only way I've made it work is as a Cortado VIDEO instead of a purely audio file), and to make it stop autoplaying instead of playing when the user chooses play. Perhaps a Kate stream for track labels and a play button image set directly behind the applet when the play button actually is.

  • What is the correct part number for the LCD inverter board for an A1138 15" powerBook G4 ( 1.67GHz superdrive/ Hi-res)?

    What is the correct part number for the LCD inverter board for an A1138 15" PowerBook G4 ( 1.67GHz superdrive/ Hi-res model)?

    Hello,
    Part number 614-0305-A
    Hope this helps.

  • What is the logical message type for Inbound Credit Memo (MM)

    Hi Folks,
    What is the logical message type for Inbound Credit Memo (MM)
    Plz explain.
    Thanks,
    Matt

    Hi Mat,
      The logical message types are as follows.
      /DSD/HH_CREDITDATA             DSD Credit Exposure and Credit lLmit
      CREADV                         Credit memo display
      CRESTA                         Copy credit status (DebtorCreditAccount)
      SBINV                          Credit memo procedure with invoice creation
      SBWAP                          SD Credit Memo Procedure with Automatic Postin
    You can search for message types in database table EDMSG.
    Regards,
    Vimal.

  • What's the correct brightness setting for viewing iphotos

    What's the correct brightness setting for viewing photos accurately on iphoto.

    What's the correct brightness setting for viewing photos accurately on iphoto.

  • HT3228 What's the correct email settings for the fastest email receiving on my iPhone 4s

    What's the correct email settings for the fastest email receiving on my iPhone 4s

    As no one here knows who your email provider is, no, no one can help. Have you tried looking at your email provider's help pages? Done an internet search?

  • What is the best data type for wallet application?

    Hi Friends..
    I want to know what is the best data type for wallet application..
    Assume that, i want to the Total of money saved digitally in Applet Wallet..
    And then if there's any transaction the Total of money which saved digitally in Applet Wallet would be Subtracted or Added depends on how much money that spent or saved..
    Which one is the best implementation of these scenarios :
    1. I save the User ID and Total of money in the Java Card, and then if there's any transactions, it would be added or subtracted directly and then saved again in the Java Card
    2. Or.. I save the User ID in the Java Card whereas Total of money in the Database, and then if there's any transactions, the ID would be read from the Card, and then select the Database based on that ID, and then Add or Subtract the money depends on how much money spent in the Transaction
    Please help me regarding this
    Thanks in advance

    Hi,
    Personally I would choose to store the total amount stored on the card. You could use two shorts (short[] perhaps) to store an integer (add more shorts to increase precision) and simply handle overflow your self. You could even look into using a third party library (or class) that treats a byte array as a big integer etc. There were some posts recently on floating point arithmetic that could be helpful for you since you will probably want to use decimals and JC does not natively support floats.
    Cheers,
    Shane

  • What is the correct Page Width for Mobile Device???

    Hi All
    Just have a question that "What is the correct Page Width for Mobile Device???"
    Is the Default 380px width is right? or 320px?
    Because the average smartphone is having resolution is 320X480 pixels...
    also in this video http://tv.adobe.com/watch/muse-feature-tour/adobe-muse-designing-for-mobile-devices/ Dani Beaumont created the Mobile version website in 320px width (If you watch the video carefully you can notice the page width is 320px)
    And if the default page width 380px taken, will it be displayed correctly on every smart phone (average & high end)?
    please reply if you have any suggestions

    HI. I have designed a mobile web site that is currently 450pixels wide. This is the first one I have done. When it displays on some mobile phones, the width of the entire page is scaled down and it only fills about 1/2 of the width of the mobile phone with a whole pile of mrgin to the right. Is this because I should have designed it to be 380 pixes wide or have I done something else wrong. The test site is at:
    http://ancasterdental.com/muse/phone/index.html
    Please help me if you can. Thank you.
    john.

  • What is the correct wireless driver for x31 type 2672-phh ?

    Do i have to install a wireless network driver first ? What is the correct driver for a x31laptop type 2672-PHH ? Is it the "6hwc05ww.exe" ? Its not working for me. A command prompt just pops-up and saying something "kill_app.exe" and "inst_app.exe" then it just disappears. What is the correct driver ?
    Message Edited by kleinski23 on 06-23-2009 03:01 AM

    Hi and welcome to the forum pythonscript!
    If it's driver issue then you should see yellow marks in the device manager, your post doesn't say so, but let's start with the driver. Your system has ThinkPad card and following is the correct driver that needs to be installed for your wireless card:- http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-73701
    There is a hardware wireless radio switch on your SL410, make sure it is turned on too.
    Keep us informed.  
    Maliha (I don't work for lenovo)
    ThinkPads:- T400[Win 7], T60[Win 7], IBM 240[Win XP]
    IdeaPad: U350
    Apple:- Macbook Air [Snow Leopard]
    Did someone help you today? Compliment them with a Kudos!
    Was your question answered today? Mark it as an Accepted Solution! 
      Lenovo Deutsche Community     Lenovo Comunidad en Español 
    Visit my YouTube Channel

  • What is the correct part number for the ac-charger for hp mini 110-1191eo (part vj213ea#uuw)?

    I need to find the correct part number for the ac-charger for hp mini 110-1191eo (part vj213ea#uuw).
    This question was solved.
    View Solution.

    Good question.
    That I don't have a definite 100% answer to.
    It probably is OK. Wattage is what it is rated at. More wattage is probably a good thing, and I have read that = or - .5v is not supposed to be an issue.
    You can do a google search of the part number for your power adapter and see if they still carry it, if you are concerned.
    Paul

  • What is the correct installation sequence for my ATI Radeon 9800 PRO MAC AGP 128MB into my Quicksilver 867 G4?

    Hi.
    I just got my used ATI Radeon 9800 PRO MAC AGP 128MB card.
    What is the correct installation sequence into my Quicksilver 867 G4 running 10.4.11 on one drive 10.5 on another?
    The original NVIDIA GeForce2 MX - 32MB SDRAM went bust.
    Is the driver build in 10.4?
    Do I remove the old driver?
    If I need to install the driver that came with it, (10.3.6) should the card be installed first?
    What about firmware updates?
    Thank you for all your time and patience.
                                                                                        W.W.

    I think it's the card, but here are some files that may affect it...
    /Users/YourUserName/Library/Preferences/ByHost /com.apple.preference.displays.<12digitHex#>.plist
    /Library/Preferences/com.apple.windowserver.plist
    /Users/YourUserName/Library/Preferences/ByHost/com.apple.windowserver.<12digitHe x#>.plist
    /Users/YourUserName/Library/Preferences/ByHost/.GlobalPreferences.<12digitHex#>. plist

  • WHat is the best index type for non uniqueness / Varchar columns in SQL 2008 R2

    Hello All Greetings,
    Please help me here with my doubt,
    in my table i have two columns about a million rows, it has about 20 columns in it, three columns with name as Period, Gender so most of the time these two columns use in where clause,
    Gender  will contain Either M or F , Period contains YYYY-Month (2013-December, 2013-August) etc so i would like to add a Index to these two columns so that in will increase the performance, so please let me know what type of indexes i need to add to
    these columns in the table,
    please note that only one time we will add data to the table which will take only 2 minutes but we query the table every day
    so my question what is the best index type that i need to create on columns with non uniqueness values in the column.,
    Thank you In Advance,
    Milan

    There is nothing whatever wrong with creating an index on a VARCHAR column, or set of columns.
    Regarding the performance of VARCHAR/INT, as with everything in a RDBMS, it depends on what you are doing. What you may be thinking of is the fact that clustering a table on a VARCHAR key is (in SQL Server) marginally less efficient than clustering on a monotonically
    increasing numerical key, and can introduce fragmentation.
    Or you may be thinking of what you have heard about writing JOINs on VARCHAR columns - it is true, it is a little less efficient than a JOIN on numeric type, but it is only a little less efficient, nothing that would lead you to never join on varchar cols.
    None of this does not mean that you should not create indexes on VARCHAR columns. A needed index on a VARCHAR column will boost query performance, often by orders of magnitude. If you need an index on a VARCHAR, create it. It makes no sense to try to find an
    integer column to create the index on - the engine will never use it.
    Check this reference: http://stackoverflow.com/questions/14041481/is-it-good-to-create-a-nonclustered-index-on-a-column-of-type-varchar
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • What is the correct part number for an iPhone 3g battery

    It seems there are many different APN's for iPhone batteries.  What are the proper part numbers for the 3G and 3Gs?  Does it matter what the iOS is?

    The only supported source for iPhone batteries is Apple. Take it to an Apple store and they will replace the battery for $79. There are no officially supported batteries available from other sources; all of them are aftermarket replacements. The version of iOS doesn't matter. If you really want to install an aftermarket battery go by the reputation of the seller; that's the best you can hope for. Note that if you replace it yourself Apple will no longer service or support your phone.

  • What is the correct charger W for my mac?

    My charger just died.
    It is already 2nd on my old but faightful mac A1226 SantaRosa 15inch.
    My Question is: What is the correct charger Wats?
    There is a lot 45, 65, 85W, but which one is mine?
    Original I had was 65, then I read that it shall be 85W coupe of years ago, so I had 85W. Now I am going to buy another one and I am still confused wth that as many yeas before or even more.
    Any suggestion?
    Thanks,
    Dali

    "Original I had was 65"
    You can buy either the original, or one with a higher wattage.

Maybe you are looking for