How to insert JPG action on MimeType.rdf?

I would like to insert an action on Firefox > Option > Applications to JPG files. Everytime I try to download a JPG file, Firefox show only Open and Save options, but I would like to select to download automatically to every JPG files.

Hi DiegoM,
I'm not sure how to do this, but the following articles might help pointing you in the right direction:
* [http://kb.mozillazine.org/MimeTypes.rdf Mime Types on MozillaZine]
* [http://www.freedesktop.org/wiki/Specifications/AddingMIMETutor?action=show&redirect=Standards%2FAddingMIMETutor Adding MIMEs]
I hope that you find this information useful. Please let us know if this solves your problem.
Thanks!!
- Ralph

Similar Messages

  • How to Insert.jpg and .ico files onto to JButton

    Hi,
    When I used to inserta jpg and ico files in to JButton, it's not coming.
    Can please help me
    Thank You

    Swing related question should be posted in the Swing forum.
    I don't believe you can add an .ico file to a JButton. This section from the Swing tutorial on "How to Use Buttons" will show you how to add a .jpg to a button:
    http://java.sun.com/docs/books/tutorial/uiswing/components/button.html

  • How does firefox create the default mimetypes.rdf file?

    Hi, I am trying to update the default mimetypes.rdf file to add a list of new file types and the associated program to launch with but am struggling to find where/how the default mimetypes.rdf file is created.
    The Omni.ja file within 'C:\Program Files\Mozilla Firefox' has a version of the file but it is blank, what populates this file?
    I have tried replacing this file with the version we need to use, delete the Mozilla directory from my local profile and re-launch Firefox, but the newly generated mimetypes.rdf file is still the old version.
    I am using Firefox version 10.0.6

    Hi,
    I am in the same situation than you but I forced firefox to take my own file if I remove it from my profile.
    What i did:
    1 Create my own custom mimetypes.rdf file. Firefox Interface - Options - Options - Applications...
    2 Copy mimetypes.rdf in C:\Program Files (x86)\Mozilla Firefox\browser\Defaults\profile
    So, if I remove the mimetypes.rdf file from my profile it takes from default location fine. However deleting the profile, opening firefox again it doesn´t use my own mymtypes.rdf file in the new profile, insteant it creates the "default installation" one.
    On the other hand, I tried to set pdfjs.disabled = true from about:config, however although it sets the default PDF app "Adobe Acrobat", it doesn´t work. It doesn´t open any pdf file.
    I am thinking to create an advertised shortcut in order to replace the mimetype.rdf when the user starts firefox (I distribute the firefox settings in a MSI) depending of the date of the file but it will take a few seconds each time the user run firefox. I really don´t like it...
    Sorry for don´t help too much...
    If anyone could post how firefox create mimetypes.rdf in new profiles...

  • How to give a profile a default mimetypes.rdf file?

    Hello,
    I'm deploying Mozilla Firefox 31ESR on thousands of computers. I'm looking for a way to pre-configure how firefox handle the mimetypes. For instance, to open pdf with Adobe Acrobat Reader.
    To achieve this, I put a mimetypes.rdf file in "C:\Program Files (x86)\Mozilla Firefox\browser\defaults\profile".
    When the profile is created, this file is copied, then modified.
    The lines:
    <RDF:Description RDF:about="urn:mimetype:handler:application/pdf"
    NC:useSystemDefault="true"
    NC:alwaysAsk="false" />
    Becomes:
    <RDF:Description RDF:about="urn:mimetype:handler:application/pdf"
    NC:handleInternal="true"
    NC:alwaysAsk="false" />
    -If I replace manually the file "mimeTypes.rdf" in the newly created profile, it works perfectly.
    It seems to be the same problem as: https://support.mozilla.org/fr/questions/1015378
    Why is the mimetypes.rdf file modified? How can I set a mimetype policy?
    Thanks a lot!

    It works for me with both the user.js file and your mimeTypes.rdf file.
    <pre><nowiki>user_pref("pdfjs.disabled", true);
    user_pref("plugin.state.nppdf", 2);
    </nowiki></pre>
    <pre><nowiki><?xml version="1.0"?>
    <RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
    xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <RDF:Description RDF:about="urn:mimetype:handler:application/pdf"
    NC:alwaysAsk="true"
    NC:saveToDisk="true">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/pdf"/>
    </RDF:Description>
    </RDF:RDF>
    </nowiki></pre>

  • How can I create a "Next" button with Insert database action

    Hello,
         I want to create a "Next" button that will redirect to another page and at the same time to do an INSERT database action. I've searched on google but I didn't find nothing specific that could help me.
    Below are some screenshots:
    http://imagizer.imageshack.us/v2/800x600q90/22/2yqj.jpg
    http://imagizer.imageshack.us/v2/800x600q90/585/wbn6.jpg
         Thanks.

    DO NOT USE THIS CODE !!!!
    Declare 
      -- Added by ramani 20-feb-2013 
       Seq_Val_ Number; 
    begin 
        if  :P17_NWM_DOC_NO  is null  then 
           Select Nvl(count(NWM_DOC_NO),0) + 1  -- THIS IS VERY VERY WRONG !!! REPLACE WITH A SEQUENCE !!!!!!!!!!!!!!
            into Seq_Val_ 
            from  DMS_NEW_MASTER; 
           -- ref number 
            return  Seq_Val_ ; 
            --summa oru elsif irukku 
           end if;  
    end; 

  • Acrobat Pro / How to insert a jpg or a png in interactive pdf? (I can only insert pdfs)

    Hi, I have created a placeholder for picture in an interactive pdf.
    When I want to insert a picture the only format allowed is pdf.
    I would like to be able to insert jpg or png.
    I had a look online and it seems that I should be able to change the user preferences of Adobe to allow formats like jpg and png to be inserted.
    I can't find the way to do that.
    Any idea?
    Thanks a lot
    Colleen

    Thanks Sara, your suggestion is a very good alternative. By using the tools I can add pictures of any types.
    Following this exemple can I do the same in Acrobate Reader?
    However I was trying to do something different. I have create an action in Acrobat Pro using Javascript
    https://www.youtube.com/watch?v=3rlSo18ntYU
    When I want to insert a picture I have format options but only the pdfs are showing (see screenshot attached). As Bernd told use Acrobate Reader allows only PDFs to be inserted but Acrobate Pro should allow us more options I think... Anymore thoughts?
    Thanks a lot
    Colleen

  • How to insert a image file into oracle database

    hi all
    can anyone guide me how to insert a image file into oracle database now
    i have created table using
    create table imagestore(image blob);
    but when inserting i totally lost don't know what to do how to write query to insert image file

    Hi I don't have time to explain really, I did have to do this a while ago though so I will post a code snippet. This is using the commons file upload framework.
    Firstly you need a multi part form data (if you are using a web page). If you are not using a web page ignore this bit.
    out.println("<form name=\"imgFrm\" method=\"post\" enctype=\"multipart/form-data\" action=\"FileUploadServlet?thisPageAction=reloaded\" onSubmit=\"return submitForm();\"><input type=\"FILE\" name=\"imgSource\" size='60' class='smalltext' onKeyPress='return stopUserInput();' onKeyUp='stopUserInput();' onKeyDown='stopUserInput();' onMouseDown='noMouseDown(event);'>");
    out.println("   <input type='submit' name='submit' value='Submit' class='smalltext'>");
    out.println("</form>"); Import this once you have the jar file:
    import org.apache.commons.fileupload.*;Now a method I wrote to upload the file. I am not saying that this is correct, or its the best way to do this. I am just saying it works for me.
    private boolean uploadFile(HttpServletRequest request, HttpSession session) throws Exception {
            boolean result = true;
            String fileName = null;
            byte fileData[] = null;
            String fileUploadError = null;
            String imageType = "";
            String error = "";
            DiskFileUpload fb = new DiskFileUpload();
            List fileItems = fb.parseRequest(request);
            Iterator it = fileItems.iterator();
            while(it.hasNext()){
                FileItem fileItem = (FileItem)it.next();
                if (!fileItem.isFormField()) {
                    fileName = fileItem.getName();
                    fileData = fileItem.get();
                    // Get the imageType from the filename extension
                    if (fileName != null) {
                        int dotPos = fileName.indexOf('.');
                        if (dotPos >= 0 && dotPos != fileName.length()-1) {
                            imageType = fileName.substring(dotPos+1).toLowerCase();
                            if (imageType.equals("jpg")) {
                                imageType = "jpeg";
            String filePath = request.getParameter("FILE_PATH");
            session.setAttribute("filePath", filePath);
            session.setAttribute("fileData", fileData);
            session.setAttribute("fileName", fileName);
            session.setAttribute("imageType", imageType);
            return result;  
         } And now finally the method to actually write the file to the database:
    private int writeImageFile(byte[] fileData, String fileName, String imageType, String mode, Integer signatureIDIn, HttpServletRequest request) throws Exception {
            //If the previous code found a file that can be uploaded then
            //save it into the database via a pstmt
            String sql = "";
            UtilDBquery udbq = getUser(request).connectToDatabase();
            Connection con = null;
            int signatureID = 0;
            PreparedStatement pstmt = null;
            try {
                udbq.setUsePreparedStatements(true);
                con = udbq.getPooledConnection();
                con.setAutoCommit(false);
                if((!mode.equals("U")) || (mode.equals("U") && signatureIDIn == 0)) {
                    sql = "SELECT SEQ_SIGNATURE_ID.nextval FROM DUAL";
                    pstmt = con.prepareStatement(sql);
                    ResultSet rs = pstmt.executeQuery();
                    while(rs.next()) {
                       signatureID = rs.getInt(1);
                    if (fileName != null && imageType != null) {
                        sql = "INSERT INTO T_SIGNATURE (SIGNATURE_ID, SIGNATURE) values (?,?)";
                        InputStream is2 = new ByteArrayInputStream(fileData);
                        pstmt = con.prepareStatement(sql);
                        pstmt.setInt(1, signatureID);
                        pstmt.setBinaryStream(2, is2, (int)(fileData.length));
                        pstmt.executeUpdate();
                        pstmt.close();
                        con.commit();
                        con = null;
                if(mode.equals("U") && signatureIDIn != 0) {
                    signatureID = signatureIDIn.intValue();
                    if (fileName != null && imageType != null) {
                        sql = "UPDATE T_SIGNATURE SET SIGNATURE = ? WHERE SIGNATURE_ID = ?";
                        InputStream is2 = new ByteArrayInputStream(fileData);
                        pstmt = con.prepareStatement(sql);
                        pstmt.setBinaryStream(1, is2, (int)(fileData.length));
                        pstmt.setInt(2, signatureID);
                        pstmt.executeUpdate();
                        pstmt.close();
                        con.commit();
                        con = null;
            } catch (Exception e) {
                con = null;
                throw new Exception(e.toString());
            return signatureID;
       }

  • How to insert a number using ADO or OLEDB by oracle provider

    I create a talbe .
    Create Table A
    (id number(7));
    I use ADO to access the table a;
    _ConnectionPtr pConn=NULL;
    pConn.CreateInstance(__uuidof(Connection));
    _RecordsetPtr pRst=NULL;
    pRst.CreateInstance(__uuidof(Recordset));
    pConn->Provider="OraOLEDB.Oracle.1";
    try
         pConn->Open("","ISVISION","ISVISION",NULL);
         pRst->CursorLocation=adUseClient;
         pRst->Open("A",pConn.GetInterfacePtr(),adOpenStatic,adLockOptimistic,adCmdTable);
         pRst->AddNew();
         pRst->Fields->Item[0L]->Value=100L;
    //It raise a exception,why?
    //If I convert the datetype of "ID" to CHAR(7)
    //and pRst->Fields->Item[0L]->Value=L"100",it is ok.
         pRst->Update();
         pRst->Close();
         pConn->Close();
    catch (_com_error& e)
         MessageBox(e.Description(),"error",MB_OK|MB_ICONWARNING);
         return ;
    if (pConn)
    pConn.Release();
    if (pRst)
    pRst.Release();
    I create a table A。
    create table A
         ID number(7)
    Now ,I use OLE DB to access the table A;
    struct CIsA
         CIsA()
              memset(this, 0, sizeof(*this));
    public:
         DB_NUMERIC m_ID;
         BEGIN_COLUMN_MAP(CIsA)
              COLUMN_ENTRY_PS(1, 7, 0, m_ID)
         END_COLUMN_MAP()
    DEFINE_COMMAND(CIsA, _T("SELECT ID FROM A"))
    CDataSource DataSource;
    HRESULT hrt=DataSource.Open(_T("OraOLEDB.Oracle.1"),NULL,_T("ISVISION"),_T("ISVISION"));
    CSession Session;
    hrt=Session.Open(DataSource);
    CDBPropSet propset(DBPROPSET_ROWSET);
    propset.AddProperty(DBPROP_IRowsetChange, true);
    propset.AddProperty(DBPROP_UPDATABILITY,
         DBPROPVAL_UP_INSERT | DBPROPVAL_UP_CHANGE | DBPROPVAL_UP_DELETE);
    CCommand<CAccessor<CIsA> > Command;
    Command.Open(Session,NULL,&propset);
    tcscpy((TCHAR*)Command.mID.val,_T("1245"));
    Command.m_ID.sign=1;
    hrt=Command.Insert();//It is wrong,why?
    Command.Close();
    Session.Close();
    DataSource.Close();
    In Fact,the two problems is the same. The key of problem is how to insert a number into oracle.
    help me! thank you.

    hi
    create a table something like this.
    create table image(
    Image_Id number(5),
    Image    blob);create a form with the same table and use the following code.
    when-button-pressed trigger.
    read_image_file('c:\image_name.jpg' , 'jpg' , 'image.image');if its correct/helpful please mark it thanks.
    sarah

  • How to insert an image file in Oracle database

    hi
    can you please tell me how to insert an image file into oracle database????
    suppose there is one image file in c:\pictures\rose.jpg. how to insert that file into database? theoretically i know that will be BFILE type but i dont know how to insert that.
    will be waiting for your reply........
    thanks & regards,
    Priyatosh

    Hello,
    The easiest way to load a blob is to use SQL loader.
    This example comes from the utilities guide:
    LOAD DATA
    INFILE 'sample.dat'
    INTO TABLE person_table
    FIELDS TERMINATED BY ','
    (name CHAR(20),
    1 ext_fname FILLER CHAR(40),
    2 "RESUME" LOBFILE(ext_fname) TERMINATED BY EOF)
    Datafile (sample.dat)
    Johny Quest,jqresume.txt,
    Speed Racer,'/private/sracer/srresume.txt',
    Secondary Datafile (jqresume.txt)
    Johny Quest
    500 Oracle Parkway
    Secondary Datafile (srresume.txt)
    Loading LOBs
    10-18 Oracle Database Utilities
    Speed Racer
    400 Oracle Parkway
    regards,
    Ivo

  • How to handle multiple actions in the webservice ?

    Hi Guys,
    I have multiple operations in the webservcie and under soap action in the receiver soap adapter, i dont know how to handle multiple soap operations.
    can anybody guide me, how to acheive this ?
    Thanks,
    srini

    Hi Srini !
    This weblog shows the general design of a scenario with BPM
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    This link:
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    show how to insert a predefined BPM pattern. You could use one of the BpmPatternSerialize.... patterns to see how you BPM should look like...
    Basically it should be:
    1) Receive Step (async/sync, as you need) to trigger the BPM
    2) Send step (sync) for first webservice
    3) Send step (sync) for second webservice
    N) Send step (sync) for N webservice
    N+1) if the whole communication is sync, here you need to use a send step to return back the answer to sender.
    Regards,
    Matias.

  • How to insert images in a table

    Hi all,
    Iam working On Oracle10g
    can any one explain how to insert images in a table.
    Any help will be much appreciated!!
    Thanks.

    Hi,
    Try like this
    step1: Create a folder & place the image in it.
    for eg: place the image 'Sunset.jpg' in 'IMAGEFILE' folder of D drive
    Step2: Create a Directory in sql*plus as
    CREATE DIRECTORY IMAGEDIR AS 'D:\IMAGEFILE';
    Step3: Grant previlage to user
    GRANT READ ON DIRECTORY IMAGEDIR TO PUBLIC;
    Step4: Create the table in which you want to insert the image
    create table loadalbum
    (name varchar2(100),
    image blob)
    Step5: Create the procedure as
    declare
    l_blob blob;
    l_bfile bfile;
    begin
    insert into loadalbum values ( 'Sunset', EMPTY_BLOB() )
    returning image into l_blob;
    l_bfile := bfilename( 'IMAGEDIR', 'Sunset.jpg');
    dbms_lob.fileopen( l_bfile );
    dbms_lob.loadfromfile( l_blob, l_bfile, dbms_lob.getlength( l_bfile ) );
    dbms_lob.fileclose( l_bfile );
    end;
    Now you can know whether the image is inserted or not by
    SELECT COUNT(*) FROM LOADALBUM;
    COUNT(*)
    1
    which means image is inserted.
    Hope this may help you.

  • How to insert data from site into DB?

    Hi
    Does anyone know how to insert data into a database from a
    website?
    I have created a Registration form for users to register to
    my web site. With this I would like the data they have entered to
    be stored in a MySQL database. I have created the a form and used
    the record insertion form wizard.
    When they have registered, I need to be able to check their
    username every time they log in.
    If anyone could help, it would be greatly appreciated,
    thanks Lou.

    LoobieLouLou wrote:
    > When I inserted a form, I enetered a name and the method
    was POST, but it also needed an action.
    > How do I write in java script that it needs to be
    inserted into the database?
    You can't do it with JavaScript. You need to use a
    server-side language
    like ASP, ASP.NET, ColdFusion, or PHP. Dreamweaver automates
    a lot of
    the process for you, but you need to choose your server model
    first.
    It sounds as though you are completely new to this. First ask
    your
    hosting company whether it supports a server-side language,
    and if so,
    which one. Then open Dreamweaver help (F1) and read the
    section titled
    "Preparing to Build Dynamic Sites".
    Working with server-side languages and databases isn't
    difficult, but
    it's not something you can pick up in five minutes or be
    shown how to do
    in a couple of forum posts.
    If you can't make up your mind which server-side language to
    use,
    ASP.NET is the most difficult of the four I mentioned. ASP is
    popular,
    but is no longer actively developed, so will eventually die
    out
    (although it will take many years to do so). ColdFusion and
    PHP are
    relatively easy to learn. I prefer PHP, but all of them do
    basically the
    same thing. However, you must choose one; they cannot be
    mixed.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to insert into DB in batches using XSU

    Hello,
    I am inserting data from xml files into different tables .I have got four queries .I want to inert them using batch so that if in any query exception is raised,then whole thing is rollback.
    Thanks in advance for any help.

    Hi Linda,
    Yes, it makes sense to do it this way... Otherwise there are lots of complications related to calling an insert statement or plsql pkg from code.
    Questions:
    1) Can anybody please paste dummy code to be written in AM?
    2) How to add "AM Commit" from data controls to bindings? (When I click on the + button on my page definition select action it doesn't show 'Commit')
                                                                                           (The only way to add this action is by drag it and drop it as a button)
                                                                                           (How can I override action listener for this button since it would be #{bindings.Commit.execute})
                                                                                           (I am planning to add all my logic to collect attributes, insert in VO and execute commit in one button)
    Thanks
    Rahul

  • How to insert a button in a form in a j2me application ?

    Dear Friends,
    I'm new to J2ME. I want to know that how to insert a button in a J2ME form. What are the button action listener available here ? Please provide sample code.

    Form form = new Form("Form Title");
    StringItem button = new StringItem("", "Button text", Item.BUTTON);
    Command buttonCommand = new Command("Button command", Command.ITEM, 1);
    button.setDefaultCommand(buttonCommand);
    button.setItemCommandListener(new ItemCommandListener() {
    public void commandAction(Command c, Item item) {
    System.out.println("Button was clicked");
    form.append(button);

  • How to insert a character and paragraph break at the beginning of a paragraph using Grep

    Dear Community!
    I am stucked...
    I have several books in indesign, which I want to export into epub. I have a standardized procedure, to be able to assign the task to students.
    My problem i I have a paragraph style 'heading2' and I would like to insert a paragraph break before which is styled 'new page'.
    Here is the theory I have thought about:
    -with find and change find the style 'heading2'
    -insert a special character + paragraph break before the first character of the paragraph
    -with a second find and change find the special character
    -replace with nothing and style with 'new page'
    My question is how to insert with grep (?) before the first character anything.
    Please help me!
    Thanks in advance
    ND

    Look in the flyout panel of your Paragraph panel.
    (Or in the Online Help -- a resource a lot of people seem to overlook... It's even *called* "Keep Options". ...
    >I have a problem along these lines that I have not found the answer to by searching, and neither have I been able to start a new discussion on this. (These forums are kind of hard to figure out)
    ... on the top right of THIS web page I can see a heading "Actions", with below it the text "Start a discussion" ...)

Maybe you are looking for

  • Problem booting Solaris 10 on ProLiant server after installation.

    Hi all! I have a brand new HP ProLiant DL360 G5 server. It contains 6 internal hard drives. RAID 5 is configured on these drives using built-in HP Smart Array P400i controller. I've just installed Solaris 10 8/07 on this server. Solaris requires a dr

  • Installation of Oracle Service Bus 11g

    Hi guys, I have installed weblogic 11g (10.3.6) and Oracle Enterprise Pack for Eclipse 11.1.1.8 using the file oepe-wls-indigo-installer-11.1.1.8.0.201110211138-10.3.6-win32. Now I was trying to install the Oracle Service Bus 11g 11.1.1.7 and it says

  • Trying to export video, stuck at 0%. File in project is .mp4. I only have this problem with this type of file.

    Hello, I am trying to export a video and I'm stuck at 0%.  The file in the video is a .mp4 that I downloaded from my own Youtube page.  I have the same problem with any project containing this type of file.  I have tried to export as .mov, .Mpeg, .wm

  • Adobe CS5のアップデートができません(win8.1新規購入後)

    新しいPCのwindows8.1に.adobe design premium CS5 をインストールしました. アップデートを試みたのですが.adobe Application Manager で以下のエラーが出ました. 何度やっても調べてもダメなので.こちらで質問させていただきました. ■エラーメッセージ■■■■■■■■■■■■■■■■■■■■■■■■■■ 一部のアップデートがインストールされませんでした. 次のアップデートをインストールできませんでした.これらのアップデートをインストールする

  • Shifting of home directory possible ?

    i went through a lot of reading before i ventured into installation of arch. i installed from the august release and have successfully upgraded to current september 7 release. mistakes i commited.... i wanted to install home on a seperate partition a