{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/615","repository_url":"https://api.github.com/repos/aws/aws-amplify","labels_url":"https://api.github.com/repos/aws/aws-amplify/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-amplify/issues/615/comments","events_url":"https://api.github.com/repos/aws/aws-amplify/issues/615/events","html_url":"https://github.com/aws/aws-amplify/issues/615","id":312582876,"number":615,"title":"Could Not load Image after Upload to S3 as JPEG File","user":{"login":"ashishsoni","id":877509,"avatar_url":"https://avatars1.githubusercontent.com/u/877509?v=4","gravatar_id":"","url":"https://api.github.com/users/ashishsoni","html_url":"https://github.com/ashishsoni","followers_url":"https://api.github.com/users/ashishsoni/followers","following_url":"https://api.github.com/users/ashishsoni/following{/other_user}","gists_url":"https://api.github.com/users/ashishsoni/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishsoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishsoni/subscriptions","organizations_url":"https://api.github.com/users/ashishsoni/orgs","repos_url":"https://api.github.com/users/ashishsoni/repos","events_url":"https://api.github.com/users/ashishsoni/events{/privacy}","received_events_url":"https://api.github.com/users/ashishsoni/received_events","type":"User","site_admin":false},"labels":[{"id":845261221,"url":"https://api.github.com/repos/aws/aws-amplify/labels/Storage","name":"Storage","color":"78d2e2","default":false},{"id":772762686,"url":"https://api.github.com/repos/aws/aws-amplify/labels/investigating","name":"investigating","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-09T15:42:15Z","updated_at":"2018-04-09T21:38:28Z","closed_at":null,"author_association":"NONE","body":"I am able to upload the image to s3 but when i try to view or download back i am getting below error\r\n\r\n![s3_upload_image_error](https://user-images.githubusercontent.com/877509/38507544-d0636d08-3bea-11e8-9d5c-a8ace26ceadc.png)\r\nAfter capturing from camera \r\n\r\nthis.camera.getPicture(options).then(\r\n        imageData => {\r\n          this.base64Image = \"data:image/jpeg;base64,\" + imageData;\r\n});\r\n\r\nStorage.put(id , photo, { contentType: 'image/jpeg' })\r\n        .then(res => {\r\n//do something\r\n      });\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/comments/379902260","html_url":"https://github.com/aws/aws-amplify/issues/615#issuecomment-379902260","issue_url":"https://api.github.com/repos/aws/aws-amplify/issues/615","id":379902260,"user":{"login":"richardzcode","id":1006903,"avatar_url":"https://avatars3.githubusercontent.com/u/1006903?v=4","gravatar_id":"","url":"https://api.github.com/users/richardzcode","html_url":"https://github.com/richardzcode","followers_url":"https://api.github.com/users/richardzcode/followers","following_url":"https://api.github.com/users/richardzcode/following{/other_user}","gists_url":"https://api.github.com/users/richardzcode/gists{/gist_id}","starred_url":"https://api.github.com/users/richardzcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardzcode/subscriptions","organizations_url":"https://api.github.com/users/richardzcode/orgs","repos_url":"https://api.github.com/users/richardzcode/repos","events_url":"https://api.github.com/users/richardzcode/events{/privacy}","received_events_url":"https://api.github.com/users/richardzcode/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T21:38:27Z","updated_at":"2018-04-09T21:38:27Z","author_association":"COLLABORATOR","body":"Hey @ashishsoni , If upload with base64 encoded, you'll need to set 'ContentEncoding' with 'base64'\r\n\r\n#576 has more discussion on this."}}
{"actor":{"display_login":"richardzcode"}}