Thanks for the quick response, wish there was a better solution, but here is what I ended up with (which solves my problem for the time being as only 10% of records are larger than 4k)
create or replace function blob_to_varchar2(b blob)
return varchar2 is
begin
if (length(b) between 1 and...