473,387 Members | 1,486 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,387 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 1382
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.