I have a SharePoint list, that list contains text attachments and image attachments.

Hi All,
i have a SharePoint list, that list contains text attachments and image attachments.
Now, i want to retrive only image attachments from that list.
here my doubt is, how to check is it image attachment or text attachments
foreach(var attachment in attachments)
//what i have to write here
Thanks in advance!

Hi,
While looping for an attachments . Check for attachment extension with (.jpg,png,etc..,).then you can do whatever you want
SPListItem myListItem = list.GetItemById(1);
foreach (String attachmentname in myListItem.Attachments)
//Check for extension
Please mark as an answer/helpful , if is useful to you.
Mahesh

Similar Messages

  • I have a SharePoint list, that list contains photos(images), now i want display that images in spgridview?

    Hi All,
    i have a SharePoint list, that list contains photos(images).
    now i want display that images in spgridview.
    How can i display?
    Thanks in advance!

    Hi,
    According to your post, my understanding is that you want to display that images in spgridview.
    You can use a hyperlinkfield that is bound to the SPGridView. Please refer to:
    Add a Hyperlink Image in a SPGridView
    You can also use TemplateField or ImageField to render images. Please refer to:
    Image not showing in grid view
    In addition, here are two similar articles for your reference:
    How To: Use SharePoint 2010 WebParts with a GridView Control to get SQL Image Data
    type and other Values
    DotNetSharePoint: How to display images in gridview from database using asp.net
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I have custom sharepoint list and i have displayed this list on sharepoint webpage as a webpart.

    Hi,
    i have custom sharepoint list and i have displayed this list on sharepoint webpage as a webpart.
    now, i want to display limited sharepoint list items in that webpart and remainig items i want to show in read more link in right bottom of the webpart.
    Any one help me how to do this

    Hello,
    As i understand you want to add read more link for rest of items in listview webpart. You can create new view and set item limit in that view then add that list as webpart on webpart-->edit your webpart-->select view from view selection dropdpwn-->
    save it
    Later add one CEWP and use html <a> tag to redirect to your main list when clicks on it. Here is the steps to do this:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/a9d036ff-04a8-4235-84a5-c90164ff5294/read-more-for-sharepoint-list
    You can also use Jquery/Javascript/ECMA script but above one is OOTB and easy solution
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Is there any way to have a COMPLETE list of all samples and loops ( Logic 8

    I'm sure it's been posted previously, but anyway, I'm looking to buy new Apple Loops libraries and I have faced the fact , that many of the sounds and loops produced by third parties manufacturers have been already included in Logic installation discs.
    I have a list of Apple Loops DVD's that have been included with Logic somewhere, the problem is, Apple didn't post ( I believe) the credits of all 3rd party manufacturers that have produced these libraries that are included with Logic or Garage band. Is there any way to have a COMPLETE list of all samples and loops that are included with Apple DAW's so I wouldn't duplicate anything ? I'm pretty much positive that Apple had other companies to sound design and sample all libraries for them, so is there also a way to have a list of those manufacturers? Again, the objection is to start upgrading the sound library without any possible duplication?
    Thanks in advance!

    Chris, I certainly don't mind additional questions and postings.
    I believe there are many issues with Apple Loops and Logic that need to be resolved and people need to be aware of that. Unfortunately, in opposite to the old "german" version of Logic , there's no lifetime tech support, you can't even call and ask the question after 60 days , which isn't right for a professional software of this level, especially considering the fact that many things still remain vague in Logic even for developers and tech support people!( believe me, I've called and asked!)
    Issues like that need to be resolved over the phone with the company, period!
    One thing I also learned over the years as a Mac OSX user, if something doesn't work, don't mess with it. Delete your drive and re-install everything. This is very frustrating , I know, but unfortunately this is the only way to deal with OSX issues, if you got a problem with your system, don't try to fix it. It's never gonna be the same again. I know , it's off the topic a little bit, but if your content is missing from the system files, before installing your new Logic, back up your important files, wipe up your drive and clean install Mac OSX , run updates and then install the Logic. Most likely , everything will be in it's place, at least 90% or more. I gave up trying to make two system in my house to be compatible 100% , but it's OK if they're 90% or more identical. I spent enormous amount of time trying to find out what's missing and where, I visited most of the forums and there's no clean answer.
    Message was edited by: Moderator

  • My iphone 5s isn't turning on and its not charging. i have my legit charger that came with my phone and after 6 months it stopped working, i even have a charging case and that wont charge i. I tried cleaning it but still nothing! some please help

    A few days after i've updated to iOS 8.1.1 my iphone 5s died and isn't turning on and its not charging. i have my legit charger that came with my phone and after 6 months it stopped working, i even have a charging case and that wont charge it. I google searched the problem and tried cleaning the charging port but still nothing! some please help

    Please make a Genius Appointment and take it in for service.
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5 and 5C. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    You will find respective repair costs in the appropriate link:
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task:
    1. iResq or Google for others.
    2. Buy and replace screen yourself: iFixit

  • I have an external server that stores all my movies and music, is there a way to stream it to my apple tv? If not is there a way I can link the folders to itunes (without downloading files to computer) and will that make them view-able for the apple TV?

    I have an external server that stores all my movies and music, is there a way to stream it to my apple tv?
    If not is there a way I can link the folders to itunes (without downloading files to computer) that will make them view-able for the apple TV?
    If none of that works is there a way to get it working alternativly?
    Additional Information:
    Everything is linked via ethernet cable.
    I'm using a PC to set it up.
    If you have any other questions feel free to ask and I'll help where I can.
    Thank you for any help

    (I think the daughter got he better end of the deal!)   I believe if you change the password and user id one of the devices it will stop that from occurring. But I'm not the one to tell you how to do it; someone like "Illaass" (Illaass seems to know how to correct / fix almost anything!) will know how if you don't. Just look for the "cat" icon.

  • I have enlarged icons on the log in screen and can not enter my login code. I have tried enough times that I am locked out and my iphone 5 has been disabled.How do I fix this??

    I have enlarged icons on the log in screen and can not enter my login code. I have tried enough times that I am locked out and my iphone 5 has been disabled.How do I fix this??

    Hey there byambar,
    Welcome to Apple Support Communities.
    It sounds like you’re describing two issues, the first issue is related to the Zoom accessibility feature and the second issue is related to the device being disabled.
    Take a look at the article linked below to learn more about Zoom and the other accessibility features on your iPhone 5.
    Use Accessibility features in iOS - Apple Support
    This article will help you resolve the issue with your iPhone being disabled.
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support
    Take care,
    -Jason

  • If you dont have the sim card that came with the iphone and you resync it how do you get it to turn back on .?

    if you dont have the sim card that came with the iphone and you resync it how do you get it to turn back on .?

    You have been syncing the iPhone with iTunes on your computer without a SIM card inserted in the iPhone for how long?
    If the iPhone says connect to computer, this means there is a problem with your iPhone that requires restoring the iPhone with iTunes. As already provided, not having a SIM card inserted in an iPhone does not prevent or shouldn't prevent syncing the iPhone with iTunes. Depending on the iPhone model, it is required in order to restore the iPhone with iTunes.
    http://support.apple.com/kb/ht3406
    To re-activate an iPhone 3G or iPhone 3GS that displays the "Connect to iTunes" screen:
    Insert a SIM card from the carrier with which you used your phone. Note: If you are using the same carrier, you can use the activated SIM card from your new device to do this. If your device is unlocked by your carrier, you can use any SIM card.
    Connect the iPhone 3G or iPhone 3GS to iTunes on a computer connected to the Internet.
    iTunes will then activate the device. You can remove the SIM card at this point and use the iPhone as if it were an iPod touch.

  • I have an iphone 4s that i got last week and i set it up just using the phone. today my dad restored it as my mothers iphone so i lost all of my data. I tried to restore it as my original phone i had but i exited out of itunes and now my phone wont showup

    I have an iphone 4s that i got last week and i set it up just using the phone. today my dad restored it as my mothers iphone so i lost all of my data. I tried to restore it as my original phone i had but i exited out of itunes and now my phone wont showup in itunes or on my computer

    Did you fail to import them to your computer before restoring?
    Not good.
    They are likely gone.
    You can try restoring from backup.

  • HT6058 Hello I have a iPhone 4 that's never been updated and I see there are three available, Should I just go with the most recent update ?

    Hello I have a iPhone 4 that's never been updated and I see there are three available, Should I just go with the most recent update ?

    You don't get a choice. If you decide to update, your phone will be updated to the latest iOS version available for your phone. For you, that's iOS 7.0.4.
    Make sure you follow the directions here:
    http://support.apple.com/kb/ht4972
    The update to iOS 5.0 & higher is an erase/restore deal.

  • I have a Ipod touch that don't turn on and when connect to itunes, it's recognize

    I need Help!!!
    I have a Ipod touch that don't turn on and when connect to itunes, it's recognize

    I tryed but it isn't work, it like death, but when I connect to Itunes it is recognize like a Iphone, but without more information, just the name= Iphone and the other thinks are capacity software serial number N/A.
    And when i try to rest isn't Work
    (Thank for your help)

  • I am trying to open pptx files on my MacBook Pro and continue to get "No Text Converter is installed for this application" even though I have dowloaded several converters that were supposed to work and I just downloaded Apache Open Office 3.4.1

    I am trying to open pptx files on my MacBook Pro and continue to get "No Text Converter is installed for this application" even though I have dowloaded several converters that were supposed to work and I just downloaded Apache Open Office 3.4.1 with no luck.  I am able to open docx files with the converters I have installed but not pptx files.

    The PPTX file type is primarily associated with 'Power Point' by Microsoft Corporation.
    This is the new format for Microsoft Office documents.
    It is a combination of XML architecture and ZIP compression for size reduction.
    To open Office 2008 for Mac documents (format .xlsx, .docx, .pptx) in Office for Mac 2004, you must download and install the Open XML File Format Converter. This article describes how to obtain and install the Open XML File Format Converter for Mac.
    more here:
    http://support.microsoft.com/kb/968200
    Instead of all that, and buying OfficeMac etc...
    Try to see if the FREE LibreOffice suite will open the file on your Mac.
    http://www.libreoffice.org/

  • HT2480 In my gmail account info I do not have a contacts bar that I can turn off and on.  How can I add that?

    In my gmail account info in settings mail contacts calendars I now do not have a contacts bar that I can turn off and on.  Just updated phone and lost it.
    What can I do to add it back?

    In my gmail account info in settings mail contacts calendars I now do not have a contacts bar that I can turn off and on.  Just updated phone and lost it.
    What can I do to add it back?

  • I have an iPhone 4 that is not holding charge and heating up.  I've been told it is a problem with the processor.

    I have an iphone 4 that is not holding charge and is heating up excessively.  I've been told that the iphone 4 is having problems with the processor and that it will soon die and there is no way to repair it.  I got my phone in CR through Kolbi / ICE which guarantees it only for a year.  I would like to know what Apple would like me to do.  i have not taken it in for rapair or anything in hopes that they will acknowledge that the phone is only a year old and would support it.
    Appreciate your help,
    Belkis Young

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If the issue persists, take the device to Apple or the Apple Authorized Service Center in the country where the device was originally sold.  The warranty is not International.
    All iPhones come with a one year warranty when sold as new.

  • I have old Freehand drawings that I want to display and rasterize. Can Illustrator do that?

    I have old Freehand drawings that I want to display and rasterize. Can Illustrator do that?
    These were created in Freehand 5 and Freehand 7. They are vector drawings, but I need to display them as images.
    If not Illustrator, is there any program that can?
    Thank you

    Older versions of AI can open FH files, but they had to be the FH 10/11 (MX). Try downloading the CS4 trial or something like that... Otherwise this is pretty hopeless. It's a legacy format that even back then not many other apos supported...
    Mylenium

Maybe you are looking for

  • Actual Freight Costs - Production Order

    How can we include actual Freight Costs (to be paid to outside Vendor) on a Production Order? We need to be able to create an Invoice to our Vendor for freight (or other services) but shouldn't this be linked to the Production Order? Any help appreci

  • JFrame with JDialog question

    Hi I have a JFrame that have a JButton on it. This button have an actionlistener which the inner class of JFrame. When user click on the button, it should pop up a JDialog with modal turn on. How can I pass the Frame to the JDialog so that I can set

  • Attaching and Detaching Observers to a document, what is the  correct way?

    Hi, I came across below code snippet in many of the sample PLugins where Observer is being: Attached on the kAfterOpenDocSignalResponderService Detached on the on kBeforeCloseDocSignalResponderService Same DocRef is being used in both the cases but t

  • Problems mounting a Camera as USB device [RESOLVED]

    Usually, when I plug in my Canon PowerShot Pro 1 to my Archlinux laptop, I get an icon appearing on my desktop.  I just double click on this icon and Nautilus opens up showing the individual photos. However, I've recently invoked pacman -Syu and now

  • Can't play video on iPad mini.

    I am not able to play video file from any site (even youtube) on my ipad mini. I bought my ipad three days back. I have also installed youtube app but I get the msg of playback error. I tried playing the video in google chrome app as well but no succ