Comprimir una imagen utilizando AS_ZIP [message #677022] |
Wed, 07 August 2019 19:46  |
 |
Bartholomew Kuma
Messages: 12 Registered: March 2019
|
Junior Member |
|
|
Hi everybody,
I am trying to compress an image obtained from a table with the following code:
declare
g_zipped_blob blob;
V_Blob blob;
l_clob CLOB;
begin
Select Image Into V_Blob From Per_Images
Where Parent_Id =145777;
as_zip.add1file( g_zipped_blob, 'BlobFiles/test2.jpg', utl_raw.cast_to_raw(V_Blob) );
as_zip.finish_zip( g_zipped_blob );
as_zip.save_zip( g_zipped_blob, 'DEV_DIR', 'test.zip' );
dbms_lob.freetemporary( g_zipped_blob );
end;
ORA-06550: line 8, column 58:
PLS-00306: wrong number or types of arguments in call to 'CAST_TO_RAW'
ORA-06550: line 8, column 3:
PL/SQL: Statement ignored
What am I doing wrong?
|
|
|
|
|
|