codice:
Dim value As String = RichTextBox1.Text
'Convert String to Byte array.
Dim array() As Byte = System.Text.Encoding.ASCII.GetBytes(value)
Dopo aver convertito la stringa e salvato l'array il problema non mi si risolve, ecco un immagine
3.jpg
Questo codice fa al caso mio e fa ciò che mi serve solo che mi inverte i byte, qualcuno può aiutarmi per far si che ciò non avvenga ? grazie mille
codice:
Try
If save_savefiledialog.ShowDialog() = Windows.Forms.DialogResult.OK Then
Dim fs As New IO.FileStream(save_savefiledialog.FileName, IO.FileMode.Create)
For x As Integer = 0 To hexString.Length - 1 Step 8
Dim ui As UInt32
ui = Convert.ToUInt32(hexString.Substring(x, 8), 16)
Dim b() As Byte = BitConverter.GetBytes(ui)
fs.Write(b, 0, b.Length)
Next
fs.Close()
End If
Catch
End Try