Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, siddiq.

Asked: January 07, 2020 - 7:19 pm UTC

Last updated: January 08, 2020 - 4:05 am UTC

Version: 12.2

Viewed 1000+ times

You Asked

hi Tom,

am using 12c database having my images stored in blob data type column with TIFF format ,how can i change the images format to jpeg or png?
best regards

and Connor said...

The ORDSYS subsystem can handle that for you, eg

ordsys.ordimage.processCopy(source_tiff, 'fileformat=jpeg', target_jpeg);


So you could temporarily load your blob into a ordsys.ordimage datatype.

Unfortunately, future versions of Oracle will no longer have the ORDSYS infrastructure, in which case, you would probably need to look at using a 3rd party solution, or writing some custom Java to load into the database to do the conversion.

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

CLOB/BLOB/etc

Complete documentation on Securefiles and Large Objects here