title: Get URL of image from Picture Library using CAML
body: <p>How is it possible to get the URL of an image that is stored in a Picture Library using CAML?</p>
  
  <p>Currently, I've made a CAML Query and run it in the <a href="http://www.u2u.be/res/tools/camlquerybuilder.aspx" rel="nofollow">U2U CAML Query Builder</a>, and am seeing values like <code>ows_LinkFilename</code>, <code>ows_LinkFilenameNoMenu</code>, and <code>ows_LinkFilename2</code> -- fields that store the URL of the image. (They contain what I need - image.jpg or image2.gif, etc.) When I implement it and output the value in that field, I get an "Undefined."</p>
  
  <p>Is it even possible to access the URL from just the file itself? Do I need to make one of the required fields in the Picture Library the name of the image? (image.jpg)</p>
  
  <p>Below is a snippet of the jQuery.</p>
  
  <pre><code>var fieldsToRead =     "&lt;ViewFields&gt;" +
                                  "&lt;FieldRef Name='ows_LinkFilename' /&gt;" +
                                  "&lt;FieldRef Name='ID' /&gt;" +
                              "&lt;/ViewFields&gt;";
  
          var query = "&lt;Query&gt;" +
                          "&lt;Where&gt;" +
                              "&lt;IsNotNull&gt;" +
                                  "&lt;FieldRef Name='ID' /&gt;" +
                              "&lt;/IsNotNull&gt;" +
                          "&lt;/Where&gt;" +
                          "&lt;OrderBy&gt;" +
                          "&lt;FieldRef Name='Display_x0020_Order' Ascending='True' /&gt;" +
                          "&lt;/OrderBy&gt;" +
                      "&lt;/Query&gt;";
  
           $().SPServices({
                  operation: method,
                  async: false,
                  webURL: rootURL,
                  listName: list,
                  CAMLViewFields: fieldsToRead,
                    CAMLQuery: query,
                      completefunc: function (xData, Status) {
                          $(xData.responseXML).SPFilterNode("z:row").each(function() {
                              var name = ($(this).attr("ows_LinkFilename"));
  
                  console.log(name);
  </code></pre>
  
  <p>Thank you so much for your help.</p>
  
  <p>AA</p>