473,405 Members | 2,334 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,405 software developers and data experts.

How to pack a big amount of information on the query string?

I need to send a big amount of data to one server in the query string.
It is like 3kb of text information, in ascii code with linefeeds and
carriage returns.
I noticed that using winzip I can get the file 1kb long. I'm not sure
if there are zip utilities for C#/Asp.Net, but I guess there are and
I'm counting on this.
Now, which methods do I have available to send the zipped file on the
query string ? I was thinking of converting the binary file to
hexadecimals, I've done this truck in the past for storing binary data
in string fields in database and seems to work. But for this
application, it might be not the best since it will double the size of
the data again.
May be there's a method to directly pack this text data without
"zipping" it.
What else can I do ?

Sep 29 '06 #1
3 1736

Can you "post" the data in the body of the HTTP request rather than put
it on the querystring?

If you really need to compress the data then take a look at the
System.IO.Compression.GZipStream class

cr************@hotmail.com wrote:
I need to send a big amount of data to one server in the query string.
It is like 3kb of text information, in ascii code with linefeeds and
carriage returns.
I noticed that using winzip I can get the file 1kb long. I'm not sure
if there are zip utilities for C#/Asp.Net, but I guess there are and
I'm counting on this.
Now, which methods do I have available to send the zipped file on the
query string ? I was thinking of converting the binary file to
hexadecimals, I've done this truck in the past for storing binary data
in string fields in database and seems to work. But for this
application, it might be not the best since it will double the size of
the data again.
May be there's a method to directly pack this text data without
"zipping" it.
What else can I do ?
Sep 29 '06 #2

Chris, thanks for your comments.

But how do I do that programatically ? I was thinking of creating a
simple HttpRequest and send it. But "posting", have no idea with using
this class.
Regards,

Chris Fulstow wrote:
Can you "post" the data in the body of the HTTP request rather than put
it on the querystring?

If you really need to compress the data then take a look at the
System.IO.Compression.GZipStream class

cr************@hotmail.com wrote:
I need to send a big amount of data to one server in the query string.
It is like 3kb of text information, in ascii code with linefeeds and
carriage returns.
I noticed that using winzip I can get the file 1kb long. I'm not sure
if there are zip utilities for C#/Asp.Net, but I guess there are and
I'm counting on this.
Now, which methods do I have available to send the zipped file on the
query string ? I was thinking of converting the binary file to
hexadecimals, I've done this truck in the past for storing binary data
in string fields in database and seems to work. But for this
application, it might be not the best since it will double the size of
the data again.
May be there's a method to directly pack this text data without
"zipping" it.
What else can I do ?
Sep 30 '06 #3
You're definitely on the right lines. The HttpWebRequest class has a
Method property that can be set to "POST", see here for an example:
http://msdn2.microsoft.com/en-us/lib...st.method.aspx

cr************@hotmail.com wrote:
Chris, thanks for your comments.

But how do I do that programatically ? I was thinking of creating a
simple HttpRequest and send it. But "posting", have no idea with using
this class.
Regards,

Chris Fulstow wrote:
Can you "post" the data in the body of the HTTP request rather than put
it on the querystring?

If you really need to compress the data then take a look at the
System.IO.Compression.GZipStream class

cr************@hotmail.com wrote:
I need to send a big amount of data to one server in the query string.
It is like 3kb of text information, in ascii code with linefeeds and
carriage returns.
I noticed that using winzip I can get the file 1kb long. I'm not sure
if there are zip utilities for C#/Asp.Net, but I guess there are and
I'm counting on this.
Now, which methods do I have available to send the zipped file on the
query string ? I was thinking of converting the binary file to
hexadecimals, I've done this truck in the past for storing binary data
in string fields in database and seems to work. But for this
application, it might be not the best since it will double the size of
the data again.
May be there's a method to directly pack this text data without
"zipping" it.
What else can I do ?
Sep 30 '06 #4

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

Similar topics

1
by: Johannes | last post by:
Hi, I tried to pack eight integer values and one string into one binary string, which I would like to store in a mysql db. I encountered two problems doing this: 1) $this->packed =...
3
by: Ian Rowland | last post by:
Is there a way, using managed code, to determine the Service Pack of the OS without resorting to registry calls? OSVersion doesn't give this information. It seems the only way is to use the...
5
by: charlies224 | last post by:
Hi, I am using SQL 2000 and has a table that contains more than 2 million rows of data (and growing). Right now, I have encountered 2 problems: 1) Sometimes, when I try to query against this...
1
by: tilak.negi | last post by:
Hello!!! I want to switch to SQL SERVER 2000, Service Pack 4 from Service Pack 3. So please advice, what all points need to consider. Also please share the experience, if someone have done...
18
by: jayderk | last post by:
a customer was trying to install some of our software after they installed the windows XP service pack 2 and he is getting a message that says something about it not being compatable with windows...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
5
by: H J van Rooyen | last post by:
Hi, I am struggling to get the pack method to do what I intend. I am trying to display user input in a seperate window, along with a little description of the field, something like this: ...
10
by: giddy | last post by:
hi , I' know what the StructLayoutAttribute does. I've seen it being used. But what does the Pack field do!? This is what MSDN says: Controls the alignment of data fields of a class or...
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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
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...

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.