Skip to content

Commit

Permalink
Finished adding the code to allow downloads.
Browse files Browse the repository at this point in the history
  • Loading branch information
MattGuptil committed Dec 14, 2018
1 parent b6a6db8 commit 73f32d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions react-ui/src/Library.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ state = {
myob2['image_ids'] = this.state.idArray ;
axios.post('http://127.0.0.1:5000/api/image/get_images_zipped', myob2)
.then(res => {
var myAr = []
myAr.push(res.data)
this.setState({afterIM: myAr}, () => {
this.pullArray() ;
})
console.log(res.data)
var img = res.data.zip_data
var url = 'data:application/x-zip-compressed;base64,' + img
window.open(url);

})
.catch(function (error) {
console.log(error);
Expand Down

0 comments on commit 73f32d9

Please sign in to comment.