[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Daniel Johansson

8/25/2003 9:03:00 PM

Hello everyone

Im am trying to pass a binary file from a web service to a
client.(managed c++)
I wan?t to use dataset.
If I put down the files in a dataset I loose information
I got the tip the use DIME
It doesn?t work.
Not with WSE 1.0 SP1 or WSE 2.0
If I choose to enable the WSE on "WSE Settings" under the "Project"
I get the errormessage
"The WSE must be installed to enable this feature"
can this be of importance? Do I need a service pack 2 to .NET?
Have I missed anything during the installation process?
Are there any other possibility to:

"pass a binary file in a dataset from a web service to a client"

This is my problem, and it must have been solved before, again, the
problem
must have been solved before. I can?t be the first person with this
problem.

Hence my question is? Is this even possible? I?m pretty sure that I use
a correct
syntax, I have been in contact with Christian Meyer, MVP and he is also
pretty sure
that my code is accurate.

With the upmost highest regards

// Daniel



*** Sent via Developersdex http://www.develop... ***
Don't just participate in USENET...get rewarded for it!
1 Answer

hs

8/26/2003 11:47:00 AM

0

Hi Daniel
Not sure if this helps. Is your objective to pass a binary file as a Dime
attachment?
If yes. Then just attach this bin file directly to dime. e.g.

C#
string filePath = "C:/myBinaryFile.bin";

DimeAttachment attchment = new DimeAttachment("application/octet-stream",
TypeFormatEnum.MediaType, filePath);
HttpSoapContext.ResponseContext.Attachments.Clear();
HttpSoapContext.ResponseContext.Attachments.Add(attachment);