I have a Document Library with column type Hyperlink or Picture (Signature).
How to insert (Signature) into your Word document?
I find this link for insert Picture into word.
I problem is : How do insert the internet picture(url) in word ?
I use this code
ImagePart imagePart = mainPart.AddImagePart(ImagePartType.Jpeg);
//Send an HTTP request and get the image at the URL as an HTTP response
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(fileName);
WebResponse myResp = myReq.GetResponse();
//Get a stream from the webresponse
Stream stream = myResp.GetResponseStream();
imagePart.FeedData(stream);
but i get error
The remote server returned an error: (401) Unauthorized