(#3008) - fix base64 putAttachment in http.js