Skip to content

Instantly share code, notes, and snippets.

Avatar
📜
Reading Scrolls of Wisdom

Nathan nebaughman

📜
Reading Scrolls of Wisdom
View GitHub Profile
@nebaughman
nebaughman / BlobImage.vue
Created Nov 9, 2019
Load image with ajax (axios) as blob data in Vue component
View BlobImage.vue
<template>
<img ref="image" :src="blobUrl" @load="loaded"/>
</template>
<script>
import axios from "axios"
/**
* Load an image url as a blob
*/