TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: ICanHazData – Data URI Swiss Army Knife

257 pointsby chadsciraover 8 years ago

2 comments

orfover 8 years ago
I get why you might want to make this, but isn&#x27;t it just a one-liner?<p>&gt; echo &quot;data:$(file -b --mime-type somefile);base64,$(base64 somefile)&quot;
评论 #13059333 未加载
chadsciraover 8 years ago
This was made to make playing with Data URI&#x27;s much easier.<p>I find myself often needing a quick way to generate a Data URI when playing with files on jsfiddle, or codepen (due to CORS). So I thought it would be nice to have a website that locally stores those files.<p>This was thrown together in a couple of hours (using react&#x2F;mobx), and inspired by [0] &quot;The XSS Game By Google post&quot;. It turned out that quite a few people didn&#x27;t know that you could use URI&#x27;s for things that were not images.<p>If you have any suggestions feel free to voice them :)<p>- [0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13021869" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13021869</a>