Created
December 10, 2010 10:16
-
-
Save 0xh3x/736052 to your computer and use it in GitHub Desktop.
Oracle Multimedia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare | |
| v_img1 BLOB; | |
| v_img2 BLOB; | |
| begin | |
| select t.data into v_img1 from my_images t; | |
| DBMS_LOB.CREATETEMPORARY(v_img2,TRUE, DBMS_LOB.SESSION); | |
| ORDSYS.ORDIMAGE.processCopy(v_img1,'compressionFormat=JPEG compressionQuality=80 fileFormat=jfif',v_img2); | |
| update rdd_doc_scans t set t.data=v_img2; | |
| DBMS_LOB.FREETEMPORARY(v_img2); | |
| exception when others then dbms_output.put_line(SQLERRM); | |
| end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment