Skip to main content

Command Palette

Search for a command to run...

String to Byte Array

Published
1 min read

String to byte[]
A simple code to convert a string to byte array

UTF8Encoding encoding = new UTF8Encoding();
return encoding.GetBytes("My string to convert!");
28 views

More from this blog

Fix, Build, Automate

17 posts

Straightforward solutions for modern tech problems