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

  • Home
  • SEARCH
  • 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 7998933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:21:20+00:00 2026-06-04T15:21:20+00:00

We are using c# to return byte data of an mp3, but the mp3

  • 0

We are using c# to return byte data of an mp3, but the mp3 is not yet encoded correctly, so we need a way to test it.

Currently we’ve built a page in our mvc that consumes the function and we simply run the url to try to load it into an mp3 player. Its a clunky way to do it, I’m sure. How should we really be testing for valid mp3 byte data?

  • 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-04T15:21:21+00:00Added an answer on June 4, 2026 at 3:21 pm

    Split system into pieces and test them separately:

    • MP3 creation itself (as byte array/file) – can be tested by using some command-line “MP3 to something” converter or a library that can play MP3.
    • generating url for client
    • streaming given file to client (constant MP3 if you need to test in player, otherwise any byte array would do as long as it returned correctly with correct headers).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a IHttpHandler to call a webservice and return the resulting byte[] to
I need to display the content of another page from a function using return.
Can you please help me with sending data (mp3, wav etc.) using Rest service?
I'm trying to send a base64 encoded data using a POST request and it
Hi guys i have an issue currently when using a Socket to send data.
Using Visual Studio 2005 - C# 2.0, System.Net.WebClient.UploadData(Uri address, byte[] data) Windows Server 2003
In ASP.NET MVC3, when a view model is passed into a view using return
I am using the return from the following call as the datasource for a
I have an odd problem when using the return result of a function and
All of the examples I've seen of using yield return x; inside a C#

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.