Display image in custom web part from image library

I have a custom website that displays dynamic list data, it should display an image from an image library (or at least provide me with a URL so that I can encapsulate it using a tag), however, none of the fields in Does the image library seem to contain the image url? Is there an "image utility" (SPImageUtility) or something that I can use to pull this out? Or am I just missing something?

+3
source share
2 answers

Assuming you are using an object model, you should use this (C #)

SPListItem["EncodedAbsUrl"]

URL- , HTML ( " EncodedAbsUrl" - /).

URL- , ServerUrl FileRef (, , )

EncodedAbsThumbnailUrl, .

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx

+2

CAML? , .

spListItem spList URL- , URL- .

0

Source: https://habr.com/ru/post/1698832/


All Articles