string to byte array
i have pictures in my project stored as byte array.
i need to convert these byte array into strings and vice versato set my clipboard totally in string format.
going through the forum i found out the following code to convert byte array to strings
Public Function ByteArrayToString(bytArray() As Byte) As String
Dim sAns As String
Dim iPos As String
sAns = StrConv(bytArray, vbUnicode)
iPos = InStr(sAns, Chr(0))
If iPos > 0 Then sAns = Left(sAns, iPos - 1)
ByteArrayToString = sAns
can anyone provide me the reverse process codes that is from string to byte array
god gave me nothing i wanted,
he gave me everything i needed.