Is - this problem of data image or any other code problem?

Hey, guys:

I have a question:

I tried to create a thumbnail image for each image stored in a table called sor_image2 and save it to another column named "thumbnail" of the same table. However, I can run my procedure only to deal with a limited number of photos, say, less than 1000 images without problem; If I tried to run my procedure to process more images (for example, 5000 images), I received an error as follows:

ORA-29400: data cartridge error
IMG-00730: failed to process the empty image
ORA-06512: at "ORDSYS. ORDIMERRORCODES', line 75
ORA-06512: at "ORDSYS. ORDIMERRORCODES', line 65
ORA-06512: at "ORDSYS. ORDIMERRORCODES', line 29
ORA-06512: at "ORDSYS. ORDIMG_PKG', line 134
ORA-06512: at "ORDSYS. ORDIMAGE", line 1387
ORA-06512: at "get OUT. SOR_IMAGE_SERVICE', line 110
ORA-06512: at line 1
29400 00000 - 'data cartridge error\n%s '.
* Cause: There was an error in an outpatient procedure of data cartridge.
This message will be followed by a second message gives
more information about the data cartridge error.
* Action: See the documentation for data cartridge
for an explanation of the second error message.

Here is my code:
  procedure Sor_Create_Thumbnail(P_s_Command IN VARCHAR2) as
  
  thumb_blob blob;
  current_blob blob;
  current_image_id number;
  
   cursor cur_All_Images_ID is
        SELECT image_ID
        FROM sor_image2
        where image_id<5000;
        
  begin
  
    open cur_All_Images_ID;
    
    loop
    
      fetch cur_All_Images_ID into current_image_id;
      
      select image into current_blob
      from sor_image2
      where image_id=current_image_id;
      
      dbms_lob.createtemporary(thumb_blob, true, DBMS_LOB.CALL);
      ordimage.processCopy(current_blob, P_s_Command, thumb_blob);
      
      update sor_image2
      set thumbnail=thumb_blob
      where image_id=current_image_id;
      
      dbms_lob.freetemporary(thumb_blob);
      
      commit;
      
      exit when cur_All_Images_ID%NOTFOUND;
      
    end loop;
    
    close cur_All_Images_ID;
    
    commit;
  
  end;
and I performed my procedure:
execute sor_image_service.Sor_Create_Thumbnail('maxScale 300 300');
I am using Oracle 11 G R2. I don't know if this problem is caused by a corrupted image, or no limit code or same privilege, could someone give me a clue about this problem?

Thank you very much!

You can try

procedure Sor_Create_Thumbnail(P_s_Command IN VARCHAR2) as

  thumb_blob blob;
  current_blob blob;
  current_image_id number;

   cursor cur_All_Images_ID is
        SELECT image_ID, image
        FROM sor_image2
        where image_id<5000
and dbms_lob.getlength( image ) > 0;

  begin

    open cur_All_Images_ID;

    loop

      fetch cur_All_Images_ID into current_image_id, current_blob;

      exit when cur_All_Images_ID%NOTFOUND;

      dbms_lob.createtemporary(thumb_blob, true, DBMS_LOB.CALL);
      ordimage.processCopy(current_blob, P_s_Command, thumb_blob);

      update sor_image2
      set thumbnail=thumb_blob
      where image_id=current_image_id;

      dbms_lob.freetemporary(thumb_blob);

      commit;

    end loop;

    close cur_All_Images_ID;

    commit;

  end;

Published by: ascheffer on February 11, 2013 16:43
Changed the status of output to the top

Tags: Database

Similar Questions

  • The address toolbar is missing. I followed the guides online to resolve this issue, do not work. Any other ideas?

    The address toolbar is missing. I followed the guides online for this problem, including disabling macros complementary and extensions. The problem does not occur in safe mode. But occurs even when accelerating, all extensions & add-ins and themes are disabled. I also reloaded firefox 4. Any other ideas?

    Follow these steps:

    1. Click help | Restart with disabled modules.
    2. In the next menu that appears, select: "reset the bars of tools and controls.
    3. Finally, click on the button called "make changes and restart".
  • System Restore is running on a Vaio laptop, but catering to the date indicated or any other date indicated.

    System Restore will give you a message Impossible to restore.  Several dates have been tried without success.

    Thanks for that but, I was able to fix various problems with past in Mode without failure.  Now I'm afraid that if I use some problems can return the system restore. But I'll get a note of what you have written.

  • Whenever I am watching a video in HD, the browser starts hanging all the time. This is not the case in any other browser. Can someone help me?

    Watching videos on YouTube is one of the things I do mainly on the internet. My GPU is able to handle HD videos. That's why I allow it. Although Firefox seems not to like it. He begins hanging is 4 to 6 seconds apart. And the most interesting part is that the other browsers (IE, Chrome and Opera) do not do this. I have tried everything that said aid resources, but nothing changed. Please help me!

    Have you tried to disable the safe_mode in the Flash plugin?

  • not seeing functions to download images or any other function that used to be at the top of the page.  Elements 9

    help, trying to download pictures from my phone to my computer.  Photoshop elements Organization page opens with my photos in there, but none of the functions are at the top to let me download or do anything.  I try to connect and it says that the services are currently unavailable. Please try again later.  It's been two weeks.  also says error 400

    400 error is because you are trying to connect to photoshop.com, which was dead and buried for well over a year.

    For the missing menu Organizer:

    http://www.johnrellis.com/psedbtool/Photoshop-elements-FAQ.htm#_Setting_the_Windows

  • Why are there Notes so far behind any other app/similar program?

    It's absolutely crazy that I have to spend hours and hours of writing/typing dates and then copy and paste all my notes in another program/App. It would be nice if I could click on 'Download' like almost everything else in the iCloud, or even simply export them using iTunes would do the job. But, none. Nothing of the sort. If you type notes in your iPhone/iPad Notes app; then on this device, or iCloud, are the ONLY places you can check out these notes. Horrible. Absolutely horrible. I used the Notes app every day for almost a year, and now I'll never use again. Starting to consider buying a different camera for this reason alone. Notes are a big part of my life, and I'd love for them to be easily copied, transferred, downloaded or exported. Without this simple feature this app will remain years behind any other application available for iOS, or any other device also note.

    Where would you send them?

    Where you want to see 'download' and in what format you want to have them after the download?

  • My SP6 will not open RAW images, and when I try to update, it tells me that updates may not be applied. Any suggestions? Please, it is very important, I have this problem as soon as possible.

    I would like to edit RAW images in Photoshop, but I get an error message saying that the file cannot be opened and to make sure that I have the updates. But when I try to update, I get another error message tells me that impossible to apply the updates. I need this problem as soon as possible and I'm going crazy trying to figure it out. Any help out there?

    Try these links:

    Failed installation. Error U44M1P7 | Updates

    Cannot apply the update of the Extension Manager CS6 - error U44M1P7. Mac OS

    If the two do not work, consult this thread Re: error update CS6 Production Premium especially the last answer.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Whenever I have I try to log in to my user account, it says disconnected a few seconds after clicking on the image to open a session. Any help to solve this problem?

    Well, when at the start screen, I can connect to the admin account, but I can't log in to the user more. It says disconnected when I connect.

    I suggest that you run a full scan with your AV currently installed, and/or both linked below, just to make sure that your system is clean.

    Malwarebytes (free) AV

    http://www.Malwarebytes.org/

    SAS (SuperAntispyware) free.

    http://SUPERAntiSpyware.com/

    Remove anything found and restart after each scan.

    If you find malicious software, run the scans up to their own. When you have finished, try again to load the user profile to see if the problem persists and if he does, refer to the link below for more detailed troubleshooting tips

    http://support.Microsoft.com/kb/947215

    Let us know if you have any other questions.

  • How to solve the problem of the Image in any PDF file displayed in yellow

    Hello

    I am trying to display any PDF in Acrobat Reader, the image is shown in light yellow.

    The following pdf is created by printing to a PDF from a Web page creator using IE.

    I check this document on another machine with similar Spec (Windows 8.1 Pro) and the same version of Acrobat Reader, he appears as gray as expected.

    Checked the same pdf on the computer having this problem using "FoxIt Reader", it appears as Normal (Gray).

    The image is displayed in yellow

    y1.png

    The image appears normal in FoxIt and PDF Xpansion Reader (grey)

    y2.png

    I tried the following, but does not help:

    1. edit > Preferences > accessibility > replace the colors in the Document (not help)

    2. I have try and reset the default Windows color profile (not help)

    We know what could cause this problem?

    I also tried Acrobat Pro (the same problem).

    Thank you.

    With regard to the dat.

    I think, I found the problem (after changing the following setting, it seems to solve the problem).

    I re - open the PDF file with the problem and it works now.

  • Cards will be open any after update 9.3. Anyone else having this problem?

    Cards will be open any after update 9.3. Anyone else having this problem?

    No, not at all. Cards work properly.

    Try a forced reboot: hold down the House and on the buttons until the unit turns off. Ignore the cursor off if it appears. Once completed, if it does not start on it own, turn off power with the key On. In some cases, it also contributes to double click the Home button and close all applications before restarting.

    Also, make sure card is configured to use mobile data (settings app > cell phones > cards [turn it on if it isn't already].) And that location services is enabled for it (settings app > privacy > location Services)

  • When I try to use the Windows Update link for my XP computer I get a message indicating that the location where the Windows Update stores data has changed and it needs to be repaired. How can I solve this problem?

    When I try to use the Windows Update link for my XP computer and after using Windows Mr. Fix - It, I get a message indicating that the location where the Windows Update stores data has changed and must be repaired. How can I solve this problem?

    I'm not that computer literate and do not understand what needs to be fixed.

    This problem just started a few weeks when I noticed that I had any recent download automatic update that I regularly get. So I tried to do it manually through access via my control panel.

    I use ESET Antivirus Node32 software.

    Hello

    1. What is the error message or an exact error code?

    2 have you made changes on the computer before this problem?

    3. you try to check the updates?

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Reset Windows Update components and then try to download the updates.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://support.microsoft.com/kb/322756

     

    Method 2:

    File system scan tool checker and then try to press Ctrl + Alt + Delete and check.

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe):

    http://support.Microsoft.com/kb/310747

    Please respond with more information so that we could help you more.

  • Windows Media Player opens when I type any key. This started 2 days ago and did the computer virtually unusable. The mouse is however immune to this phenomenon, so I can still use it. No idea how to solve this problem?

    Windows Media Player opens when I type any key. This started 2 days ago and did the computer virtually unusable. The mouse is however immune to this phenomenon, so I can still use it.

    No idea how to solve this problem?

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Do a system restore. Choose at least 3 days ago when you did not have this problem as your restore point.

    Start button > Search box, type system restore > press the Enter key > uac prompt > click on choose a different restore point > next > select dates as your restore point, until the click > next > finish
    To sit and wait. The machine restarts when it's done.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Suggestions to overcome this problem: a bug with the HTTP PATCH request with data on the body

    Hello guys,.

    I'm really stuck with a problem and I'm looking for suggestions for solutions and help implementingit.

    In summary:

    (1) the third REST API that I use use HTTP PATCH with the JSON data.

    2) there is a bug in Qt 4.8 that prevents me from using the http verb.

    (3) one of the main features of my new app is severely compromised because of this.

    (4) I found an independent patch to the bug in question.

    What are my options now?

    (A) should I patch Qt reconpile and 1980s, me with my application? I have no experience with these procedures.

    (B) is it possible that I can only implement the elements of fastening of the patch in my application code? I don't see how.

    (C) request and wait for BlackBerry for the patch and release it on the next update? That imensily would limit my clients, only running 10.3.3 and I was 10.3.0.

    (D) any other alternative!

    As I said, I'm really stuck now. I was able to realease my app without this big news, but it would be a great disappointment.

    Any help is appreciated.

    Thanks in advance.

    Here's the code in a Stackoverflow thread on the same topic, I can't try it myself, but let us know if it works and mark @oniongarlic response as a solution if it works.

    Thread: http://stackoverflow.com/questions/34065735/qnetworkaccessmanager-how-to-send-patch-request

    Code:
    QString destination ="";
    currentNode.replace(QString("/").append(latestNode),""); "
    destination
    . Append (Host)
    . Append (CurrentNode)
    . Append(".) JSON");
    QString jsonString=QString(QString("{").append("\"").append(latestNode).append("\"").append(":").append("\"").append(str).append("\"").append(QString("}")));)
    QNetworkRequest request (destination);
    request.setHeader (QNetworkRequest::ContentTypeHeader,
    "application/x-www-formulaires-urlencoded");
    qDebug()<>
    QBuffer * buffer = new QBuffer();
    buffer-> open ((QBuffer::ReadWrite));))
    buffer-> write (jsonString.toUtf8 ());
    buffer-> seek (0);
    Manager-> sendCustomRequest (request, "PATCH", buffer);
    qDebug()<>

  • Problem with the help of several lines of flight path images. Any help would be greatly appreciated thanks!

    Hello

    I use several lines of flight path images, and when the mouse is hovering over an image rollover on the second row or below the image that is supposed to appear appears on the image at the top of its column. Any help would be appreciated, I've tried everything I can and can not find a way to solve this problem. If you need videos or screenshots of the problem, DOM Panel or code please ask. Thank you

    I'm on a mac on Yosemite and spin the latest version of dreamweaver

    Until you find permanent web hosting, do a Google search for free web hosting.  You will find a lot out there that you can use for temporary testing & debugging.

    Nancy O.

  • Hi all, after happily using CC for almost a year he no longer works: the creative cloud icon continue on spinning and when I try to open ANY CC applications a warning saying "Adobe Application Manager is needed to solve this problem. However, he

    Hi all, after happily using CC for almost a year he no longer works: the creative cloud icon continue on spinning and when I try to open ANY CC applications a warning saying "Adobe Application Manager is needed to solve this problem. However, it is missing or damaged. Please download and install a new copy ecc ecc. Tried all that but I'm stuck. any help, please? Thank you.

    Hello

    Please try following steps depending on your operating system

    (Windows)

    (1) close adobe all processes in the Task Manager (Core sync services for the desktop application adobe, adobe office, broker CIB Adobe updater AAM service)

    2) navigate to the following locations and assign all permissions to the adobe folders to the current user.  (Right click on adobe folder select properties then click on the Security tab, click on edit and select current user, that you are connected to, select full control, click on apply and then ok)

    C: / / program data (to view hidden files to see this folder)

    C: / / program files 86 x files / common

    C: / / program files x 86.

    C: / / program files common files

    C: //program files.

    Go to c:/programdata/Adobe and oobe and rename it oobe.old

    Go to c: / / programfiles86x/common files/adobe/and rename the oobe oobe.old and aamupdator to ammupdator.old and delete the folder Adobe application manager

    Go to c: / / Users/username/appdata/local/adobe/rename in oobe to oobe.old and aamupdator.old aamupdator

    Go to Control Panel/Add or remove programs and uninstall cloud creative app

    Install app creative cloud from link according to https://creative.adobe.com/products/creative-cloud

    Run it and it should work.

    (MAC)

    (1) close adobe all processes in the activity monitor (cloud Creative), synchronization of the base, CC, ccx, services for the desktop application adobe, adobe office, CIB Adobe updater AAM Broker service

    2) navigate to the following locations and assign all permissions to the adobe folders to the current user. To navigate, click on go in the bar on then click goto... type/library/application support of / and then click OK.

    (3) to assign the authorization right click on adobe folder and click on Get info... A window will open. Then click on the lock symbol to allow editing. Then click on sign + to add your user name. Then change read only to read and write. Then click gear icon on the bottom and click on apply to the elements included and click ok... Go to the next step then.

    3) navigate to the location following support/adobe application and rename in oobe to oobe.old and aamupdator.old aamupdator.

    (4) place you ~/Library/application support/adobe/oobe and rename in oobe to oobe.old and aamupdator.old aamupdator.

    Cloud creative library and remove 5 open application).

    (6) open utility library of the application itself and delete Adobe application manager and creative cloud

    (7) install creative cloud from link according to https://creative.adobe.com/products/creative-cloud

    (8) launch cc app and it should work properly

Maybe you are looking for

  • L50 - A - black screen on startup satellite

    After pressing power button all I get is a black screen.Previously, when I pressed the button that should be up to 10-15 min to get to log in screenIs all black, I can hear the fan working. The same phenomenon occurs on battery or power.Pressing F1 F

  • Unable to rate in music since 9.3 songs update apple

    9.3 pre, if you pressed the title of the song, see highlighted section in the picture, it gave you the song start rating, can't seem to do now

  • Satellite A100 T2400 upgrade memory

    Bought a week ago, just to upgrade memory to 2048 MB (the manual says it can be increased up to 4096 MB) The A100 has already as came from the factory with two slots of 512, 1024 MB of ram, but... where are the other passers-by for the upgradememory?

  • Power pack 1 error (new installation windows server 2011)

    Hi all, Im having problems trying to install power pack 1 of windows home server 2011, there is a new configuration with all windows update at day and not being invited by update install any update. The microsoft Download Center, I was able to downlo

  • UNABLE to get the drive letter of the disk 0 Partition 1

    Hello world. Well, yesterday I tried to install Ubuntu netbook edition 10.10. Well, in the middle of something was wrong and it corrupted the Windows partition. Linux is installed, but Windows is damaged. I'm on a Gateway laptop, and I have a recover