Open a File Dialog Box to browse through image files

Hi all
I need to develop a code to open a File Dialog Box to browse through Image Files in Oracle 10g.
Once the Image File is selected i need to save the file in a Table Column in the Backend Table.
Please help me.
Thanks
Nakul Venkatraman

Hi
Thanks for your prompt response on this.
I came across a Sample Form File which would allow the User to browse through files from local PC.
Following is the code :
declare
dirname varchar2(255);
v_filename varchar2(255);
begin
     message('1');
tool_env.getvar('E:\', dirname);
message('2');
dirname := dirname || '\project';
message('3');
v_filename := get_file_name(dirname,NULL,
'All Files (*.*)|*.*|' ||
'JPEG Files (*.jpg)|*.jpg|' ||
'Bitmap Files (*.bmp)|*.bmp|' ||
'TIFF Files (*.tif)|*.tif|' ||
'CompuServe Files (*.gif)|*.gif|' ||
'PC Paintbrush Files (*.pcx)|*.pcx|' );
message('4');
if v_filename is not null then
read_image_file(v_filename,'ANY','pp_foto.foto');
end if;
end;
The code is written inside WHEN-BUTTON-PRESSED Trigger.
When i run the form it is not opening the dialog box.
Please help.
Regards
Nakul

Similar Messages

  • Open File dialog box pops up even when file type is supposed to automatically open

    Even though I have selected "Do this automatically for files like this" the dialog still pops up when I click on that file type.
    Thanks

    An automatically download action is tied to a specific MIME type that the server send via the HTTP response headers and not to the file extension.<br />
    So it is possible that you have created this action for a different (or generic) file type.
    *http://kb.mozillazine.org/File_types_and_download_actions
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file

  • How to add list of multiple file types to file type of file dialog box in LabVIEW

    How to add list of multiple file types to file type of file dialog box in LabVIEW?
    In file dialog box there is option to add only one file type,in the list,not by seperating commas,
    regards,
    Naresh.N

    Write the file types in pattern Input string, separated by a semicolon ;
    For example:  *.vi;*.doc;*.jpeg;*.xls
    This should return the set of files with matching extensions
    Message Edited by devchander on 09-10-2008 08:02 AM
    Message Edited by devchander on 09-10-2008 08:03 AM

  • Greyed-out Files in the Open File Dialog Box

    I recently installed Logic Express 8 and then attempted to open a Garageband project. I used 'File Open' from the menu. When I click on my Garageband folder the dialog box shows all the .band files as greyed-out. This is also happening with older version of Logic Express such as the Tutorial song file.
    Anyone with a idea or seen this before?

    It seems to be a rather glaring bug in LE8 that will hopefully be fixed in the next update. In the meantime you can open LE8 files by going to File/Open Recent after launching. From there, other files can be opened by clicking on the Media button on the top right and then the Browser tab. Find your file & double click to open it. Also, you can just double-click a file on your desktop to launch Logic.
    GarageBand files can be opened by right-clicking and selecting "open with LE8."

  • 'Open a File' dialog box doesn't show 'Favorites'

    InDesign CS6, Windows 7:
    File/Open gives me this:
    Notice there are no 'Favorites' on the left.  I have to 'browse' for my file each time.  I have a ton of files on the network, and it takes several clicks to get to them.  Annoying when I'm opening several files a day.  The 'Recent Places' isn't too helpful here either.
    Now look at what happens in InDesign CC, Windows 7 with a File/Open:
    Look at all the 'Favorites' and easy browsing on the left side.  Why are the 'Open a File' dialog boxes so different in CS6 and CC?  I want the CS6 'Open' dialog to be just like the CC one.  (I prefer to use CS6, CC is buggy on my system.)

    Not helpful.
    What it is... is cumbersome and un-necessary.  Every other program in Windows  (even Word Pad) opens with the 'standard'  dialog with Favorites on the left.  Why did Adobe program it differently?  There has to be a fix in Preferences or something...

  • How to force the Netscape Browser to open the "Open or Save" dialog box?

    Hi, I tried to force the browser to open the "Open or Save" dailog box for downloading a file.
    response.setContentType(context.getMimeType(file.getName()));
    response.setHeader("Content-Disposition", "attachment; filename=\"" + file.getName() + "\"");
    This works fine with IE for all file types( Even though he prompts twice to Open the file directly). but Netscape opens the file directly in the browser with showing any dialog box for text and html files. Anyone knows how to force the netscape in this case or for any file type? Any help will be appreciated.
    Thanks

    any one has the solution for this issue ? I tried the search and I didnt find any answer.
    when your trying to open a pdf file as attachment is seperate window, it works well in IE but in netscape it opens up in the same browser, it doesnt open a seperate window
    res.setContentType( "application/pdf" );
    res.setHeader("Content-Disposition","attachment; filename=\"" + cofcFileName+"\"");

  • What is the open File Dialog box

    I am using a "File Browse..." item. With firefox a user can click on the provided Browse button or the corresponding text area to choose a file. However with IE7 the file dialog box on appears if the user clicks on the browse button.
    Can someone tell me what javascript can be used to open a file dialog box? (what is called when the browse button is clicked)
    Thanks.

    Thanks Carl,
    I thought APEX was doing some crazy javascropt stuff because I forgot about a style I had set.
    Anyway, I was getting an error if an IE7 user types in a crazy string into the file dialog box and hit submit (since it is not a file). So instead of preventing it I just used a try/catch block in my custom doSubmit. If anyone else runs into this here is a little javascript to help:
    (I am used a uploading image, Carl has an example of that somewhere)
    <pre>
    function doSubmit(r) {
    if (ser_changed.length > 0) {
         if (r == "UPLOAD" || r == "SAVE_CHANGES" {
              flowSelectAll();     
              $x_Value('pRequest',r)
    if (r == "UPLOAD") {
    try {                              /// this is where my fix is.
              document.wwv_flow.submit();
    catch(err) {
    html_HideElement('AjaxLoading');
    alert('Invalid file');
    } else {
    document.wwv_flow.submit();
                   }//save changes and stuff as request.
    else {
              var ans = confirm("You are about to exit the page without saving your changes!" + '\n' + "Click cancel to return to the page.");
              if (ans) {
              flowSelectAll();     
              $x_Value('pRequest',r);     
              document.wwv_flow.submit();
              }//when yes!
    $x('CANCEL_BUTT').disabled=false;
                   }//not save changes and stuff
              }//when there were changes made.
              else {
                             flowSelectAll();     
              $x_Value('pRequest',r);     
              document.wwv_flow.submit();
              }//where there were not changes made
         }//doSubmit
    </pre>
    <pre>
    function html_Submit_Progress(pThis,topass){
              if(pThis.nodeName=='INPUT'){pThis.value='...Loading...'}
    else{pThis.innerHTML='...Loading...'};
              html_ShowElement('AjaxLoading');
    window.setTimeout('$x("wait").src = $x("wait").src', 100);
    doSubmit(topass);
    </pre>
    Edited by: cmorris260 on Sep 19, 2008 3:30 PM
    Edited by: cmorris260 on Sep 19, 2008 3:31 PM

  • I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    Canon 1DX support was added to ACR in version 6.7, 7.1.  An updated CS6 should be at level ACR 8.6.  If your ACR is not at level 8.6 try using CS6 menu Help>Updates.  If that does not install ACR 8.6 try downloading the ACR and DNG 8.6 converter and see if ACR 8.6 will install into your CS6.
    Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh

  • Please fix: Common Open File Dialog Box to support Favorites (Follow-up: Better provisioning in the Windows client)

    One more thing:
    What's missing is favorites is a way to use the favorites space in the Common Open File Dialog Box.
    Please obsolete or (re)develop components in Windows, so those components support any new workflows in Windows!
    On example of an application where you cannot use Favorites is Adobe Photoshop. It uses the Common Open File Dialog Box in Windows (which does not support Favorites).
    Comparing Finder (MacOS) with Windows Explorer - you "seem" to have the option of using favorites to pin folders.
    Well, if your application calls Windows to use the Common Open File Dialog Box - it's actually NOT POSSIBLE AT ALL to navigate to the user concepts (user folders) pinned to favorites.
    Again, the favorites namespace is completely unused (not provisioned) out-of-the-box. That's may be ok, however it's not fully implemented across Windows and just another example of stuff accumulating up to being unusable.
    What's missing is favorites is a way to use the favorites space in the Common Open File Dialog Box.
    Ref.: Better provisioning in the Windows client
    https://social.technet.microsoft.com/Forums/en-US/dbb2102f-00b7-47ca-88f2-4f88cd9d3409/followup-starting-launching-and-switching-?forum=WinPreview2014Feedback#2aba34e9-6074-4750-8f66-425bdeacc705
    https://social.technet.microsoft.com/Forums/en-US/168bb9f9-ab18-42e6-9f20-5e36e71f742c/merging-the-task-bar-and-the-start-screen-area?forum=WinPreview2014Feedback#168bb9f9-ab18-42e6-9f20-5e36e71f742c
    https://social.technet.microsoft.com/Forums/en-US/59a5bb6a-0368-4f34-bea4-b9811ac0bf8c/dont-forget-development-of-the-start-screen-remember-virtualization-of-it-too-purpose-is-hud?forum=WinPreview2014Feedback#59a5bb6a-0368-4f34-bea4-b9811ac0bf8c
    https://social.technet.microsoft.com/Forums/en-US/c10168fe-a534-44aa-a0ec-e9defc71da5f/better-provisioning-in-windows-client-remember-templates-for-the-start-screen-like-the-need-for?forum=WinPreview2014Feedback#c10168fe-a534-44aa-a0ec-e9defc71da5f

    Congrats to Carmelo!
     Windows Phone and Windows Store Apps Technical Guru - February 2015  
    Carmelo La Monica
    Windows Phone 8: control Nokia Maps (Part 3)
    JH: "Part 3 of the series how to work with the Nokia maps control. As the previous articles this one contains a lot of code snippets and some pictures. Good work!"
    Ed Price: "A great topic, a fantastic breakdown of sections with clear descriptions, and a nice mix of code formatting and helpful images! Another stellar article from Carmelo! Great job including the link back at the end to the portal
    article!"
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Clicking a .pdf link does not open .pdf file, it opens a SAVE DIALOG box

    Recently when I click on a .pdf file link I am no longer able to open the file in a adobe reader either within a FIREFOX webpage or open it using the full adobe program. Instead it opens a SAVE dialog box requesting me to save to my harddrive. I am not sure what has happened and am trying to find someone who might know what is going on?

    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask in "Firefox > Options/Preferences > Applications".
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer.
    You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu.
    *http://kb.mozillazine.org/about:config
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • How to open a save file dialog box in form

    hi
    all
    I have prob in form desing , i have open the save file dialog box , how to open a save dialog box
    and path of the select file to save in disk
    help
    thx

    hi
    user this query when-button-pressed trigger
    :txtfile := GET_FILE_NAME(directory_name =>'d:\ali_raza\backup\', file_filter=> 'DMP Files (*.dmp)|*.dmp|');
    Rizwan

  • Blank page shown instead of Open/Save As dialog box-CSV file download in IE

    I am migrating an application hosted earlier on Oracle 9iAS (9.0.3.1 BP1) to OracleAS 10g (10.1.3) with Struts 1.2.9. While the below JSP code worked for the earlier s/w stack when accessed using IE 5.5 SP2 or above, a blank page is displayed with the new s/w stack. What I mean by "worked earlier" is this. A "Open/Save As" dialog box would appear. Trying to "Open" would open a new IE window launching MS Excel and displaying correct data. Trying to "Save As" would display correct filename and extension in the dialog box.
    <%@page autoFlush="false" contentType="application/x-filler"%>
    <%
    try
    String fileName = "ABC.CSV";
    String strData = "A,B,C";
    response.setContentLength(strData.length());
    response.setHeader("Content-Type","application/octet-stream");
    response.setHeader("Content-Disposition","inline;filename="+fileName);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(strData.getBytes(), 0, strData.getBytes().length);
    ouputStream.flush();
    ouputStream.close();
    catch(Exception e)
    %>
    I tried some changes listed below:
    1. Deliberately introduced compilation errors in the JSP code.
    2. Changed contentType="application/x-filler" to various MIME types like application/x-download, application/vnd.ms-excel, removing it altogether.
    3. Commented out response.setHeader("Content-Type","application/octet-stream") and also tried other MIME types related to CSV/Excel.
    4. Changed Content-Disposition from inline to attachment.
    Each of the above resulted in an unacceptable behaviour compared with the earlier state:
    1. Blank page shown as if nothing was happening even in case of deliberate incorrect JSP syntax.
    2. Dialog box did show up with some combinations. But on trying to "Open" or "Save As", the dialog box shows up a second time. Then while trying to "Open", the contents get opened either inline or in MS Excel but with some additional garbage data like source file name.jsp etc. While trying to "Save As" the file name and extension take on the pattern <URL_Pattern>.htm where URL_Pattern would be "DOWNLOAD_ACTION.do".
    Some other information:
    1. This code works when accessed from desktop local container (Win 2000) but not when deployed on Unix env (HP-UX B.11.11.0109).
    2. Latest patchsets are installed for IE.
    3. The existing application is designed to work for ONLY IE 5.5 SP2 or above, so I haven't tried with other browsers. I have tried both IE 5.5 SP2 and 6.0 SP1.
    Any help in this regard will be highly appreciated.
    Thanks a lot for your valuable time..

    I have made it to work with the below changes:
    1. Changed the URL pattern for <filter-mapping> for *.jsp to /*.jsp
    2. Added <dispatcher>REQUEST</dispatcher> and <dispatcher>FORWARD</dispatcher>
    3. Everything else (code-wise) is as before.
    Because of these changes, the filter, wherein some headers are being added to the response, is being invoked appropriately now.
    Thanks for you time and suggestion though...

  • When I open a pdf in Adobe Acrobat xi pro it is not displaying correctly. If a file is all black with orange writing, I will see only the orange writing. Its not until i print it or open crop pages dialog box that i see the background. i am on a Windows 7

    When I open a pdf in Adobe Acrobat xi pro it is not displaying correctly. If a file is all black with orange writing, I will see only the orange writing. Its not until i print it or open crop pages dialog box that i see the background.
    i am on a Windows 7 professional PC, 64-bit.

    If anyone is reading this still looking for what caused the issue and how to fix it here is what I discovered.
    The antivirus program our company uses, Bitdefender Antivirus Plus, was causing some of the PDF files not to open. After troubleshooting the different modules and settings the culprit was..
    Scan SSL in Privacy Control Settings. Turning it OFF solved the problem and all the PDF files that previously would not open now open just fine. This issue has been sent to Bitdefender for them to review. If you use a different antivirus program and are having this issue try locating the Scan SSL setting and see if turning it off solves the problem.

  • How to displays the standard open file dialog box in Oracle Apps Server

    Hi,
    I am having a form, where i am opening a file and putting that file content in a text box.
    This is my code written in WHEN-BUTTON-PRESSED trigger:
    declare
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(8000);
    filename VARCHAR2(30);
    BEGIN
    filename:=GET_FILE_NAME('d:\Rajesh\Practice', File_Filter=>'Text Files (*.txt)|*.txt|',select_file=>false);
    in_file := Text_IO.Fopen(filename, 'r');
    LOOP
    Text_IO.Get_Line(in_file, linebuf);
    :text_item5:=substr(:text_item5||linebuf||chr(10),1,5000);
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN
    Text_IO.Put_Line('Closing the file...');
    Text_IO.Fclose(in_file);
    END;
    I have posted this in ORacle Apps Server.Where i was not able to get the Open Dialoq Box.It is giving an error as
    "FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-302000.".
    I think the GET_FILE_NAME function is not supported in the Apps Server.
    Is there any alternative solution for getting the OPEN DIALOG WINDOW in Oracle Apps Server?
    Pls let me know.

    Hi!
    waldemar.hersacher wrote:
    "It seems that the VIs called by the clients are running in the user interface thread.
    A call to the file dialog box will call a modal system dialog. So LV can't go on executing VIs in the user interface thread."
    Are you sure? I think, that File Dialog, called by LabVIEW File Dialog from Advanced File Functions Palette doesn't blocking any cycles in subVI, which running in UI Thread. Look in my old example (that was prepared for other topic, but may be good for this topic too).
    2 linus:
    I think, you must a little bit reorganize you application for to do this. You must put your File Dialog into separated cycle. This cycle, of course, will be blocked when File Dialog appear on the screen. But other cy
    cle, which responsible for visualization will run continuosly at the same time...
    Attachments:
    no_block_with_file_open_dialog.zip ‏42 KB

  • When I hit the escape key to close out the open file dialog box, firefox hangs or crashes.

    When I open the "open file" dialog box using the ctrl+O and then hit the escape key to exit the box, I get an error message which I'm not able to paste here.
    it says something about a runtime problem and if I try the same thing again to reproduce the problem, it will sometimes just hang and windows vista will tell me the program is not responding.
    I've checked to see if there are any crash IDs but none were found for this time frame.
    I have even disabled all add ons.
    I'm currently using vista 64 bit edition and Firefox 6, beta edition.

    Hi,
    Please also try right-clicking on the link corresponding to the language version and '''Save Target As''' to save the Firefox installer. If the problem persists, posting [http://answers.microsoft.com/ here] would also be helpful.
    [https://www.mozilla.org/en-US/firefox/all.html Firefox Latest]

Maybe you are looking for

  • How to make Javascript access standard JSF component

    Hello all, I'm in need of a proper javascript code that access standard jsf component. Like we do for html tags; if( el.tagName.toLowerCase() != 'select') I need to do the same thing for a jsf tag i.e; <h:selectOneMenu>. How to make javascript access

  • EBay keeps signing out from MBP

    Hi all I don't know whether this is everybody's problem or just mine but my eBay account keeps signing out by itself. It does this constantly, i signed in to my ebay account and after browsing some stuffs just it signed out automatically. I didn't pr

  • Great site for greenscreen and FX and tutorials

    Hi This is a cool place for some greenscreen related stuff to play around with... Looks like thier courses would be good... http://www.hollywoodcamerawork.us/greenscreenplates.html Rod ps. Some info there about simply increasing resolution a little b

  • LSMW for 2001 with conversion rules....

    Hi Data migration experts, I have a requiremet,i have to do a LSMW for infotype 2001 where i have to write some converion rules as follows: 1. If PERNR begins with '00' must be changed to '01' - e.g. '00000010' becomes '01000010' 2.  Begin date and E

  • New Plug-in item doesn't work as cascading lov

    I have just finished creating a new plug-in that is a searchable select list. I want the LOVs to be cascading. In other words if I have another item on the page I want to be able to specify in my plugin item that the parent LOV is that item. How do I