Adding Attachments

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

Moderator: SourceGear

Locked
birdbuster
Posts: 9
Joined: Thu Mar 29, 2007 10:31 am
Location: Kent,WA

Adding Attachments

Post by birdbuster » 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

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » 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
SourceGear

Locked