{"id":320,"date":"2010-09-07T16:22:05","date_gmt":"2010-09-07T20:22:05","guid":{"rendered":"http:\/\/kamivaniea.com\/?p=320"},"modified":"2010-09-07T16:22:05","modified_gmt":"2010-09-07T20:22:05","slug":"convert-from-string-to-byte-array-in-c","status":"publish","type":"post","link":"http:\/\/kamivaniea.com\/?p=320","title":{"rendered":"Convert from String to Byte array in C#"},"content":{"rendered":"<p>To convert from a string to a byte[] in C# use the following code:<\/p>\n<p><code><br \/>\nbyte[] newByteArray = System.Text.Encoding.UTF8.GetBytes(\"Hello World\");<br \/>\n<\/code><\/p>\n<p>You can use UTF8, UTF16 (Unicode), and UTF32 encoding.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To convert from a string to a byte[] in C# use the following code: byte[] newByteArray = System.Text.Encoding.UTF8.GetBytes(&#8220;Hello World&#8221;); You can use UTF8, UTF16 (Unicode), and UTF32 encoding.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[43],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-application-debug","tag-c"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2u4LH-5a","_links":{"self":[{"href":"http:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kamivaniea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320"}],"version-history":[{"count":4,"href":"http:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":630,"href":"http:\/\/kamivaniea.com\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions\/630"}],"wp:attachment":[{"href":"http:\/\/kamivaniea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kamivaniea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kamivaniea.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}