Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Taranjeet_Chhab
Taranjeet_Chhab
Offline

Badges

Badges
1

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts

Posts
1

Discussions

Discussions
0

Questions

Questions
1

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by Taranjeet_Chhab
Customize the badges you want to showcase on your profile
Re: Create a Byte Array in adobe live cycle designer form - Adobe LiveCycle 19-07-2010
Perhaps you are looking for following code.....try { var str="string I need to convert"; //xfa.host.messageBox(""+stringToBytes(str)); var bytArray = stringToBytes(str).split(",");} catch (e) { xfa.host.messageBox(""+e)}function stringToBytes(str) { var ch, st, re = []; for (var i = 0; i < str.length; i++ ) { ch = str.charCodeAt(i); // get char st = []; // set up "stack" do { st.push( ch & 0xFF ); // push byte to stack ch = ch >> 8; // shift value down by 1 byte } while ( ch ); // add stack cont...

Views

102

Likes

0

Replies

0