473,811 Members | 3,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1768

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.Compr ession.GZipStre am 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.Compr ession.GZipStre am 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.Compr ession.GZipStre am 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
2323
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 = pack('N8A*', $this->value1, $this->value2, $this->value3, $this->value4, $this->value5, $this->value6, $this->value7, $this->value8, $this->stringvalue);
3
523
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 Win32API GetVersionEx!
5
14402
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 table, I would get sql command time out. Hence, I did more testing with Query Analyser and to find out that the same queries would not always take about the same time to be executed. Could anyone please tell me what would affect the speed of the...
1
1626
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 the same. Thanks & Regards,
18
2017
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 XP? we have our software on thousands of XP boxes and have not had a problem up to this point. Any Clues/suggestions on what it could be? Regards, Jay
6
3812
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 one day): \\FFDS24\ASP.NET Applications(_LM_W3SVC_1_Root_ATV2004)\Errors During Execution: 7 \\FFDS24\ASP.NET Apps v1.1.4322(_LM_W3SVC_1_Root_ATV2004)\Compilations
5
3544
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: Current entry Company : entered co. name First entry : entered stuff The second entry: more entered stuff
10
11359
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 structure in memory. This field indicates the packing size that should be used when the LayoutKind.Sequential value is specified. The value of Pack must be 0,
13
6663
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 Framework Service Pack 1 in order to use ASP.net 1.1 and the net Framework 1.1 ------------------------------------------------------------------------------------------------ I found the following file, "svcpack.log" at C:\WINNT. It contains many...
0
9734
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9607
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10652
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10395
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10408
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6895
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5561
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3026
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.