Skip to content

Commit

Permalink
SAK-39947 'The character encoding [base64] is not supported' error wi…
Browse files Browse the repository at this point in the history
…th some image uploads (sakaiproject#5646)
  • Loading branch information
austin48 authored and jonespm committed Jun 12, 2018
1 parent 98bcffd commit f6f406b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public Object getProfileImage(OutputStream out, EntityView view, Map<String,Obje
if(bytes != null && bytes.length > 0) {
try {
out.write(bytes);
ActionReturn actionReturn = new ActionReturn("BASE64", image.getMimeType(), out);
ActionReturn actionReturn = new ActionReturn("UTF-8", image.getMimeType(), out);

Map<String,String> headers = new HashMap<>();
headers.put("Expires", "Mon, 01 Jan 2001 00:00:00 GMT");
Expand Down

0 comments on commit f6f406b

Please sign in to comment.