0

How can I convert a UUID (like in a string) to a byte array to be sent over the network?

I know that in C# I could do something similar to:

string uuid = "927070a6-3680-4f01-9e04-debf0255603c";
byte[] bytes = Guid.Parse(uuid).ToByteArray()

But as far as I know, JS doesn't even have Guids.

I have been unable to find any working method implementing this feature.

0 Answers0