I have a sharepoint custom list with Title and image attachments, now i want to display image attachments in div based on the title.

hi,
i have a sharepoint custom list with Title and image attachments, now i want to display image attachments in div based on the title.

i am using the below code only
 SPSite mySite = new SPSite("http://sharepoinsiteaddress");
SPWeb myweb = mySite.OpenWeb();   
SPList myList = myweb.Lists["Announcements"];   
SPListItem myListItem = myList.GetItemById(1);   foreach (String attachmentname in myListItem.Attachments)
String attachmentAbsoluteURL =    myListItem.Attachments.UrlPrefix // gets the containing directory URL
   + attachmentname;
   // To get the SPSile reference to the attachment just use this code
  SPFile attachmentFile = myweb.GetFile(attachmentAbsoluteURL);
   // To read the file content simply use this code
   Stream stream = attachmentFile.OpenBinaryStream();    StreamReader reader = new StreamReader(stream);
   String fileContent = reader.ReadToEnd();
here i am using panel, how can i attach this attached image to panel

Similar Messages

  • How to create and handle sharepoint custom list with more than 300 columns?

    Hi,
    I have requirement for our project where in the input form is having around 320 columns in it.below are the columns and data types.
    Single line of text-180
    Yes or No Radio button -95
    Date time control-35
    Checkbox-10
    I have checked the sharepoint boundry and limits for columns and data types.
    https://technet.microsoft.com/en-us/library/cc262787.aspx
    But how can we handle a sharepoint list with these many large number columns.
    Is it safe to create all columns in a single list?
    How it will impact the performance?
    What is the other approach acheive this requirement?
    Any help would be appreciated.
    Regards,
    Poovi

    Hi,
    According to your description, my understanding is that you want to know if it has some performance issue and limitation when create large number column in a list.
    When creating columns in the list , you can still create all 320 columns in the list. But when retrieve the items in a view, then there is a list view threshold limit which causes the performance issue, see the link below:
    Sharepoint list column limit
    To handling the large number columns, I suggest you can distinguish the column with business logic to create in different list, it will be clear to display the logic relationship.
    Thanks
    Best Regards,
    Jerry Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • HT1296 i have been syncing my iphone with my work computer but now I want to switch to my laptop. how?

    I have been syncing my iphone to my work PC and now I want to switch to my laptop for syncing. How?

    An iPhone can only sync with one library at a time.  If you do not wish to have your present iTunes library on the home computer replace the one on the phone you will need to put the content of the work library on the home computer so it is still syncing with the same library
    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527 - a somewhat bewildering and not always easily understandable set of options.
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the iTunes Library.itl file in the moved iTunes folder.
    Windows users see tip at: https://discussions.apple.com/message/18879381

  • I have always used microsoft (+everything with them)and am interested in Moqilla/Firefox. Do i need to choose one or the other on my toshiba laptop Satellite? I have windows 7, microsoft 2010. I think something in my IE is corrupted.

    I was unable to access my student classroom to do my assignments suddenly. After 6 hrs. online with their tech support, they said something in my IE was corrupted. They helped my get onto Mozilla/Firefox. I was able to work my studying (I am student in advanced grad courses) using Firefox. I love the site, hate my homepage(non-existent) but need to find out the answers and whatever you can offer to help, regarding to the original question asked (above).

    When you install Firefox, you have the choice whether to make it your ''default browser''. The default browser is the one called to open links you click in other programs and shortcuts on your desktop. Whether Firefox is your default browser or not, you can use Firefox whenever you like by starting from its program icon.
    Some people have reported that their school software does not yet support Firefox 4. If you think that is true for your school software, you could install Firefox 3.6. That is available here: http://www.mozilla.com/firefox/all-older

  • So i have created a quiz with scoring and stuff but now i want to make a high score system just for one user any ideas?

    The questions each have a invisible dynamic text box that when the right answer is pressed it goes up by one and at the final score page i have a dynamic text box which has a simple code which adds the contents of these invisible text boxes, so i need a code which would use another dynamic text box which will hold the high score of the player, all i need is a one player and session cookie high score system any ideas anyone? (this is action script 2 BTW)

    you can use the sharedobject if you only want each user to compare their own scores.

  • I have installed firefox on computer with sync and on droid. now can't "swipe Left" to find tools to add device!

    HOW DO I FIND "TOOLS"

    How about Edit > Preferences? That's the equivalent of "Tools" in Linux, maybe that carried over to Android?

  • Create Pie Chart and Vertical bar chart using report builder 3.0 with sharepoint custom list

    Hi All,
    I have a client requirement to create reports which should show the graphical representation of SharePoint Custom List data. The reports are Month wise and YTD. Also i have to create dashboard.
    For creating reports, i have heard about Report Builder and SSRS. I have SQL server 2008r2 and installed report builder 3.0 but i am not aware of creating reports(KPI, Pie Chart, Vertical bar, etc.,) with sharepoint customlist.
    Can some one please help me on this.
    MercuryMan

    Here is some information about using the SharePoint List Data source with SSRS/Report Builder/BIDS:
    http://www.infotoad.com/blog/post/2012/10/11/using-a-sharepoint-list-connection-type-as-a-data-source-for-reporting-services.aspx
    http://technet.microsoft.com/en-us/library/ee633650.aspx
    http://www.codeproject.com/Articles/24469/SQL-Reporting-Services-data-from-SharePoint-lists
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Error when editing some Items in SharePoint Custom List

    Hello I have a custom list with multiple workflows and a customized infopath form. I am getting an unexpected error on some of the list items when I try to edit them. I can view them just fine but the error is occuring on edit for some items.
    I am also able to edit the same item that I am getting the problem with from the datasheet view but just not with infopath form.
    I use the USL to view the correlation error and it just said leaving monitored scoped.
    I also tried saving the list as a template and creating a new list from the template and then creating a new item in that list and got the same error. Please help.
    04/04/2014 11:07:36.72 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at System.Xml.XmlDocument.LoadXml(String xml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.FlattenXmlToHashtable(String strXml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.DoesWorkflowCancelWhenItemEdited(String associationXml) at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.EnsurePageNotInLockingWorkflowIfInEditMode() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.LoadDataSource() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.... bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.72* w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected ...Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.75 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://mydomain:Port/Site/Lists/Listname/Item/editifs.aspx?List=c15b9e3c%2D2aac%2D4a84%2D8317%2De3f9358f41bc&ID=144&IsDlg=1&Web=b5b749d6%2D0d3c%2D4cb5%2Daf3a%2D819ff5ceb88c)). Execution Time=75.1751473982343 bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.78 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http://mydomain:Port/_catalogs/theme/Themed/7D19B0BC/corev4-8A0ABD2F.css?ctag=0))

    here is the result of Merge-Splogfile
    04/04/2014 11:07:36.72 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at System.Xml.XmlDocument.LoadXml(String xml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.FlattenXmlToHashtable(String strXml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.DoesWorkflowCancelWhenItemEdited(String associationXml) at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.EnsurePageNotInLockingWorkflowIfInEditMode() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.LoadDataSource() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.... bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.72* w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected ...Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.75 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://mydomain:Port/Site/Lists/Listname/Item/editifs.aspx?List=c15b9e3c%2D2aac%2D4a84%2D8317%2De3f9358f41bc&ID=144&IsDlg=1&Web=b5b749d6%2D0d3c%2D4cb5%2Daf3a%2D819ff5ceb88c)). Execution Time=75.1751473982343 bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.78 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http://mydomain:Port/_catalogs/theme/Themed/7D19B0BC/corev4-8A0ABD2F.css?ctag=0))

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • Hi All, can i have some production support issues with rootcasue and resolution for SAP TM?

    Hi All, can i have some production support issues with rootcasue and resolution for SAP TM?
    Thanks,
    Sreenivas

    Hi Sreenivas,
    I would recommend that you read the Rules of Engagement and other documents in the Getting Started link (top right) before posting anymore.  Your Discussion will most likely get reported as non-specific and get removed.  If you have a specific problem with TM, please post it in a new thread with error messages, version and SPs installed, and how the error occurs and what you are trying to get TM to do.
    There are a lot of resources available in the TM Overview page which can help, so start there and maybe also look at some of the MKS (Monday Knowledge Session) recordings which should also be listed.  There are also a lot of experienced people who can help resolve issues your TM installation, but you need to provide enough information on the problems you are having.  If you are just looking for information on past problems, do a Search or simply browse through past Discussions which are marked with a green Check (Correct Answer).
    Regards, Mike
    SAP Customer Experience Group - CEG (and a Moderator)

  • Would like to sync Sharepoint 2010 task with Outlook and iPhone

    Hi
    I have a Sharepoint 2010 server - function as intranet server, and as a project webserver. 
    When I create a new project in SP, I also get a Task list. Very good. And I can also connect the project to Outlook.  Very good that as well :)
    I do have an Exchange 2010 server as well.
    But... I also use a iPhone - where I have connected my mail, calender and task. This is working fine. 
    The problem is  the task from Sharepoint project. When I try to add new task list, I just find the list where I have added e-mail accunts. Not the one from SharePoint. 
    Anyboy following? :) 
    So, is it possible too Sync Sharepoint 2010 task list with your personal outlook tasklist? :)
    -N-

    Hi Narna,
    Thanks for posting your query, Kindly browse the below mentioned URLs to Sync SharePoint Tasklist with your Outlook task lists step by step
    http://www.sharepointgeoff.com/how-to-synchronize-a-sharepoint-2010-task-list-with-microsoft-outlook/
    http://pholpar.wordpress.com/2011/12/30/synchronizing-sharepoint-tasks-with-outlook-including-categories/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Customer Statement with opening and closing balances

    Dear Forum,
    The users want to generate the Customer Statement with opening and closing balances like the traditional one. The statement now generated gives the list of all open items as on date, but the users want the statement with opening balances as on the date of the begining of the range specified and the closing balance at the end of the period for which the statement is generated. Is there a way to generate the same from the system.
    Thanks for the help.
    Regards,

    Hi,
    SPRO> Financial Accounting (New) > Accounts Receivable and Accounts Payable > Customer Accounts > Line Items > Correspondence > Make and Check Settings for Correspondence
    You can use the program RFKORD10 with correspondance type SAP06 for your company code
    This program prints account statements and open items lists for customers and vendors in letter form. For account statements, all postings between two key dates, as well as the opening and closing balance, are listed.
    Regards,
    Gaurav

  • Hi, recently I have been making a list of songs and now that I have all of the songs that I want my iTunes is telling me to answer security questions that I forget the answers to, is it possible to get rid if this?

    Hi, recently I have been making a list of songs and now that I have all of the songs that I want my iTunes is telling me to answer security questions that I forget the answers to, is it possible to get rid if this?

    Damian_2087 wrote:
    ... I forget the answers... is it possible to get rid if this?
    No.
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How can I delete all of my contacts from my iphone? I have updated my contact list in Outlook, and need to re-import that "clean" list.

    How can I delete all of my contacts from my iphone? I have updated my contact list in Outlook, and need to re-import that "clean" list.

    There is a checkbox on the 'info' tab in iTunes that will allow you to overwrite the address book on the phone with the one from the computer on the next sync.

  • Item(select list) with LOV and Report with link = changed value item

    Hello,
    On one page I have:
    - Item 'P_name' (select list) with LOV to select name of a person;
    - Items 'factory' and Report 'factory'(standard created with 'Form with Report' on the same page).
    Situation:
    All works fine. I selected first a LOV Item 'P_name' (say 'Jane'). But....
    Only when I select a record (to change the values) from the report 'factory' then LOV Item 'P_name' become empty. Report used a link to the same page to fill the report items 'factory' and make also the LOV item empty.
    Question:
    I have made a process that write the name 'Jane' to table.
    I see two possibilities:
    - LOV Item value => fill the LOV item with 'Jane' from the table before region. Is this possible?
    - Report => What is the buttonname of reportlink? I can use this name in the processes.
    Thanks Walter!

    1) what i meant was for you to test this ridiculously huge LOV outside of htmldb, but it occurred to me last night that you could, in fact, be hitting a limit of ours. after some poking around, i have confirmed that. select list items in htmldb are currently limited to 10,000 rows. this was initially done for performance reasons, but they're now opening up the restriction. if you really need to work with that many rows where the user is allowed to pick from a set of values, consider using a popup item type instead. it'd help your app performance as well (in my test cases, it stank to have to wait for my 10k select list rows to come down to my browser).
    2) sorry to not have been more clear about this, but when you set your item's "Source Type" back to "Database Column", you'd have to specify that column in the "Source or value expression" field. also, you can't put a sql query into that "Post Calculation Computation" field. as i said before, "you can take a look at the attribute-level help for that field to see implementation examples."
    3) stick with "Always..." for now if you're using our auto-dml process(es)
    regards,
    raj

Maybe you are looking for

  • Emails sent on iPhone do not show up on my Mac

    I have a few email accounts.  For my Gmail account if I send an email on my iPhone, it does not show up on in sent mail on my Mac (or anywhere else for that matter).  I am using Apple's Mail application and the emails I am sending from iPhone are als

  • Link Travel request to a PO

    Hi Just want to find out how you can link a Travel request to a PO? T

  • Dw fluid grid - How do I move text away from the edge?

    I want to move the text "Article 2 Title" a few pixels to the left so it isn't against the right edge of the box.  How can I do this?

  • Photoshop CS6 upgrade - installation question

    So, 2 months ago I got a new notebook. I installed CS4 and made sure I got everything working perfectly. Then, this month I installed the CS6 trial and boy it has a crapload of permission-related temp file directory blunders. To narrow it down to jus

  • Ansprechpartner in =?iso-8859-1?Q?=D6sterreich?= !?

    Hallo, ich bin auf der Suche nach einem Ansprechpartner für softwarefragen in Österreich (lt.meines Wissens in Salzburg ) ! bitte um baldige Antwort... an : [email protected] mfg alti