Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8983769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:55:22+00:00 2026-06-15T20:55:22+00:00

we are creating asp.net website which uses salesfoce webservice api and pull all the

  • 0

we are creating asp.net website which uses salesfoce webservice api and pull all the information. We have a functionality within the site to display a contact “notes and attachments” which can be downloaded. I have been googling a lot about it, but no use.

Can any one guide me please.?

thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:55:24+00:00Added an answer on June 15, 2026 at 8:55 pm

    You have to query the Attachment table, either directly:

    SELECT Id, Name, Body, BodyLength, ContentType, CreatedBy.Name, CreatedDate, Description, Owner.Name, ParentId
    FROM Attachment 
    LIMIT 10
    

    Or indirectly with a subquery:

    SELECT Id, Name, Email, (SELECT Name FROM Attachments ORDER BY CreatedDate DESC)
    FROM Contact
    LIMIT 10
    

    The actual content of the file is stored in the Body column, base64-encoded. You’ll have to decode it and (based on content type?) save as text / binary file, server to the user with the proper content header…

    The inclusion of the Body column slows things down a bit – I’d recommend you skip it initially in the “see attachments related list” part of your ASP application and retrieve them (by Id for example) only when user actually wants it… I’ve noticed that you can get just 1 row returned (initially) with Body queried for so if you really want to do it all in one go – check out the documentation for queryMore() function and make sure your app has processed whole query locator (“cursor” if you’re familiar with that word).

    So, the above should work both in SOAP API and REST API as long as you can send queries (you didn’t specify which one you use… “webservice api” sounds like you’re limited to using few selected Apex classes exposed as webservice). Additionally REST API has special retrieve() command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an ASP.net website which handles thousands of requests and it all stems
I am new to ASP.NET. I am creating a website in which i have
I am new to Asp.net I am creating website which have DropDown list and
I'm creating a ASP.NET MVC website and I was wandering which techniques do you
I have an ASP.NET website that will hit about 2gb physical memory used within
I am creating a website using JavaScript/ASP.NET/C#/CSS/HTML/Compact SQL server. I have the majority of
When creating a asp.net page, which uses the .NET framework, does the client accessing
I'm building an ASP.Net website. I have a cart class which stores the items
I'm creating a website with asp.net, mvc 4 and c# and currently have a
I have an asp.net application which uses the web part framework to allow users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.