473,472 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Web Service Guidlines for uploading data?

I'm writing a web service in VB.Net 2005. It uploads some data from the
client to the server. One such function uploads image data as a byte array
parammetter. It works ok for small images. And fails instantly in the IDE
(with both server and client projects local in the same solution) for a 3MB
image in that byte array. The underlynning error message is: "The underlying
connection was closed: An unexpected error occurred on a receive. "

Now obviously there is some kind of limitation and I should stream it in
chunks. However before I do this I want to know exactly what kind of
limitations there are?
What are the optimal chunks sizes for Web Service?

So far I haven't found anything useful on MSDN for this. Anyone have any
suggestions?

Feb 9 '06 #1
1 1277

I found about the <httpRuntime maxRequestLength="4096" /> property for the
web.config. Steping into the web service hides the real error and that was
where I was going wrong. (And in this case I reprocess the image to a jpeg
and limit it to 2MB.)

"AaronL" wrote:
I'm writing a web service in VB.Net 2005. It uploads some data from the
client to the server. One such function uploads image data as a byte array
parammetter. It works ok for small images. And fails instantly in the IDE
(with both server and client projects local in the same solution) for a 3MB
image in that byte array. The underlynning error message is: "The underlying
connection was closed: An unexpected error occurred on a receive. "

Now obviously there is some kind of limitation and I should stream it in
chunks. However before I do this I want to know exactly what kind of
limitations there are?
What are the optimal chunks sizes for Web Service?

So far I haven't found anything useful on MSDN for this. Anyone have any
suggestions?

Feb 10 '06 #2

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

Similar topics

3
by: Carlos | last post by:
Hello Forum, I would appreciate it if you could recommend settings to use auto-vacuum in my version 7.4 database. I am uploading several thousands records in the database at a rate of ~1 second...
2
by: archana | last post by:
Hi all, I am facing some wierd problem in web service. I have on web service with is accepting 3 dataset. One dataset content of csv file. Size of csv file is 86MB. But when i am...
4
by: TampaWebDevelopment | last post by:
I have just finished a Windows Service that I have been working on for quite some time that works pretty well and is fairly useful. To this point, editing configuration items of the service...
1
by: Faisal Shafiq | last post by:
I want to upload a file direct to the Silverlight Streaming Service from a Web Client such as silverlight application. As per our product requirement we want to upload a .WMV file directly from...
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
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,...
1
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.