Search notes:

Data URLs

data:                   ,<data>
data: <mediatype>       ,<data>
data:             base64,<data>
data: <mediatype>;base64,<data>
mediatype is a MIME type string. If omitted, the value defaults to text/plain;charset:US-ASCII.
Special characters (reserved characters as defined RFC 3986) in <data> must be percent encoded.

Creating data URLs with PowerShell

PS> add-type -assemblyName System.Web
PS> $dataUrl = 'data:,' + [System.Web.HttpUtility]::UrlEncode("Rene says:`nHello World!")
PS> start-process chrome $dataUrl
Making sure that the right encoding is specified (Note the acute accent on René):
PS> $dataUrl = 'data:text/plain;charset=UTF-8,' + [System.Web.HttpUtility]::UrlEncode("René says:`nHello World!")
PS> start-process chrome $dataUrl
Using Base64, for example to decode an image:
PS> $pngBase64 = [Convert]::ToBase64String([IO.File]::ReadAllBytes('C:\Windows\System32\@WLOGO_48x48.png'))
PS> $dataUrl = 'data:image/png;base64,' + $pngBase64
PS> start-process chrome $dataUrl
(Mis-)use a browser as an editor:
PS> start-process chrome 'data:text/html,<html%20contenteditable>'

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1743216034, '52.15.95.169', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/web/URI-URL-URN-IRI-URC/URL/data/index(60): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78