title: Oracle ORDImage processing in PL/SQL: Getting IMG-00710 and ORA-01031
body: <p>I have loaded image into a new, initialized Oracle ORDImage object and am processing it by PL/SQL. I can read its properties, but cannot process it with the process() method. </p>
  
  <pre><code>vLocalImage ORDImage := ORDImage.init();
  ...
  vLocalImage.source.localdata := PORTAL.wwdoc_admin.get_document_blob_content(pFile);
  vLocalImage.setProperties();
  ...
  if vLocalImage.width &gt; lMaxWidth
  then
  vLocalImage.process('maxScale 534 401');
  end if;
  </code></pre>
  
  <p>This should scale the image down, conserving aspect ratio, so that it is no more than 534 px wide and no more than 401 px high. </p>
  
  <p>However, I get the following error stack:</p>
  
  <pre><code>Internal error: ORA-29400: data cartridge error
  IMG-00710: unable to write to destination image
  ORA-01031: insufficient privileges
  </code></pre>
  
  <p>Trying other operations (like 'rotate 90') gives same errors.</p>