473,320 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

A very simple question about binary/text format difference

Hi folks,

what makes that the SOAP/Xml binary encoding is smaller than the "text" one
? Is is only because the XML tags are more or less suppressed ?

More generally, I don't understand how gzip can reduce text file size since
I can't see how a character can be store in less than 1 byte. Or is that a
text file in an OS has such a big overhead ?
Regards

Jun 8 '07 #1
2 1379
Oriane,

Binary serialization is smaller for two main reasons. One is the lack of
the XML tags. The other is that some data fields will be smaller in their
binary format. It is between 2 and 10 times smaller on average.

For compression, check out this article. Essentially it is just re-encoding
the data in a more efficient format.
http://www.igeek.com/articles/Software/Compression.txt

Hope this helps,
Steve

"Oriane" <or****@guermantes.frwrote in message
news:B4**********************************@microsof t.com...
Hi folks,

what makes that the SOAP/Xml binary encoding is smaller than the "text"
one ? Is is only because the XML tags are more or less suppressed ?

More generally, I don't understand how gzip can reduce text file size
since I can't see how a character can be store in less than 1 byte. Or is
that a text file in an OS has such a big overhead ?
Regards

Jun 9 '07 #2
Hi Steve,

"PlatinumBay" <st*******@community.nospama écrit dans le message de
news:%2****************@TK2MSFTNGP04.phx.gbl...
Oriane,

Binary serialization is smaller for two main reasons. One is the lack of
the XML tags.
Do you mean that the Xml tags are simply suppressed ? Or that theye are
replaced by something less bverbose ?
The other is that some data fields will be smaller in their binary format.
It is between 2 and 10 times smaller on average.
What sort of data field is smaller ? Numeric ones ?
>

Hope this helps,
Yes indeed.

Regards

Jun 11 '07 #3

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

Similar topics

5
by: Rob Somers | last post by:
Hey all I am writing a program to keep track of expenses and so on - it is not a school project, I am learning C as a hobby - At any rate, I am new to structs and reading and writing to files,...
6
by: KevinD | last post by:
assumption: I am new to C and old to COBOL I have been reading a lot (self teaching) but something is not sinking in with respect to reading a simple file - one record at a time. Using C, I am...
68
by: vim | last post by:
hello everybody Plz tell the differance between binary file and ascii file............... Thanks in advance vim
2
by: Oriane | last post by:
Hi folks, what makes that the SOAP/Xml binary encoding is smaller than the "text" one ? Is is only because the XML tags are more or less suppressed ? More generally, I don't understand how...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.