473,657 Members | 2,401 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Max Parameter Length

Hi all,

I am trying to upload roughly 20-30k of binary data up to my webservice. At
first, I just took my byte array and encoded it as a base64 string and
passed it into my webservice. However, sometimes the data gets truncated
(I'm not sure what the exact length where truncation occurs is, but from the
looks of it, it happens at about the same length). I then tried just using
byte[] to pass the data (I didn't realize you could do this at first). But,
since this just encodes the data as base64 for you, I have the same problem.
Is there a max length on web service parameters?? I know I have passed
DataSets that were roughly half a meg with no problem (on a different
server). Is there a setting somewhere that dictates the total length of the
parameter?

Also, I tried encoding the data as a BinHex string to make sure the encoding
wasn't screwing it up (found that on another post). However, the data was
still truncated.

TIA,
Cole
Nov 21 '05 #1
2 3893
Stu
Hi,

You could try setting
<httpRuntime maxRequestLengt h="102400"/>
or to your requested value ine the web.config and see if that makes a
difference
Stu
"Cole Shelton" wrote:
Hi all,

I am trying to upload roughly 20-30k of binary data up to my webservice. At
first, I just took my byte array and encoded it as a base64 string and
passed it into my webservice. However, sometimes the data gets truncated
(I'm not sure what the exact length where truncation occurs is, but from the
looks of it, it happens at about the same length). I then tried just using
byte[] to pass the data (I didn't realize you could do this at first). But,
since this just encodes the data as base64 for you, I have the same problem.
Is there a max length on web service parameters?? I know I have passed
DataSets that were roughly half a meg with no problem (on a different
server). Is there a setting somewhere that dictates the total length of the
parameter?

Also, I tried encoding the data as a BinHex string to make sure the encoding
wasn't screwing it up (found that on another post). However, the data was
still truncated.

TIA,
Cole

Nov 21 '05 #2
Stu,

I had thought about changing this value but decided not to because the
default value is 1024Kb. If my only parameter is 30Kb, so I didn't think
this would be an issue. I'll go ahead and try it though, just to make sure
it is not the problem.

Thx,
Cole
"Stu" <St*@discussion s.microsoft.com > wrote in message
news:B6******** *************** ***********@mic rosoft.com...
Hi,

You could try setting
<httpRuntime maxRequestLengt h="102400"/>
or to your requested value ine the web.config and see if that makes a
difference
Stu
"Cole Shelton" wrote:
Hi all,

I am trying to upload roughly 20-30k of binary data up to my webservice. At first, I just took my byte array and encoded it as a base64 string and
passed it into my webservice. However, sometimes the data gets truncated (I'm not sure what the exact length where truncation occurs is, but from the looks of it, it happens at about the same length). I then tried just using byte[] to pass the data (I didn't realize you could do this at first). But, since this just encodes the data as base64 for you, I have the same problem. Is there a max length on web service parameters?? I know I have passed
DataSets that were roughly half a meg with no problem (on a different
server). Is there a setting somewhere that dictates the total length of the parameter?

Also, I tried encoding the data as a BinHex string to make sure the encoding wasn't screwing it up (found that on another post). However, the data was still truncated.

TIA,
Cole

Nov 21 '05 #3

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

Similar topics

4
3826
by: Dan | last post by:
I've run into an interesting problem, and seemed to have stumped 3 newsgroups and 2 other forums. For some reason when I try to insert a record into a SQL table that has a Text column, the returned autogenerated Identity is wrong (on the VB side). This only occurs if the length of the value inserted for the text column is >= 8002. I've included a simple example below.
1
9961
by: Hozi | last post by:
I am getting the below error when asp.net tries to parse the .aspx file. The funny part is that the error only seems to be happening when viewing the page throuh IE 6 and not Netscape browsers. I am not sure exactly what is throwing it off, especially in the form tag Has anybody seen this happening to them? It worked on IE briefly and then it started happening again. Any help would be greatly appreciated Here is the full source of the...
9
8771
by: Tom John | last post by:
Hi I am storing images in an access database, based on an MSDN article. The code i use to store is as follows: <code> 'Create the command object Dim command As New OleDbCommand("ImageBlobUpdate", dataConnection) Command.CommandType = CommandType.StoredProcedure)
0
3452
by: Burton Wilkins | last post by:
Dear Authorities: I realize that in communicating with a Web Service, one is essentially passing a string as a parameter. Is there a limit over the Internet how long a parameter string can be? Or can the string be of an unlimited length, and is then simply divided up into packets? Is there a danger of loosing data if the string being passed in a parameter
2
6481
by: news.microsoft.com | last post by:
Hi all. If I wanted to write something so that, when an exception was thrown, and the stack unwound, the stack trace was captured with the values of the parameters (instead of just the parameter signature for method), is this possible without exception-wrapping the guts of each method? I can see how to get parameter values out of MethodInfo, but can't see how to do it without doing something like adding 7 lines to each method, taking...
0
939
by: jaffar | last post by:
Hi I am storing images in an access database, based on an MSDN article. The code i use to store is as follows: <code> 'Create the command object Dim command As New OleDbCommand("ImageBlobUpdate", dataConnection) Command.CommandType = CommandType.StoredProcedure)
7
10022
by: mng2nf | last post by:
i'm having problems with this portion of code... the entire program is an invoice for a carpet installation asking for the room dimensions and various rates and amounts to calculate how much to charge someone for service. the assignment requires you to pass at least one parameter by reference, which would be in this function. i've tried a ton of different ways to do it but clearly i don't understand the whole function scene because i just...
2
2903
by: =?Utf-8?B?Z3Jva25yb2xs?= | last post by:
Is there a way that I can define a WebMethod with a parameter that is a fixed length string? I'm using VB.Net 2005 and would like to define a webmethod that will prevent the caller from passing a string that exceeds a certain fixed length. For this application if the string parameter exceeds the specified length it will always be an error, so I would like to put that rule explicitly in the contract rather than raise the error once I get...
7
7200
by: =?ISO-8859-2?Q?Gregor_Kova=E8?= | last post by:
Hi! Is it possible to use parameter markers like this: 1.) SELECT * FROM TABLE1 WHERE FIELD1 LIKE '%?%' If I now set parameter 1 to '' (empty string) I don't get any rows back, but if I run: 2.) SELECT * FROM TABLE1 WHERE FIELD1 LIKE '%%' I get back data I expect.
1
2799
by: eBob.com | last post by:
I have some code which is trying to determine where text will wrap in a custom text box (which Inherits from Control). It determines the number of characters which will fit in the first line, but then encounters an exception when it calls MeasureCharacterRanges to see if the next character, i.e. the one destined to become the first character of the second line, will fit. The message says only "Invalid parameter" - it does not say which...
0
8402
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8829
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
8734
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...
0
8608
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6172
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5633
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
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
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.