Adding Attachments

If you are having a problem using Dragnet, post a message here.

Moderator: SourceGear

Posts: 9
Joined: Thu Mar 29, 2007 10:31 am
Location: Kent,WA
PostPosted: Wed Apr 11, 2007 11:24 am
Hi I am trying to add attachments via API.

I am a liitle confused on how to do it if I am reading a blob directly from the database.

I am not sure what these two values should be set to.
What are valid values for these two properties?

mifd.AttStream = fileUpload.PostedFile.InputStream; //required System.IO.InputStream
mifd.ContentType = fileUpload.PostedFile.ContentType; //required string

Posts: 3509
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
PostPosted: Wed Apr 11, 2007 2:19 pm
There is a mistake in the documentation. Attachments cannot be added through the web service due to the fact that the FileStream does not transport over HTTP.
Jeff Clausius

Return to Support (Dragnet)

Who is online

Users browsing this forum: No registered users and 1 guest