6
Cómo codificar imágenes en base64 en linux bash / shell
Estoy tratando de codificar una imagen en base64 en un script de shell y ponerla en la variable: test="$(printf DSC_0251.JPG | base64)" echo $test RFNDXzAyNTEuSlBH También probé algo como esto: test=\`echo -ne DSC_0251.JPG | base64\` pero aún sin éxito. Quiero hacer algo como esto: curl -v -X POST -d '{"image":$IMAGE_BASE64,"location":$LOCATION,"time_created":$TIMECREATED}' …