.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> SharePoint >> Post New QuestionBookmark and Share Subscribe to Forum

MOSS Search

Posted By: Aruna     Posted Date: December 28, 2010    Points:2   Category :SharePoint

i have a list of resumes stored in document libraries and list in my sharepoint site.

if i need to find a resume with a skill "JAVA" , i am searching it with a keyword and the results are available to me. i want to download all the resumes in my local.

is there any way to achieve this by using SP object model or any other thing?

am sure, it cant be done out of box.

Any ideas?

Author: Hemendra Agrawal             
Posted Date: December 30, 2010     Points: 5   

You will have to use SPFile class to do this. Here is the sample code:

SPWeb web = new SPSite("http://serverip:portno/").OpenWeb();
foreach( SPFolder folder in web.Folders )
foreach( SPFile file in folder.Files )
string filename = file.Name;
byte[] data = file.OpenBinary();
FileStream fs = new FileStream( filename, FileMode.CreateNew );
BinaryWriter w = new BinaryWriter( fs );
w.Write( data, 0, ( int )file.Length );

Hope it will help

Author: Aruna             
Posted Date: December 30, 2010     Points: 5   


Thanks for the reply.

I need to search for the reumes which has a word java in it.
we are using enterprise search in our sharepoint server and when i search with the keyword "Java" resumes which has word java in it are coming up as the result of search. i need to download the resumes which appears in search results and not all the files from my list.

i think it can be achieved through Spsearch.asmx web service. but dont have a complete idea.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend