I want to select a blob col from one table, base64 encode it and insert it into another tables. Is there any way to do this without round tripping the data out of the DB and
SELECT `id`,`name`, TO_BASE64(content) FROM `db`.`upload`
this will convert the blob value from content column to base64 string.
Then you can do with this string whatever you want even insert it into another table