473,320 Members | 1,699 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.

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 3884
Stu
Hi,

You could try setting
<httpRuntime maxRequestLength="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*@discussions.microsoft.com> wrote in message
news:B6**********************************@microsof t.com...
Hi,

You could try setting
<httpRuntime maxRequestLength="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
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...
1
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...
9
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...
0
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?...
2
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...
0
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...
7
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...
2
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...
7
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:...
1
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
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.