Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 21:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Frage] String zu Array of Byte

Discussion on [Frage] String zu Array of Byte within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1


 
K1ramoX's Avatar
 
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,844
[Frage] String zu Array of Byte

- Hat sich geklärt. Das Thema kann geschlossen werden -
K1ramoX is offline  
Thanks
1 User
Old 02/28/2012, 21:46   #2
 
YunoSubs's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 275
Received Thanks: 49
Code:
#include <String.au3>

$Test = "testtest"

$sTest = _StringToArrayOfByte($Test)
MsgBox(0,"",$sTest)

Func _StringToArrayOfByte($String, $Lenght = 0)
	Local $AoB = StringToBinary($String)
	Local $AntiHex = StringRight($AoB,StringLen($AoB)-2)
	$sAoB = ""
	For $i = -1 To StringLen($AntiHex) Step +2
		$sAoB &= " " & StringMid($AntiHex,$i,2)
	Next
	$sAoB = StringStripWS($sAoB,1)
	Return $sAoB
EndFunc   ;==>_StringToArrayOfByte
Hoffe es funktioniert
YunoSubs is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Java - Byte Array in BufferedImage funktioniert nicht
02/08/2012 - General Coding - 0 Replies
hallo ich versuche schon seit einiger zeit ein byte in ein BufferedImage zu konvertieren aber ich bekomme immer eine IllegalArgumentException weil ImageIO.read(new ByteArrayInputStream(b) null wiedergibt das byte array wird über das internet via socket erhalten und in das byte gespeichert. hier nochmal der ganze code der betroffenen stellen: hier ist der server der die anfrage sendet und das bild empfängt:
[VB|Memory] Array of Byte auslesen
11/01/2011 - .NET Languages - 0 Replies
....
C# process into byte array. HOW?
10/03/2011 - SRO Coding Corner - 7 Replies
What is the simplest method to load the whole process into a byte array
[Resource] ASCII String & Byte Array Converter
11/14/2010 - CO2 PServer Guides & Releases - 9 Replies
#deleted



All times are GMT +1. The time now is 21:19.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.