SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose that a user have attached a Jack.jpg file as a attachment to a online InfoPath 2007 form, is there a way to retrieve or extract the full URL of this attachment file Jack.jpg?

share|improve this question

If I haven't misunderstood your situation, the attachment files are stored as blob data inside the xml of the form, so there's no permanent URL for the image.

share|improve this answer

I think it will be stored as a Base64 encoded string inside the XML file. I would suggest writing a custom .aspx page which takes a querystring parameter to identify the document that can retrieve the raw XML and convert the Base64 encoded attachment into binary and send it back to the browser.

share|improve this answer
Yip, correct answer. All Sharepoint content is stored within Content DBs. You have to do a response.write of the byte[] which represents the image/file – Fox Mar 9 '12 at 12:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.