How to retrieve all the data from a BLOB using view-generated accessor

I am using JDeveveloper 10g v. 10.1.3 and am storing an image in a database as a blob object and need to retrieve all of the data to get the entire image and store it in an ImageIcon. The code I have works partially in that it retrieves the correct data, but only gets a piece of it, leaving me with a partial image.
AppModuleImpl am;
ImageVwViewImpl vo;
am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();
ImageIcon icon = new ImageIcon(ivo.getImage().getBytes(1, (int)ivo.getImage().getBufferSize()));
jULabel1.setIcon(icon);I either need to know how to use a stream to get the data out (from BlobDomain method getBinaryStream()), or how to get the other chunks of data separately.
edit: I know the problem is that getBufferSize() returns an int which is too small to hold all the data, but need to know what to use instead. Thanks!

This is the code I'm using now. Same problem :(
AppModuleImpl am;
        ImageVwViewImpl vo;
        am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
        vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
        ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();  
        ImageIcon icon = new ImageIcon(ivo.getImage().toByteArray());
        jULabel1.setIcon(icon);

Similar Messages

  • How to transfer all the data from Logic pro to other drive (faster)?

    Hi
    I am trying to upgrade the performance of my Mac and decided to upgrade the RAM and to use a dedicated HardDrive for Logic Pro using firewire (i have a mac mini server...). Think the Processor e fast enough...
    How can i transfer all the information for that drive?
    Can i move the media library from the OS drive to the new drive? or has it to stay were initially instaled?
    I moved to Mac because my Windows "Super 16GB QuadCore PC" was giviing me trouble...in relation to connections, critical errors...
    I am a novice on the Mac "ways"...
    Can someone give me directions?

    Logic doesn't store the majority of its data in designated library places, so you can put your session files and audio files wherever you want. If you move the location of something, say an audio file, and logic doesn't know where to find that asset, then it'll present you with a dialog box which asks you if you can tell it where you moved it to, or if you'd like it to go off and search for files of that name for you. They're all just files on a hard disk. There's only a few things which have to be stored in particular places, such as preferences or sampler instruments. Anything that isn't part of the program, you can store it wherever you want. In a session you can have for example all the live parts on one hard disk, and then all your samples on another hard disk. It's all arbitrary and can be defined by you.
    So yes, you can generally keep your media library wherever you want (as far as Logic is concerned).

  • How to copy all the data from old computer to new computer (server)

    Dear all,
    As I want to upgrade the server from old computer to a new one.
    I want to ask how and easy way to copy all of table, sequence, ......data from existing old computer to new computer.
    The old server is window 2000 Server with oracle 10g
    The new server may window 2003 Server with oracle 10g
    Thanks a lot
    Francis SZE

    As far as I can see you are copying from db10g for windows to another host on the same platform and same OS, so a simple cold backup taken from the source database can be restored at the target host. You must first make sure the configuration files and service be created prior to performing the database startup procedure at the target host. You may also as suggested, perform an rman duplication task
    ~ Madrid

  • How to show all the data from playback area so that the statictics max and min analysis applies to the entire logged data.

    I have a data file with 19 channels of voltage and I what to retrieve the maximum, minimum and mean of the entire run for each channel. When I do playback it does only 25 seconds of data and being a newbie I have no idea nor can see anyway of changing this.
    One thought I had was to run playback with a save to LVM then go to mointor area and load the saved file followed by a statictics step.
    Is there any other option?

    We need more information to help you.  Specifically, the following would be nice:
    What format is your data file in (can you post an example?  Please zip it to save space.)
    Can you post your read and/or write code?  The problem may be there.
    What version of LabVIEW are you using.  This can effect our recommendations.
    As you discerned, there is no fundamental reason for this problem.  On a side note, LVM is a poor format for large amounts of data or a disk buffer.  I would recommend TMDS or HWS, depending on your version of LabVIEW.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • The logic board on my MacBook Pro has failed. How do I retrieve all my data from the hard drive?

    The logic board on my MacBook Pro has failed. How do I retrieve all my data from the hard drive?

    Remove the drive and put it in an external enclosure. Backup the drive completely. Repartition and format the drive. Replace the drive into the computer. Take the computer in for the logicboard replacement.

  • My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    Yes, windows to Mac too.
    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
    Windows users see tip at: https://discussions.apple.com/message/18879381

  • HT1766 I have an iphone 4.I upgraded it to 5.0.1 and so I have lost all the data from my iPhone,but i have a backup in my computer.How do I use the backup file ? i.e How will i get that backup file in my iPhone ?

    I have an iphone 4.I upgraded it to 5.0.1 and so I have lost all the data from my iPhone,but i have a backup in my computer.How do I use the backup file ? i.e How will i get that backup file in my iPhone ?

    Connect phone to computer.
    Select Restore.
    Tell iTunes which of the available backup files to use, let iTunes restore it.
    Also, try reading the User's Guide as it answers questions like this.

  • HT204085 How can we delete all the data from iphone keychain of all the apps?

    Is it possible to delete all the data from keychain? Cleaning keychain, which delete all the item stored in keychain of all the applications on iDevices. Programatically can we do it?

    Depends whether you have selected Lock when Full or Wrap when Full for the Buffer Mode. If you have selected Lock When Full, the capture will stop when the the buffer is full. You can then Save the Buffer and download it in the form of sniffer file and start you capture again. This will over write the old data. If you have selected Wrap when Full, then it will continue the capture when the buffer is full. The oldest packets are discarded as new packets arrive.

  • How do you pass the data from a SBO process to a crystal report laout

    Hi Everyone
    Can someone please assist or direct me to documentation that could be of help.
    I do production orders in SBO.
    I have a crystal report that I have imported as a layout to print these production orders.
    The report was developed the normal way, linking to the tables and returning data(all data for all production orders ever done)
    The production print option is set to make use of this layout.
    What I would like to see is that when I create production order 12345 and click on print preview I get the data of the mentioned order only displayed in my crystal layout(that is set to default)
    What I get however is all the data from the tables.
    Where am I going wrong. With my design already or is there a different way to pass the data to my report/layout direct from my SBO production order screen
    This is quite urgen
    Regards
    Burger

    Hi All
    The solution i was looking for is:
    In Crystal create the parameter called DocKey@
    This is recognized by sap and the active document number is passed to the report layout.
    In crystal itself also do a filter {<Table>.<Column Name>} = {?DocKey}
    So simple once you know how.
    Hope this help someone else that is as stuck as I was.
    Regards
    Burger

  • Trying to retrieve all the records from the file on desktop

    HI All
    I have one particular problem. I was given a text file which as 7000 records with length 512 each in a continues string. I Changed begining of each record with comma  in that text and saved it in .csv , when I try to upload the file into my program's internal table.
    It is still giving one record. I used
    itab_EXTRACT1 declared as
    DATA: begin of itab_extract OCCURS 0,
            extract1(512) type c,
          end of itab_extract.
    call method cl_gui_frontend_services => gui_upload
        exporting
          filename                = Xfile
        filetype                    = 'ASC'
         has_field_separator     = 'X'
        changing
          data_tab                = itab_EXTRACT1
      exceptions
        others                  = 17.
      Is there a way how to retrieve all the records into the internal table.
    Thanks
    Ravi

    Hi Ravi,
    I don't know if this is the correct solution, but I think it will work.
    Declare your internal table (itab_extract) with the maximum length which your file will occupy.
    Create another internal table (itab) with field (text) length 512.
    Populate the internal table itab_extract using GUI_UPLOAD.
    Then write this code
    l_index = 1.
    itab-text = itab_extract-extract1+0(512).
    append itab.
    do.
    n = ( l_index * 512 ) + 1.
    itab-text = itab_extract-extract1+n(512).
    append itab.
    if ( itab-text is initial ).
    exit.
    endif.
    enddo.
    Let me know if I miss anything.

  • How can i save the data from the Oracle database to my local directory

    How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
    I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.

    Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
    You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run.

  • How can i store the data from the list to MS-Access?

    Hi all,
    We all know that from alv it is possible to export data to Ms-excel or word or text file. Can anyone tell me how can i store the data from alv or reports to Ms-Access?
    Thanks in Advance,
    Abhijit

    Hi,
    If you want that without code, i suppose there is a option in MS-Access to import data from Excel, so you have to first export to excel and then import to Access.
    If you want to code it yourself then have a look at FM TABLE_EXPORT_TO_MSACCESS, as said in Exporting Data from R/3 to MS ACCESS
    You can also see the search results in SCN for [export data to MS-Access (45 Results)|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=exportdatato+MS-Access&cat=sdn_all].
    Regards
    Karthik D

  • How do I erase the data from a partioned hard drive.  I've already erased trhe bootcamp drive but I can't erase OSX.  The operating system is Snow Leopard.

    How do I securely erase all the data from my hard drive (it has a bootcamp partion which I succesfully erased).  I'm giving my Macbook Pro to my daughter but I want all the data securely gone before I give it to her. Disk Utilities does not allow me to start the erasing process.

    You can not erase a drive you are using to boot and run the computer.
    You have to boot the computer from a CD/DVD disc, thumb drive or external drive that contains the files need to start the computer and has the Disk Utility program on it.
    Tha would be the original system Discs that came with your computer or a CD/DVD disc, external drive or thumb drive you specifically made to do this.

  • How to Clear all the data of open windows form of another exe?

    Hi,
    I want to make utility which will clear all the data from one windows application.
    i know the application name. The application of which data i want to clear is made in C# and contains many windows forms and controls.
    out of that opened windows form and controls inside it need to be cleared.
    Please guide on how to do this in C#?

    Short version: Find the window and send it a message with
    SendMessage.
    Open up Spy++ and find your form's window.  You will see that the window has children and they have classes of the form "WindowsForms10.EDIT.*"  Those are TextBox controls.  You can call things like SetWindowText to set the
    text of the window to clear it.
    To do this programmatically, you'll have to obtain the window hand that corresponds to the control.  You can find windows with
    FindWindowEx or
    EnumWindows.  Locate the window by name or class or whatever else you can determine about it.  Find the child windows and "clear" them however you wish.  I assume you mean to set empty strings to all the TextEdit controls. If you
    intend to do something more sophisticated than that, then you'll have to be more specific about what you mean by "Clear all the data".
    It may or may not be obvious that you'll be poking around with Win32 API calls via PInvoke to accomplish much of this. Example:
    SetWindowText via PInvoke.

  • How we will pull the data from Sap-Bi to sap-Bpc

    Dear Experts,
    Thanks for watching this thread.The whole data is available in SAP-BI.
    My system environment is SAP-BPC MS7.5.
    Now i want to load the data from Sap-Bi to Sap-Bpc ms.For that we need any Interfaces.
    How we will pull the data from SAP-BI to BPC-MS for Master data and Transaction Data.
    could  you please provide me step by step guide.
    Please guide me what should i do.
    Regards,
    Srinivasan.
    Edited by: srinivasan.singari on Jul 22, 2011 8:20 AM

    Tough Ask..
    Because i have done dashboarding thru scritping (Dyanamic fashion tough) ..It is very good ..But when, coming to the one you asked i have the idea how it works but cannot really tell you wich would be better.
    Each Route has its own limitations.That really depends on what exaclty your client is looking after..
    So if you new to xcelsius and eager to learn ..I suggest you to give a go at all those..May be you can let me know wich is the best one..
    1. QAWS,
    2. Bex Query --> Crystal Reports --> Live office --> DashBoard.
    3. Bex Query --> WebI --> Live Office --> Dashboard..
    4. Webservices consuming BI Query,
    5. Xcelsius SAP Netwever Connector.
    But i suggest as of now use Xcelsius SAP netweaver Connnection...

Maybe you are looking for