base64 handling added to UploadFromUrl