Update ORDImage with in memory BLOB?

According to the interMedia docs, one of your examples is:
BEGIN
INSERT INTO emp VALUES (
'John Doe', 24000, 'Technical Writer', 123,
ORDSYS.ORDImage(ORDSYS.ORDSource(empty_blob(), NULL,NULL,NULL,SYSDATE,1),
NULL,NULL,NULL,NULL,NULL,NULL,NULL));
-- select the newly inserted row for update
SELECT photo INTO Image FROM emp
WHERE ename = 'John Doe' for UPDATE;
--BEGIN
-- use the getContent method to get the LOB locator.
-- populate the data with dbms lob calls or write an OCI program to
-- fill in the image BLOB.
--END;
-- set property attributes for the image data
Image.setProperties;
UPDATE emp SET photo = Image WHERE ename = 'John Doe';
-- continue processing
END;
However, the part I'm stuck on is the populate the data (using OCI or LOB packages). For a regular BLOB field (or interMedia text), I can use the procedure outlined below:
sSQL = "SELECT blob FROM store WHERE id = " & ID
Set oDS = setDS(sSQL)
oDS.Edit
Set oBLOB = oDS.Fields("blob").Value
sRet = oBLOB.Write(oFile.Binary, sSize)
oDS.Update
I retrieve the blob field (which was inserted with empty_blob()) into a dynaset using OO4O, edit the current row and write the new blob with the file and size parameters (I get from the rest of my code). This does not work for a fieldtype of ORDImage (the write method is not available). Is there any sample code that will update the blob field with binary in-memory data as opposed to from an external file? Thanks,
Kevin
null

The interMedia object method getContent() returns a blob. This can then be read and write using the BLOB interface.
So in your example, your SQL would be
sSQL = "SELECT s.image.getContent() FROM store s WHERE s.id = " & ID
Then you could uses the fields.value method to get the blob handle.

Similar Messages

  • Update VM with dynamic memory fails

    Update-VM orchestrator action seems to fail to handle updating VM's with dynamic memory, is there a solution for that or am I doing something wrong?
    scenario: vm with dymanic memory 512 to 2048, I try to update VM memory with Update-VM action and set memory to 4096, action fails, VMM sets memory to 4096 while maximum memory stays at 2048.
    Any ideas?

    The only relevant document I was able to find is this -
    http://technet.microsoft.com/en-us/library/hh830697.aspx. And it does say nothing about dynamic memory.

  • 5610 after update problem with the memory card

    I have updated my brothers 5610 through NSU with latest firmware 6.60. First i have removed the card. The problem now is that the phone asks for password for the memory card and i haven't used one. I have tried with 0000 and 12345 with no sucsess. I also tried the card on my phone and it still asks for password. Please someone advise. Do i need to format the card with the PC /but there is data i need to safe/ or there is another way.

    it is most likely the corrupt memory card issue, it happens quiet often. that is why back up is so essential to have especially of memories and such. for that i use share online and upload my pics right away to ovi or vox whichever. 
    the programs  you bought you should be just able to download once again and plug in the key you have gotten with your applicatioins. you should be able to recover all of your purchases. i am sorry for your pics for those can't be recovered  
    i always keep a separate email folder for all my application keys so i can find they easily as phones and memory does get corrupt. i can do it relatively quickly and have the info handy even on the go  
    Message Edited by radical24 on 22-Jul-2009 01:03 PM
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • In attempting to install recommended software updates I get a message saying my startup disc is full.  I have an Intel-based desktop with 1GB memory.  What can I safely remove?

    In attempting to install recommended software updates I get a message that my startup disc is full.  I have an iMac (intel-based) with 1GB memory.  I suspect my iTunes library is using up much of the space (I have no movies installed and have already copied most of my photos to a DVD to free up space).  If I follow the instructions to move my iTunes library to an external HD (can I use a flash drive?) will I have enough working memory to plug it back in for use when I want to access the library?

    Welcome to Apple Discussions!
    Moving libraries off the boot disk while doable is not very viable.  It creates many new problems in backing up your data, as now you have more than one source to backup.    See my backup FAQ*:
    http://www.macmaps.com/backup.html
    My suggestion is to get at least two copies of all your essential data in one manner or another, and get a larger boot hard drive to replace what you currently use to be able to consolidate your libraries.  
    As for cleaning space, see my FAQ*:
    http://www.macmaps.com/diskfull.html

  • My start up disk Macintosh HD is full on my McAir OSX 10.9.4 memory 4GB. I need to clear the disk so that I can update it with the new software IOS 10.9.5 requiring 2.05GB. Need guidance on how to clear space.

    My start up disk Macintosh HD is full on my McAir OSX 10.9.4 memory 4GB. I need to clear the disk so that I can update it with the new software IOS 10.9.5 requiring 2.05GB. Need guidance on how to clear space.

    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Ignore any other messages that appear in the Terminal window.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • Memory issues - kernel panics / system freezes with 1Gb Memory Card

    I've recently updated my PowerBook OS to 10.4.7 and now more recently 10.4.8.
    Prior to this, i had been running a pair of pc2700 memory cards (1x1Gb + 1x 512Mb) bought from crucial technology on 10.3.9 with no problems.
    During the upgrade, i experienced complete system lock ups and kernel panics. pulling the 1Gb card resolved the problem.
    So i thought it could be duff memory (it happens). I ran hardware checker, both long and short tests, ran memchecker from single user and there was no reported errors although i was still getting crashes.
    I returned the memory to crucial and they replaced it and then i went to reinstall memory in the pb.
    Once reinstalled, problems re-emerged. Both System profiler and iStat pro show both memory sticks as ok. both are pc2700 DDR.
    i tried just the 1 Gb stick in alternate memory slots. with the memory in the lower slot i was getting system freezes, in the top slot i was getting kernel panics.
    I've pulled the 1Gb and reverted to 768Mb (512Mb lower (crucial)/ 256MB (apple) upper) and i'm back to normal.
    Now what?
    As my mac is getting on, i'd like to get as much RAM in it as i can, ideally the 1.5Gb /2Gb which it can support. I'd be suprised if it could be the memory stick being duff (2 duff in a row?), its not a faulty memory slot as system profiler is showing that its full.
    Any suggestions? Anything to do with how 10.4.8 handles the memory addressing?
    Any help would be appreciated.
    PowerBook G4 1Ghz FW800   Mac OS X (10.4.8)  

    I've had that problem, too. I found out that it was one of my memory modules that were broken.
    I'd say pop back in your other memory module, then get out your PowerBook DVD and stick it in Restart your PowerBook while holding down the Option Key on your keyboard until some buttons start to show up on your screen.
    Select the Hardware Test one, then click the Arrow button. It'll boot into a utility and you can run a hardware test that includes checking your memory.
    If any of your memory is bad, it'll show up like "**ERROR ERROR**" and give you a code.
    After you've identified the hardware problem (hopefully just the RAM), then you can go to Crucial's website and fill out an RMA request to have the memory replaced. I'm pretty sure Crucial has a life-time warranty on their memory products.

  • Msi Big Bang Xpower II can only run with 3 memory modules?

    Hello there! I've just got my new system up and running. But it cant boot with 4 memory modules when there is a module in slot 7? I have a 4x8gb kit from corsair (CMP32GX3M4X1600C10), and a Msi Big Bang Xpower II..
    When i start it, it just shows me the debug code "67" which is "Late Cpu Initialization" according to the "User Guide".. It stays there, for about 15 seconds, then it shuts down, and does the same, over and over..
    Atm, i'm running with 3 modules, and there's no problems at all! I've testet ALL memory blocks, in another computer, and they run just fine..
    What should i do?

    Quote from: xmad on 25-September-12, 21:09:52
    Also, what cpu, bios version , memory type etc
    Make sure the mem mods are in the proper slots for tri channel operation.
    >>Posting Guide<<
    If everything comes up clean, update to the most recent bios. Only do this if your computer is stable in bios. IE You are only having crashes in windows etc.
    >>Use the MSI HQ Forum USB flasher<<
    http://www.msi.com/product/mb/Big-Bang-XPower-II.html#/?div=BIOS
    **Merged
    Core i7 3930K, V1.2 Bios, 32GB Corsair Dominator Quad channel 1600Mhz Kit.. The memory are installed as the manual says..

  • Update of data stored in BLOB of Oracle

    Hi,
    During the update of data stored in BLOB, the data integrity disturbance is happening, so it becomes impossible to receive new data with small volume from the BLOB than the data stored in BLOB.

    Try searching the forums for oracle and lob, there will be plenty of articles.

  • Does the standard Intel HD Graphics 4000 in the 13 inch Macbook pro stand up to other graphics cards with dedicated memory ( 1GB of memory for instance)?

    Does the standard Intel HD Graphics 4000 in the 13 inch Macbook pro stand up to other graphics cards with dedicated memory ( 1GB of memory for instance)? I need a laptop for college and the Engineering program suggests a dedicated video card with minimum 1GB of video memory.

    I have a Intel HD 4000 in my Mac Mini (late 2012), and it's okay for what I need it.
    However:
    - there were a few issues with flickering on the video output to external monitors. These were solved through a firmware update that came with OSX 10.8.3 - for the majority of the users. There is apparently still a small group of users that still has issues. You can read long threads about this here:
    https://discussions.apple.com/thread/4472316?start=0&tstart=0
    and here
    https://discussions.apple.com/thread/4490924?start=0&tstart=0
    So for most of us (me included) this issue is solved, but it seems that certain displays / monitors don't work well with the intel HD4000, don't know if there is a pattern or a list of monitor models...
    - there was an issue with the color calibration on the HDMI output. No matter how much you tried to calibrate, the results remained unsatisfying. All light colors were crushed to white, wrong contrast, ...
    You can read about this here:
    http://forums.macrumors.com/showthread.php?t=1482487
    https://discussions.apple.com/thread/4480354?start=0&tstart=0
    The same firmware update improved this a little, good enough for me, but I can imagine it's not good enough if you do graphic work and need reliable colors from your monitor. On HDMI output, the thunderbolt/MDP output is fine. So it's mainly a dual monitor setup issue.
    If it's for graphic work, I'd go for a Mac Book Pro with dedicated GPU !

  • I am using Xcode 5  on Mac Book with configuration Memory  5 GB 1067 MHz DDR3  and Processor  2.4 GHz Intel Core 2 Duo. It is getting hanged every time  whenever i work on Storyboard.  As my storyboard consists of 25 scenes. Please help I m suffering.

    I am using Xcode 5  on Mac Book with configuration Memory  5 GB 1067 MHz DDR3  and Processor  2.4 GHz Intel Core 2 Duo. It  hangs every time  whenever i work on Storyboard and even on clicking on any of the controller it takes time to open.  As my storyboard consists of 25 scenes. I searched a lot but did not get any results . I have upgraded my xcode to xcode 5.0.2  which is bug free as compare to xcode 5. Please help I m struggling with this problem a lot.

    iTunes for Mac
    http://support.apple.com/en-us/HT201693
    http://www.apple.com/itunes/download/
    Was it installed before? Does it show up in Software Update?
    Do other updates show up there (realizing that Lion is not getting all the updates anymore as it is no longer being supported).
    Apple Downloads
    - Always a place to manual download.
    MacBook Pro
    Mac OS X Lion System Communities

  • Best update compatible with 10.6.8 with a Core i5

    What is best update compatible with my macbook pro - OS X 10.6.8 with an Intel Core i5
    I am not sure if Mavericks is compatible with this computer, and wonder if anyone has suggestions on what update to get

    You can check below:
    Upgrading to Mavericks
    You can upgrade to Mavericks from Lion or directly from Snow Leopard. Mavericks can be downloaded from the Mac App Store for FREE.
    Upgrading to Mavericks
    To upgrade to Mavericks you must have Snow Leopard 10.6.8 or Lion installed. Download Mavericks from the App Store. Sign in using your Apple ID. Mavericks is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks- System Requirements
          Macs that can be upgraded to OS X Mavericks
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Or you can stick with Snow Leopard. It's up to you. You can install the above on a separate hard drive or a separate volume on a hard drive in order to check it out before you decide to upgrade your main system. Be sure you make backups before you begin any system upgrade.

  • ATI Radeon 9000 Pro video card is conflicting with additional memory

    I have a ATI Radeon 9000 Pro video card. I have a 645E Max motherboard (MS-6547). I recently purchased a 512MB dimm of Kingston PC2700 Cas 2.5 memory (KVR333X64C25/512) to go with the the 256MB dimm of the same model # above. I installed the memory and my screen stays blank. When I remove the new dimm it runs fine. I did get the memory and the motherboard tested at the store where I got the motherboard and they work fine. I came to the conclusion it was my video card when I removed all my components except the memory and the video card, and turned on the machine,nothing. I did try swiching dimm location and changing any bios settings I thought would make it work. I tried updating the video card drivers and motherboard AGP drivers. If anybody had this problem in the past could you tell me how you got it to work.

    I took the board and the 2 dimms to the store where I bought them.  They hooked up both dimms and a video card to the board.  When it was powered up, both dimms were recognized.  After I got home I proceded to determine if another component it conflicting with the memory.  I started with both dimms and my video card the Radeon.  I powered up with no other hardware connected and the screen remains blank.  I remove the 512MB dimm and leave the 256MB dimm in, and powered up and pc booted up normally.

  • Issue in Invoking an Updatable View with Instead of Trigger

    Hi,
    I am trying to insert a record using Updatable View with Instead of Trigger. When i try to save the data, i get the below error:
    java.sql.SQLException: ORA-01403: no data found
    ORA-06512: at line 1
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1075)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3887)
    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9323)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1508)
    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:172)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:432)
    at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8566)
    Can someone help me resolve this issue?
    Also it would be great if you can share Sample codes for Invoking an updatable view with instead of trigger on Save/commit.
    Regards,
    Jeevan

    As a trigger is executed in the db and not in your app it's really hard to help as you did not give any useful information.
    Have you read this blog http://stegemanoracle.blogspot.com/2006/03/using-updatable-views-with-adf.html ?
    Timo
    Edited by: Timo Hahn on 22.09.2011 09:15
    And my friend google also found http://technology.amis.nl/blog/1447/adf-business-components-resfresh-after-insertupdate-and-instead-of-triggers

  • I updated my computer to the new software and now the iPhoto has a circle with a line through it.  When I try to update, it pops up to say "These apps cannot be accepted by your apple id". Then will say "update unavailable with this apple id" how do i fix

    I updated my computer to the new software and now the iPhoto has a circle with a line through it.  When I first try to open it the pop us says: "You can't use this version of the application "iPhoto" with this version of OS X. Version: 9.2.1"  When I try to update, it pops up to say "These apps cannot be accepted by your apple id - These apps were already assigned to another Apple ID and they will be available in that Apple ID's purchases list.  If you don't have access to that Apple ID and want to receive future updates, you will need to purchase the application".  I checked and there is nothing under the "purchases" in my App store.  Then will say "update unavailable with this apple id - This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canceled." Then the third pop up says "We could not complete your request. There was an error in the App Store.  Please try again".  Just want to know how do to fix.

    After I upgraded to Mavericks I was also having this message when I tried to update. There was a previous post about this problem which offered this simple solution which worked for me:
    b0n0b0
    Re: Recently upgraded to Maverick from SnowLeopard. Unable to get updates from App store.
    Mar 15, 2014 9:05 AM (in response to Terence Devlin)
    Got it! Thanx.  What I did was go to my account, check that they had my new ID and Password which they did, then hit reset button. All fixed.

  • After the most recent FF update, FF 3.6.6 will not load, citing the error message: "XULRunner / Error: Platform version '1.9.2.3' is not compatible with minVersion =1.9.2.6 / maxVersion". Tried updating XULRunner with no luck. Downloaded fresh copy and

    After the most recent FF update, FF 3.6.6 will not load, citing the error message: "XULRunner / Error: Platform version '1.9.2.3' is not compatible with minVersion>=1.9.2.6 / maxVersion". Tried updating XULRunner with no luck. Downloaded fresh copy and installed. Still no luck.
    == This happened ==
    Every time Firefox opened
    == FF updated to 3.6.6 ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

Maybe you are looking for

  • Missing images in Word Document

    I am having a problem with some missing images when I generate a Word document from RoboHelp HTML. I have seen similar problems in these forums and have tried the solutions without success. I have Word 2002 SP3. I have images in my document that have

  • Should i buy zen vision: m now or wa

    till a newer player to be out? i'm a bit put off by the thickness and weight of the player. but.. i really love the player and its interface. so.. does anyone know whether creative will release a player along the likes of zen vision: m but that is th

  • CO_Order Archiving

    We need to remove some internal orders which were prematurely created for our new fiscal year but will not be used after all due to changes to our chart of accounts paradigm.  The obvious way to do this is to close and archive them off the system, an

  • Canon 5D MkII not detecting in iMovie and Photo Booth

    Background: Until a few weeks ago we were using a Panasonic N28 Camcorder to take photos via Photo Booth and record videos via Image Capture. We had it connected using Firewire and maybe we also had USB too and it was able to shoot videos via iMovie'

  • How to make a JMS Proxy Service Subscriber act as a synchronous service

    I am trying to find the correct OSB pattern/configuration to support the following. Use case: Multiple messages put onto a JMS topic. The Java Web Service invoked by the Proxy Service subscriber should only ever have one instance active at a time so