473,791 Members | 2,853 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DIME Attachments and Chunking

Hi,

I have a situation where I need to return bulky PDF files from a web service
method.

The easiest way to do this is return base64 encoded strings. But as the PDF
files are bulky this would mean that for each web method call the file would
have to be loaded into memory for encoding and returning. This will easily
turn out to be a performance bottleneck if multiple calls are being made to
the web method.

A more desirable solution would be to stream the PDF file in chunks of
acceptable sizes. For this I plan to use the WSE support for DIME
Attachements in .Net. Though all documentation on DIME theoritically say
that DIME Attachements can be streamed as chunks, the .Net implementation of
this in the form of DimeAttachment class in the namespace
Microsoft.Web.S ervices2 doesn't support streaming. This is clearly
documented in the supporting document where it is said that due to the
limitation of http all DIME data is buffered in memory before returning as a
single response to the caller. Though there is a 'ChunkSize' property in
this class it is documented that this propert only affects the DIME record
size and is not used for streaming.

My questions are:

1. Is there a way to stream DIME attachements using WSE in .Net?
2. What are the other mechanisms that can be used to stream data to the
caller?

Thanks in advance.
LG
Nov 21 '05 #1
0 1658

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

Similar topics

1
1988
by: Levi Wilson | last post by:
I have a web service that adds a DIME attachment: public void GetFile(string filename) { SoapContext sc = HttpSoapContext.ResponseContext; DimeAttachment dimeFile = new DimeAttachment("application/DIME", TypeFormatEnum.MediaType, @"c:\temp\" + filename); sc.Attachments.Add(dimeFile);
3
3608
by: Vai2000 | last post by:
Thanks for all responses Please advice! Hi All, Clients are uploading large files to my Web Portal. I need to validate these files using a WS. Problem is file sizes are in the range of 5-20MB!!!! Q1. How do I send DIME attachments to the WebSvc from my Portal?
2
2155
by: Bernard D | last post by:
Someone here wrote that MS has dropped its commitment to DIME (see link below). I could not find any other info on this from googling around. Has MS made this public anywhere? Links would be appreaciated. And, if DIME is to be dropped, what will be used instead for file attachments with SOAP? I know about encoding everything in base64 but this is a very inneficient method for large attachments. ...
3
5108
by: Ipsita | last post by:
Hi! I am trying SOAP with DIME attachments in web services. For example say, I have a file resume.pdf stored somewhere on my server. How does the web service send the file to the client, so that the client can store it and also read from it. I am trying out with C# and ASP.NET. Server Side Web Method: -----------------------
2
1652
by: Abhay | last post by:
Hi All, I want to create a webservice which will be used for uploading the file to the server hosting the Web service. I want to use WSE DIME Attachments.. I have seen some sample on that , but Note : 1. I want to upload file upto 50 MB ? This is possible with DIME/WSE. but this will be achieved using Chunking ? how can I achieve Chunking in my application is it inbuilt feature or I have to write the complete code for this ?
0
1155
by: Stu | last post by:
Hi, I have a 3 tier system using web services I want to attach on the 3rd tier - data access to the middle tier - business rules and call the business rule tier from the front end to get the attachment So the first problem is getting it from the back end tier to the middle tier The middle tier calls the back end tier to get the attachment whci it then streams and reattaches for the front end
2
1119
by: Nikolay Petrov | last post by:
I have in web service which receives WSE DIME attachments as byte arrays, and stores them in files From an asp .net page i add an dime attchment to the RequestSoapContext, i check the count of attachments and it says "1" on the web service size, when I check the count of the attachments it says "0" what may be the reason?
5
4878
by: Joseph Geretz | last post by:
Here's my first attempt at DIME (code below signature). I'ts basically straight out of Microsoft's online sample: For some reason, the statement respContext.Attachments.Add(dimeAttach); trips the following error: Object reference not set to an instance of an object.
1
2195
by: Matt B | last post by:
Hi all, This problem is close to driving me insane. Basically, I'm trying to use DIME to add an attachment to a SOAP message and send it to the web server. The WSE 2.0 toolkit is installed, which allows for DIME to be used and everything is set up correctly as far as I know. My code is:
0
9669
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
10426
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
10207
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
10154
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
9029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
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();...
1
4109
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
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
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.