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

Home Posts Topics Members FAQ

Pass on a Dime Attachment ??

Hi, i work with Visual Studio 2003 und i have a C# - WebApplication in
which i make a stream from a *.doc file!
Code WebForm1:
...
DimeAttachment attachment = new DimeAttachment("application/msword",
TypeFormat.MediaType, this.filUpload.PostedFile.InputStream);
w.RequestSoapContext.Attachments.Add(attachment);
w.Upld();
...

A WebMethod "Upld" takes then the stream and makes a *.doc file from
it...

Code Upld():
...

FileStream fs =
File.Create(HttpContext.Current.Server.MapPath("La testDoc.doc"));
long docLength =
RequestSoapContext.Current.Attachments[0].Stream.Length;
byte[] buffer = new byte[docLength];
RequestSoapContext.Current.Attachments[0].Stream.Read(buffer, 0,
(int)docLength);
fs.Write(buffer, 0, (int)docLength);
fs.Close();

...
But now i want to send the stream to webservice first, which only has a
webreference to another webservice. This last webservice then makes the
*.doc -file and the second webservice shall only forward the stream
without creating a file! Anyone there, who knows how to make this ?

M.

Nov 23 '05 #1
0 1609

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

Similar topics

0
by: Vaylor Trucks | last post by:
I have a web service written in ASP.NET using the .NET frame v1.1.4322 and Web Service Enhancements 1.0 SP1. This web service has 2 nearly identical methods. That is, the SOAP XML is the same...
1
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...
1
by: Drew | last post by:
I am having trouble with receiving an attachment via WSDL/Dime. I have a service that I am connected to on a Single Board Computer running linux. The Single Board contains a text file that is...
4
by: Scott, Killer of all Ninjas | last post by:
It seems incredulous to me that it is so difficult to write the contents of a memory stream to a file. I'm certain that I'm missing something simple. I am retrieving a memory stream from a DIME...
3
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...
0
by: Vaylor Trucks | last post by:
Using the .NET framework and WSE 1.0 SP1, I have built a web service which receives data from a web service client and saves it to disk in a text file, and it works with no problem. However, when...
1
by: Modica82 | last post by:
Hi all, I have been trying to find a way to send a PDF from my web service. I have had the idea of sending back a byte array, but to be honest the efficiency issue is there and i would like to...
1
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,...
1
by: pratishsoma | last post by:
Hi, I'm developing WebServices client in Visual Studio 2005. The Web Service is developed in java, Axis. The Web Service has a function to return Soap Response and an Attachment (DIME or MIME...
5
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I have never sent attachment with webservices. Yesterday I got the challenge to redesign my solution that sends large XML structures to a Java webservice. The reason was that the Java SOAP...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
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...
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: 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 ...

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.