Licorice Works Blog
  • Home
  • Blog
  • About
Sign in Subscribe
Curtis Lucas

Curtis Lucas

http://licoriceworks.com
Convert a JavaScript Blob to a Base64 String

Convert a JavaScript Blob to a Base64 String

APIs don't always give you data in the most useful format. I'll show you how to turn a binary JavaScript blob into a usable Base64 data URL. Sometimes APIs return binary data. With the JavaScript Fetch API, this means that you're getting back a
16 Nov 2023 5 min read
Use NGINX to Host a Local Site Using Docker

Use NGINX to Host a Local Site Using Docker

Sometimes, you can't simply open your index.html in Chrome to test your website. You need the features of a real web server like NGINX. A common case where directly loading index.html falls short is trying to serve local files using the Fetch API. You run into
03 Nov 2023 5 min read
Copying a Binary Image Blob to the Clipboard with JavaScript

Copying a Binary Image Blob to the Clipboard with JavaScript

One challenge I encountered when creating Spindle was copying the raw bytes of a PNG image to the clipboard. The current best practice for doing this is to use the ClipBoard API. This API isn't supported on all browsers, so I'll also show you how to
25 Oct 2023 6 min read
Page 1 of 1
Licorice Works Blog © 2025
  • Sign up
Powered by Ghost