473,473 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Single byte Hex - URGENT

Hi,

Any body can teach me how to convert double bytes HEX to single byte HEX?
I'm not too sure what does this mean. But, it is a requirement from a
server software that only allow single byte hex to be transfered to it.

Hope can get some help here.

Thanks first.

Seion
Nov 20 '05 #1
3 2835
It's really difficult for me to tell what you're trying to do here. There's
not enough detail.

Typically when people are talking about double byte stuff they're talking
about Asian characters. If you're not dealing with those then you're
probably ok. You're post seems to indicate that the server cannot process
these characters. As far as i know you cannot pack two bytes worth of data
into one without some kind of compression therefore you can't transform
double byte hex into single byte hex.

If you're wondering what "HEX" is it is just a different way of representing
a number. For example
The number 60 =
3C in Hex
111100 in binary

All three of these are exactly the same thing.

Hope that helps,
Shawn


"Seion" <se***@livelifecool.com> wrote in message
news:op**************@news.microsoft.com...
Hi,

Any body can teach me how to convert double bytes HEX to single byte HEX?
I'm not too sure what does this mean. But, it is a requirement from a
server software that only allow single byte hex to be transfered to it.

Hope can get some help here.

Thanks first.

Seion

Nov 20 '05 #2
-----Original Message-----
Hi,

Any body can teach me how to convert double bytes HEX to single byte HEX?I'm not too sure what does this mean. But, it is a requirement from aserver software that only allow single byte hex to be transfered to it.
Hope can get some help here.

Thanks first.

Seion
.
Well, assuming you're using VB.NET because I'm not sure

what language you're using, it should work as long as your
hex value is less than 255 (FF) the maximum capacity of
one byte is 2^8 (256) or 0-255.

If you have a hex value larger than FF it would require
two bytes. If you use vb to check the value, as long as
it is less than 255 it is one byte, and it should fit into
the byte data type.

I haven't actually done this, but seeing as how nobody
else replied and it said urgent maybe it will get you
going in the right direction.
Nov 20 '05 #3
Hi,

Thanks for all those information. I help.

Regads,
Seion

On Fri, 9 Jan 2004 11:11:18 -0400, Shawn Hogan <NOSPAM> wrote:
It's really difficult for me to tell what you're trying to do here.
There's
not enough detail.

Typically when people are talking about double byte stuff they're talking
about Asian characters. If you're not dealing with those then you're
probably ok. You're post seems to indicate that the server cannot process
these characters. As far as i know you cannot pack two bytes worth of
data
into one without some kind of compression therefore you can't transform
double byte hex into single byte hex.

If you're wondering what "HEX" is it is just a different way of
representing
a number. For example
The number 60 =
3C in Hex
111100 in binary

All three of these are exactly the same thing.

Hope that helps,
Shawn


"Seion" <se***@livelifecool.com> wrote in message
news:op**************@news.microsoft.com...
Hi,

Any body can teach me how to convert double bytes HEX to single byte
HEX?
I'm not too sure what does this mean. But, it is a requirement from a
server software that only allow single byte hex to be transfered to it.

Hope can get some help here.

Thanks first.

Seion



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: mailar | last post by:
HI, Can anyone tell me how is a multi_byte to single byte and vice versa conversion done in DB2. It would be great even if someone can tell me how Oracle does it? Oracle already has functions...
4
by: Yama | last post by:
Hi, I have the following binary data: 0x800006000000 which is equivalent to the followin byte bytes = new byte; bytes = 0x80;
32
by: Guoqi Zheng | last post by:
I am really do not know so much about byte/bit, etc. Question, if I defined a byte(), how can I add a single byte to it? what I want is that I have an array of bytes, I loop that array, look at...
2
by: Sisnaz | last post by:
I'm reading byte information from a C++ program via TCP sockets. At one time I thought I came across away to convert C Float data type into a VB single data type. I'm reading the C data type in...
5
by: Trapulo | last post by:
Hello, I need to send to a webservice a parameter that is a string containing an XML doc. In this xml, a node value came from a byte array (it's an RSA signature). What is the best way to convert...
5
by: BenG | last post by:
Hi. I have a gridview control on a web form (asp.net 2.0) that's bound to a objectDataSource. The objectdatasource which is bound to a class I've written in the DAL to read and update the database....
6
by: Bob Altman | last post by:
Hi all, I'm looking for the fastest way to convert an array of bytes to String. I also need to convert a String back to its original Byte() representation. Convert.ToBase64String and...
3
by: =?Utf-8?B?SXpvcmljaA==?= | last post by:
I observed that WCF client running inside Full Trust mode XBAP application can't read byte array over 16384. If return result is bigger than that size, then client simply get null or Nothing in VB...
12
by: Peter | last post by:
Trying to convert string to byte array. the following code returns byte array of {107, 62, 194, 139, 64} how can I convert this string to a byte array of {107, 62, 139, 65} ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.