Trying to pull an image off of Amazon S3 (returns S3ObjectInputStream) and send it to the mandrill email api (takes a base64-encoded string). How can this be done in Scala?
Trying to pull an image off of Amazon S3 (returns S3ObjectInputStream ) and send
Share
Here is one solution, there are probably others more efficient.
You could (and should) also replace the
sun.miscencoder by the apache commons Base64 for a better compatibility.