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 8056265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:39:16+00:00 2026-06-05T08:39:16+00:00

My company has a C# .Net based web service for sending email. This web

  • 0

My company has a C# .Net based web service for sending email. This web service does not currently support attachments. We have many old ASP Classic pages that are still using CDONTS for sending emails (including ones with attachments). My current task is to find out if we can add attachment support to the web service such that we can replace the ASP Classic CDONTS with calls to the web service. What I’m getting hung up on is this: is it possible to pass those files that need to be attached to the web service from ASP Classic.

  1. I know how to call a web service from ASP Classic; I can already use the existing web service from Classic when I don’t need attachments.
  2. I know that I could use CDOSYS or other ASP Classic methods to send the email: I’m being asked to use this existing web service.
  3. I’ve seen lots of examples of web services taking in files as a byte array: how would you create and send that byte array from ASP Classic?
  4. I’ve also seen lots of email web service examples where the service just takes in a file path. Am I wrong in thinking that this would be problematic if you’re running the web service on a different machine? The path you send would have to be accessible to the web service host.

Any help is appreciate: I’ve found lots of articles describing half of what I need to do, or only approaching it from a .Net-to-.Net angle.

  • 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-05T08:39:17+00:00Added an answer on June 5, 2026 at 8:39 am

    you could use the adodb.stream object to convert binary data into a byte array:

    Function ReadByteArray(strFileName)
        Const adTypeBinary = 1
        Dim bin : Set bin = Server.CreateObject("ADODB.Stream")
        bin.Type = adTypeBinary
        bin.Open
        bin.LoadFromFile strFileName
        ReadByteArray = bin.Read
    End Function
    

    doc of adodb.stream

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

Sidebar

Related Questions

My company has decided to develop ebook DRM platform. The platform does not have
My company has developed a .NET web service and a client dll that uses
My company has a web application built in ASP.NET and they have asked me
My company has several class libraries we use in multiple website projects (not web
I'm working with a .NET based Web Service where some of the API calls
My company has an existing .Net Remoting service exposing interfaces to external processes. I
My company has several web applications written in ASP.NET. We need to make these
Stack Overflowers: I have a search function on my company's website (based on .NET
Our company has a multi tenant asp.net web application. The application is 3 tier
Our company has an intranet with 30,000+ web pages and 160+ web applications. This

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.