Saving images on my database and calling the open file dialog

i want to be able to save image in my database or alternatively save them on a file system. meanwhile i want to allow them choose the name of the image in the folder by using the win_api_dialog.open_file. My platform is win2000. do i need to add any other thing to this like a particular library or just anything. please i need this help urgently.database os is unix ware.

Hello,
You can do this without using library. Suppose you have a table with BLOB data type column and one form which has image box to display and store image boxes.
Now by using READ_IMAGE_FILE read picture file. To write picture to file use WRITE_IMAGE_FILE. and
if you want to give users open file dialogue box then use GET_FILE_NAME builtin.
All the best.
Adinath Kamode

Similar Messages

  • Folder appears in Windows Explorer, but not in the Open File dialog

    Hello,
    I hope this is the right place to post this. If not, please let me know where is.
    A friend just showed me a weird problem he is having with his computer. He is using Windows 7 pro, and has a folder under My Documents, in which he keeps his work files. He emails these files using Gmail, which he accesses via Internet Explorer.
    All worked fine until a few days ago, when he noticed that when he clicked the link in Gmail to attach a file, his folder wasn't listed in the Open File dialog. He looked in Windows Explorer, and could see the folder OK. I tried opening Word and using the Open
    File dialog there, and the folder wasn't visible.
    If he clicks in the address bar, and adds the folder name to the path, it opens the folder, but shows it as empty. I actually has two subfolders. If he adds the name of a subfolder, then the Open File dialog shows the files in that folder.
    I checked the permissions on the folder, and couldn't see anything odd. What I don't understand is how the folder can be visible in Windows Explorer, and not in the Open File dialog.
    Anyone any ideas? Thanks
    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers.
    Download from the Visual Studio Gallery.
    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at
    http://dotnetwhatnot.pixata.co.uk/

    I can confirm - I'm having the exact same problem.
    When I try to lookup or save a file from an IE file dialog some folders do not show up. I can type the folder name into the directory field and it then goes there, but this assumes you know the directory name and it's a PITB.
    Firefox can browse to the directory directly.
    It would be interesting if anyone else found a fix for this - I'll post here again if I find out more somewhere else, but there are not too many threads out there as far as I have found for now.
    Found a solution over at answers at Microsoft dot com. (can post links here yet - will update once I can)
    In short: There's a fast fix for this issue by resetting a hidden flag that IE sets for some folders. I believe this part of the "protected mode" feature, though I can't confirm and also have no idea how this would protect me from any intruders,
    if only (unimportant) subfolders are protected ...
    Anyway - if you know the name of the missing folder (e.g. from browsing the directories form windows explorer): in the parent directory that has the folder missing do a Search (in box at top right) for the missing
    folder name. In my case the hidden folder shows up in the search - now right click -> Properties -> clear hidden flag. Note: this "hidden" flag is independent of the flags set in windows explorer - that's why you have trouble going there with IE and not
    the file explorer from the desktop.

  • Jasper report on HTML when one image loaded from database and for the other

    How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
    My code
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
              exporter = new JRHtmlExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
              exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
         exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
         exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
         exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
              exporter.exportReport();
              byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
    Can any one help pls
    Message was edited by:
    ameet.au

    hey sorry for posting it in this forum.
    but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
    byte image[] =(byte[]) outData.get("image");
                        ByteArrayInputStream img = new ByteArrayInputStream(image);
                        hmimg.put("P_PARAMV3", img);
    print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
    bdata= JasperExportManager.exportReportToPdf(print);

  • What does the open file dialog do 'under the hood' and is there a way to simulate it

    What does the open file dialog do 'under the hood' and is there a way to simulate it?
    I have a bug in my code (that I've posted about before, here) which I can't fix at the moment, but I do have a workaround.
    Briefly, the bug:
    I call a dll from a function node, to initialise and run a spectrometer. If I start up the PC, LabVIEW and run my vi the code runs without complaint, the first call to the dll to initialise the spectrometer doesn;t return an error but the spectrometer is not detected either.
    I've tried various solutions, see the link above, and none work
    The workaround:
    If, at any time before running the code containing the function node I open an 'open file' dialog window, select the dll and click ok/hit enter then everything is fine. When I run the main code the spectrometer is detected.
    I use an express vi to open the file dialog, I specify the start path and file name as constant inputs and just click ok/hit return when the dialog pops up. I don't do anything with the dialog outputs. In fact the vi that contains the open file dialog can be run before the project containing the bug is even open.
    I have to do this everytime I turn the PC on.
    So, either
    1) Can somewone suggest a fix for the original bug?
    2) What is the easiest way to simulate the enter keypress when the open file dialog pops up
    or
    3) Can someone tell me what the open file dialog does under the hood that somehow causes the dll to work and can it be simulated in straight LabVIEW
    I suspect that the dll itself is dodgy ( I have in the past talked to the supplier but not got very far, and I will try again but I would like a quick, temporary solution too). I'm guessing that the file dialog is making some kind of check on the file, and possibly registering its presence with the OS (winXP). I tried using the file/folder exists vi to see if checking the file like that worked but no luck.
    Any help greatly appreciated.
    Dave

    Hi David
    I am very conscious about thread hijacking but this sounded like my issue so I hope you dont mind me asking about your issue. I am hoping that you have a spectrometer from the same vendor as me and its not just me seeing an Error 1097 issue. My spectrometer is from a company called Stellarnet.
    So far I have unable to get it to work with other VIs. There is one condition where I can get it to work but its no good for me.
    Case 1
    I open the VI in a fresh labview environment with no other VIs in memory. The code runs with no issue.
    Case 2
    Labview is not opened. I double click the spectrometer VI in windows explorer.  The VI opens but it fails to run resulting in Error 1097. Personally, I dont see the difference between this and Case 1 above and yet it fails.
    Case 3
    If I already have other VI's in memory and try to load the spectrometer VI and run it fails with Error 1097. This case is the one that most important to me. I have a test executive that will load test VIs dynamically and I can't get this to work. Same problem Error 1097.
    I wanted to share what I have seen with you and to let you know that maybe somebody else has the same issue. I am convinced its the DLL but the vendor dis-agreed saying it was LabVIEW. I couldn't convince him otherwise.
    Thanks in advance
    David

  • Some qt only programs are crashing opening the "Open File" dialog

    Hello Archers,
    I'm having some trouble to find out what's crausing the crashes, so i can properly fill a bug report upstream.
    Here is the issue:
    * After an upgrade from glibc 2.13-5 to glibc 2.14-4, some qt-only apps are crashing when i open the "Open File" dialog. This only happens when using specific KDE 4.6.4 or KDE 4.6.5 styles, like Oxygen and QtCurve.
    * Before i upgrade KDE from 4.6.4 to 4.6.5, i downgraded glibc and its dependencies to glibc 2.13-5 and the bug was gone. After upgrading KDE to 4.6.5, i didn't try the downgrade again because KDE 4.6.5 requires glibc 2.14 and the process of downgrading become unsustainable.
    * I tried removing the crashing apps data from my home directory and the crash still exists. I also tried to create a new user and start the apps from that new environment and the apps crashes, so the bug is not user-specific.
    * I tried replacing the binary nvidia driver with xf86-video-nouveau but the issue persists.
    * The apps crashing (and not applying the kde theme) are the following:
    => opera 11.50
    When opening the "Open File" dialog, it crashes with the following message:
    ------------- begin ---------------------------------
    $ opera --sync
    (operapluginwrapper:2349): Gdk-WARNING **: GdkWindow 0x7400034 unexpectedly destroyed
    (operapluginwrapper:2349): Gdk-WARNING **: GdkWindow 0x7400033 unexpectedly destroyed
    (operapluginwrapper:2349): Gdk-WARNING **: GdkWindow 0x7400032 unexpectedly destroyed
    (operapluginwrapper:2349): Gdk-WARNING **: GdkWindow 0x740001c unexpectedly destroyed
    The program 'operapluginwrapper' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadWindow (invalid Window parameter)'.
      (Details: serial 547 error_code 3 request_code 18 minor_code 0)
      (Note to programmers: normally, X errors are reported asynchronously;
       that is, you will receive the error a while after causing it.
       To debug your program, run it with the --sync command line
       option to change this behavior. You can then get a meaningful
       backtrace from your debugger if you break on the gdk_x_error() function.)
    ------------- end ---------------------------------
    => vlc 1.1.10
    When opening the "Open Directory" dialog, it crashes with the following message:
    ------------- begin ---------------------------------
    $ vlc
    VLC media player 1.1.10 The Luggage (revision exported)
    Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
    Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
    [0x9884a7c] main interface error: no suitable interface module
    [0x97e28fc] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    Blocked: call to setlocale(6, "")
    Blocked: call to setlocale(6, "")
    Segmentation fault
    ------------- end ---------------------------------
    * Using other qt-only apps, like qmmp or UMPlayer the bug doesn't occur.
    So, what do you thing of this? Am i the only one with this issue? I already reported the bug report on https://bugs.archlinux.org/task/24991 and https://bugs.opera.com/wizard/, but since i latter found out that this is not opera specific, i don't know where to fill the report. 
    Thanks in advance.
    Last edited by eldarion (2011-07-09 15:15:13)

    kachelaqa wrote:
    eldarion wrote:kachelaqa, can you please confirm if it happens with vlc or opera too? Thanks for helping.
    i had to install vlc and opera to test - but i'm afraid i don't get the errors you are seeing.
    so far, qt designer is the only application i've found that crashes when opening file dialogs.
    Ok, thanks for helping.

  • How can I change the default "file type" in the open file dialog when using Firefox on certain web pages?

    I work for a bankruptcy attorney. We use the Court's file upload to file our documents. When I am on the Court's site and I have to pick a file to upload, the "open file" dialog box pops up. In Firefox, the default "file type" is always "image" files. I need it to be "all files". How can I change this setting?

    Two observations.
    First — "Tools-> ...." is specific to Acrobat X and XI. It did not exist prior to Acrobat X.
    Second — Acrobat 9 Pro / Standard (nor earlier release) does not support viewing a PDF page containing a scanned image and performing a right-click  ... Save Image As. 
    The context menu provided by Acrobat 9 Pro with a right-click on a scanned image is:
    The context menu,from a right-click with the TouchUp Object tool selected, for Acrobat 9 Pro is:
    So, to paraphrase what Paul Harvey used to say ... What's the rest of the story?
    Be well...

  • 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]

  • I want to change the default file type in the Open File dialog - e.g. from Word to All Files

    I want to change the default file type in the Open File dialog - most recently specifically in Adobe Acrobat, from Adobe Files to All Files, so I don't have to do it again and again manually.  Is this possible?  Is it an OS setting or an app-specific setting?

    The Apps set the default to the file type it can open, sort of. However, there normally isn't a type specified. All document types that the app can handle will be offered.
    Adobe, and Microsoft, tend to roll their own dialogs, so they may not be standard. I don't have Acrobat, so I can't verify that. If Adobe is puting a file type selector in their open file dialogs, it would be up to them to store the preferences.
    EDIT: I checked Reader, and i see what you mean. Not terribly useful.
    Message was edited by: Barney-15E

  • Diappearing photos replaced by an exclamation point within a triangle.  Prior to loading Lion I could put the image number in finder and locate the original file for that photo.  How do I restore photos now?

    I had problems with photos disappearing and being replaced by an exclamation point within a triangle.  I can see the photo in the thumbnail summary but when you click on it, the screen goes black and the exclamation point within a triangle appears along with the info on the original image number (i.e., img_1120.jpg). Prior to loading Lion, I could go to Finder, enter the image number and locate the original file for that photo.  I could then restore it for editing, copying into Print Shop directly, etc.   That no longer works after installing Lion.   How do I restore photos now?  I have 100s of photos that I have been going back to the original files and restoring and I am frantic that I will no longer be able to get to the original files.  Please help!  Thanks

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • My mac repeatedly reflows the screen and all the open file windows. why is this happening and how do I fix it? it happens while using Adobe InDesign 3.

    this happens from time to time and I think in the past I have done a restart to make it stop. it's possible it only happens while using Adobe InDesign CS3 but I have not watched diligently enough to say for sure. the hard disk repeatedly, every 30 seconds or so, spins up and the entire screen reflows, finishing on the finder with open windows all opening in order. everything moves. then I need to go back to InDesign only to have it happen again. I don't necessarilly touch any keys or the mouse. as I type here it has stopped so maybe it really is an InDesign issue. does anybody know what's going on?

    BDAqua and old comm guy,
    thanks so much for the good advice. I used both of these and now the problem has stopped. first I checked the finder crash logs and yes, my finder had been crashing repeatedly.
    next I removed the preferences files from the library, rebooted from the CD and ran disk utility to repair preferences. since then my computer has been stable.
    there were some preferences that didn't get repaired when I ran disk utility. I am copying them here to refer to later if I need to. I don't understand what these mean to me:
    Warning: SUID file "System/Library/Filesystems/AppleShare/afpLoad" has been modified and will not be repaired.
    Warning: SUID file "System/Library/PrivateFrameworks/DiskManagement.framework/Versions/A/Resources /DiskManagementTool" has been modified and will not be repaired.
    Warning: SUID file "usr/sbin/pppd" has been modified and will not be repaired.
    Warning: SUID file "usr/sbin/vpnd" has been modified and will not be repaired.

  • 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

  • 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."

  • Why the open file dialog form goes to SAP background.

    I created a addon form and there is a button to open a file dialog. When I click it, this dialog went to the background of SAP. How to fix.Please

    Hi,
    Just add a class and give this source
    Public Class WindowWrapper
        Implements System.Windows.Forms.IWin32Window
        Private _hwnd As IntPtr
        Public Sub New(ByVal handle As IntPtr)
            _hwnd = handle
        End Sub
        Public ReadOnly Property Handle() As System.IntPtr Implements System.Windows.Forms.IWin32Window.Handle
            Get
                Return _hwnd
            End Get
        End Property
    End Class
    Give this source in ur add-on class
    Public ShowFolderBrowserThread As Threading.Thread
    Public Sub ShowFolderBrowser()
            Try
                Dim MyTest As New OpenFileDialog
                Dim MyProcs() As Process
                MyProcs = Process.GetProcessesByName("SAP Business One")
                If MyProcs.Length = 1 Then
                    For i As Integer = 0 To MyProcs.Length - 1
                        Dim MyWindow As New WindowWrapper(MyProcs(i).MainWindowHandle)
                        MyTest.InitialDirectory = "C:\"
                        MyTest.ShowDialog(MyWindow)
                        Dim ab As New System.IO.FileInfo(MyTest.FileName)
                        Dim db As SAPbouiCOM.DBDataSource = frm.DataSources.DBDataSources.Item("@BR_ATTACH")
                        mat1 = frm.Items.Item("ATMatrix").Specific
                        mat1.AddRow()
                        db.SetValue("U_Path", db.Offset, ab.DirectoryName)
                        db.SetValue("U_FileName", db.Offset, ab.DirectoryName + "\" + ab.Name)
                        mat1.SetLineData(1)
                    Next
                Else
                    Console.WriteLine("No SBO instances found.")
                End If
            Catch ex As Exception
            End Try
        End Sub
    Give this source in item event
    Case SAPbouiCOM.BoEventTypes.et_CLICK
    If pVal.ItemUID = "BtnBrowse" And pVal.BeforeAction = False Then
                            ShowFolderBrowserThread = New Threading.Thread(AddressOf ShowFolderBrowser)
                            If ShowFolderBrowserThread.ThreadState = Threading.ThreadState.Unstarted Then
                                ShowFolderBrowserThread.SetApartmentState(Threading.ApartmentState.STA)
                                ShowFolderBrowserThread.Start()
                                ShowFolderBrowserThread.Join()
                            Else
                                ShowFolderBrowserThread.Abort()
                            End If
    Try this......................... it worked out well for me....
    Edited by: Sridhar R Badri on Apr 23, 2008 7:47 AM
    Edited by: Sridhar R Badri on Apr 23, 2008 8:07 AM
    Edited by: Sridhar R Badri on Apr 23, 2008 8:08 AM

  • Setting up a relative path in the "open file" dialog window

    Hello there,
    I want to open a PDF file through a clickbox out of
    Captivate. The path I have to put in there has to be absolute, I
    guess.
    Is there any possibility to put a relative path in there?
    To get you a clue, what I want to do with that, here is my
    intention:
    I want to build up a splash screen for a Auto-Run-CD, where I
    want to link some reference documents.
    Thanks in advance for your suggestions,
    Markus

    Hi Markus
    Normally all you have to do is just type the file name of the
    file. Then ensure the Captivate output and the file you are linking
    to are in the same folder. If you don't like that approach, I
    believe Captivate will accept another relative path that is set up
    perhaps like this:
    Root level of CD
    Documents folder
    So the link would look as follows: Documents/SomeFile.PDF
    Cheers... Rick

  • Saving word doc in database and retrieving

    hai all,
    Is it possible to save a word file in database and retrieve the word file in web dynpro application?
    Thanks n Regards
    Sharanya.R

    Hi,
    To save the wordfile to the database make use of lob types.
    Make use of JDBC to do this.
    retreiving
    Make use of JDBC to fetch the previously saved doc.
    Populate a context of type IWDResource(Nw04s onwards) or  Binary(Nwo4).
    Set the appropriate  mime type
    Create a filedownload and bind this.
    Regards
    Ayyapparaj

Maybe you are looking for

  • How to populate fields with no values in a report..?

    Hi Gurus, We have a query, which is filtered with some 60 GL Accounts. Some of these GL account has no values or activity since long back. But we need to display it in the report for some reasons. Since it doesnu2019t have any value, its not coming u

  • BlazeDS with WAS 6.1 streaming channel killing the server?

    Hi, We are experiencing a strange issue with WAS (websphere server) 6.1 with BlazeDS after a while severe performance degrades and then system hungs shortly after Some prelimenary observations: we are seeing following errors in Server Log: [6/22/10 1

  • Vendor Creation at Client Level

    Hi Experts, Would like to take your suggestion Plz. My Client has 5 Company codes, and when we are craeting any vendor in XK01 we are creating the vendor specific to that company, 1) How could we extend the same vendor to different Company Codes ? In

  • Trying to install Aqualogic BPM Enterprise Server in a Weblogic domain.

    Hi, I'm trying to configure a AquaLogic BPM Enterprise Server on a currently working WebLogic domain. I have had a lot of problems due to that I needed to copy some AquaLogic/Fuego libraries to the domain lib folder (didn't find any doc about it) and

  • Server Timeout for Authentication server

    Hi all Does anybody know how to increase server timeout more than 30 sec, may be 60 sec. Our LDAP structure very deep, 5 levels - I mean login accounts placed on the 5th level from the top. I configureed web-authentication via LDAP, for test I create