How to display the Attachment(picture) on the list item page?

I have attached a picture to the list item and then when I click the item, there is a link of the attachment but not the picture graphics! I want to display the picture on the list item page and how to do it?
I am a beginner of SharePoint 2010 and my English is not very good! Thanks!

Hi,
Using few easy steps you can set image in your out of the box List View, Edit and View Item Page.
1. Create one Picture type Column in your list.
2. Just create one Event Handler with Item
/// <summary>
/// An attachment was added to the item.
/// </summary>
public override void ItemAttachmentAdded(SPItemEventProperties properties)
base.ItemAttachmentAdded(properties);
SPListItem item = properties.ListItem;
//SPAttachmentCollection attach = item.Attachments;
string attachmentUrl = item.Attachments.UrlPrefix + item.Attachments[0];
item["PictureColumnName"] = attachmentUrl;
item.Update();
Now, just add item with attachment and you will see attached image in Picture Column field.
Manoj | SharePoint

Similar Messages

  • SharePoint 2010 : How to display ALL Version History of a list item's multiline text box in a same list as a list view column?

    In SharePoint 2010 , I have version history enabled multiple text box 'issue details'.  Users mainly uses Data Sheet view and it does not show all version history of that multiple line text box, is there anyway we can display list view column in
    data sheet view to display all version history?
    2) If we can not display in datasheet view, in standard view, it should display all version history instead of just a link  to -view all entries'
    I have found one article here and it posts to use below line of code in sharepoint desinger
    <SharePoint:AppendOnlyHistory runat="server" ItemId="{$thisNode/@ID}" FieldName="Issue_x0020_Details" ControlMode="Display"></SharePoint:AppendOnlyHistory>
    WHen I use this line of code , it displays multiple line of same version history instead of each, please help.

    Hi
    Greetings. Hope it helps 
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/d1be5434-7dc9-4941-bf1d-8c12d7e6a155/display-version-history-in-list-view-column?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • My iphoto display the same picture throughout the whole album.  How do I undo that.  The last thing I did was clicking on something with sharing/privacy. thank you.

    My iphoto display the same picture throughout the whole album.  How do I undo that.  The last thing I did was clicking on something that has to do with sharing/privacy.  All my pictures are still there.  Thank you

    My iphoto display the same picture throughout the whole album.  How do I undo that.  The last thing I did was clicking on something that has to do with sharing/privacy.  All my pictures are still there.  Thank you

  • Drawing/Learning to do something in the attached picture

    Hi,
    Hope you're doing well.
    In the attached picture of an ad, you can see there are three "waves" of blue at the bottom.
    Can anyone tell how they were done?
    Was it drawing 3 shape layers using the pen tool with the three different shades of blue and putting it each on it's own layer?
    Do you think this was done in Photoshop or another program?
    Thanks!

    c.pfaffenbichler wrote:
    2) Use the "Convert Point Tool" to make the curves.
    Why not create Curve Points initially by click-dragging?
    Cause then all that will show in the picture is the curve. When you try to take a snapshot while click-dragging the points go away and all you see is the curve.
    c.pfaffenbichler wrote:
    2) Use the "Convert Point Tool" to make the curves.
    Why not temporarily change the Path Tool to the Convert Point Tool by pressing the alt-key?
    You can but if you are holding the alt-key and press apple+shift+4 it won't take a picture.
    I did it this way because it displays better in the pictures, but for work-flow you are right your way saves a lot of time.

  • How can I get the edited pictures from the thumbnails to full size?

    I upgraded to iPhoto 11, the thumbnail photos show my previous edits, but when I click on the photo to make it bigger, it reverts back to the unedited, original picture.  How can I get the edited pictures from the thumbnails to full size?

    Verify you are using iPhoto11 ver 9.5
    if not run the >Software update or check your apps folder and make sure the correct iPhoto is launched,  not an older ver.

  • How to display properties of dimension on the input form and report in bpc

    Dear Expert,
    Please tell me how to display properties of dimension on the input form and report in bpc. I can only display dimension number.
    thanks so much
    hungth

    Hi Hungh,
    If your are using BPC 10 with EPM add in client, you can use the function:
    EPMDimensionProperty ()
    This function retrieves the properties of a specified dimension in a specified cell range.
    Thanks, Safa

  • How can I send multiple pictures to the Kodak link (under file & then order prints)? if the photos are not sequential can it be done?

    how can I send multiple pictures to the Kodak link (under file & then order prints)?  if the photos are not sequential can it be done?

    Does the order matter here?Because the photos will be sent for printing. If there is any other reason, can you please cite example.

  • HT1414 How do I get recent pictures back if I restored my old iPhone and it brought back the old pictures but the new ones are gone

    How do I get recent pictures back if I restored my old iPhone and it brought back the old pictures but the new ones are gone?!?

    Sorry your pictures are gone. 
    you should be doing this for all your pictures/videos http://support.apple.com/kb/HT4083  that way you can sync it back via itunes.

  • How do you enlarge a picture in the edit workspace?

    how do you enlarge a picture in the edit workspace?

    ok I figured that out by incre
    asing the % on the lower left
    of picture

  • How to display multi-channel image in the 'proxy'?

    There're many examples to show how to display composite channels in the 'proxy'. But I don't find any example to show how to display multi-channel image in the 'proxy'. I found that I can use PSPixelOverlay to display alpha channel data like this:
    int nSpotChannel = gChannelCount - 4;
    PSPixelOverlay* overlay = new PSPixelOverlay[nSpotChannel];
    for(int i = 0; i < nSpotChannel; i++){
           if( i != (nSpotChannel - 1) )
                 overlay[i].next = overlay + i + 1;
           else
           overlay[i].next = NULL;
           overlay[i].data = gChannelData + (4 + i) * nPlaneBytes;
           overlay[i].rowBytes = gProxyRect.Width() * gDocDesc->depth / 8;
           overlay[i].colBytes = 1;
           overlay[i].r  = 230;
           overlay[i].g = 161;
           overlay[i].b = 174;
           overlay[i].opacity = 255;
           overlay[i].overlayAlgorithm = kStandardAlphaOverlay;
    pixels.pixelOverlays = overlay;
    Then, Seeing red part, it will trigger a new problem, that is how to get the color value of the alpha channel by plung-in itself? It seems that no channel color value info is in FilterRecord.
    If you have other solution, please tell me. Many thanks!

    This is what I've been doing - was just curious if there was a way to see a more cohesive image.
    If the individual EQ plugins are in fact the answer, is there any way to smooth how the Analyzer displays? The image I posted above, all of the tonal curves are very smooth. The analyzer tool shows a lot of peaks and valleys within the overall curve and it's hard to pinpoint each instrument's "sweet spot." Vocals for example are very hard to spot.
    - Morgan

  • How can i find the original picture in the correct event folder from an album folder picture?

    how can i find the original picture in the correct event folder from an album folder picture? I can find the link to the original event folder, but is there a way to get right to the picture without having to search visually the event folder?

    Depends on whatr you mean
    Deleting from your phone does not delete from anywhere else
    HOWEVER deleting from your Photo stream does delete from the Photostream so anyone looking at the PS from any device will no longer see the photo
    But if your Mac iPhoto is set to automatically impor tphotos form PS or is you have manually imported photos from PS then onc ethey are imported they are on your Mac and change to PS will not affect them
    for more on PS see http://support.apple.com/kb/HT4486?viewlocale=en_US&locale=en_US
    LN

  • How can i get my pictures from the cloud if deleted from my Iphone

    how can i get my pictures from the cloud if deleted from my Iphone?

    Restore a backup of your phone that was made while the photos were still on it.  It should include your camera roll photos.  This explains how to restore an iCloud backup: iCloud: Restore your iOS device from iCloud.

  • How do I get my pictures off my girlfriends IMAC page. I'm the admin.

    How do I get my pictures off my girlfriends IMAC page. I'm the admin.

    Hi, where exactly are your pics showing on her iMac??? What page?

  • How to print the same picture multible times on one page

    how can i print the same picture multible times on one page
    Message title was edited by: Brett N

    Select all of the images you would like to print in the Elements Organizer, then go to File > Print. In Step 4, choose Picture Package from the drop-down menu. In Step 5, click the option to Fill Page with First Photo.

  • How to display language key (0LANGU) in the query for BW report

    Hi,
    Can someone tell me how to display language key (0LANGU) in the query? I want to display which language (English or French) is used for material description in BW report. Thx.

    hi,
    check if the infoobject is kept as lang dependent or not  for material text, else you need to create a masterdata attribute with text and lang keys and do corresponding mapping, so then it can be displayed in your report
    regards
    laksh

Maybe you are looking for

  • How to install Archlinux use wingrub??

    I once installed some linux distributions using wingrub. These just only need *.iso, initrd and vmlinuz 3 files. When reboot system use wingrub, use these commands to boot the installation: grub>kernel (hd0,0)/vmlinuz root=/dev/ram ramdisk_size=20000

  • Using AIA for Error Handling. Logging and Notification Services

    hi, In our project we usie OSB and BPEL for integrating different applications. There is a suggestion that we should use AIA to just use the Error Handling, Logging and Notification services from AIA. I am not sure about this use case, as most of the

  • Volume button not working with music

    I have tried restartingy phone, I have done rewet as well. even after all this, the problem still exist. restarting the phone does solve the problem, but thats temporarily only. On an average, I have to restart my phone 2-3 times a day. also many a t

  • Re-order curves programmatically in REPORT or VIEW

    Is is possible to programatically re-order curves in REPORT or VIEW?  Thanks! Julia

  • Premiere Pro CC2014 電源が落ちる

    Premiere Pro CC2014をiMac (27, Late 2012) 3.4 GHz Intel Core i7 メモリ32GBで作業中に前触れもなく突然に電源が落ちる事態が頻繁に発生してしまっています. 対策などあればお知らせください 追記(2015/1/20 18:00) 主にPhotoshop系のソフトを使っていますがPhotoshop系ソフトでは落ちず.premiereでは決まった動かし方ではなく.編集画面をブラウズしているだけでも落ちてしまいま す. メッセージ編集者: 邦