954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Convert .wav file into bytes

I was wondering if it is possible to write a program in C or C++(maybe even Visual Basic, as i m more experienced with that programming language) to convert a .wav file into bytes and save the same file as a text file.
I am a Visual Basic programmer and have little (almost no) knowledge about C or C++ programming. Please Help.

By far, I have achieved success in only loading up the .wav file in Visual Basic. I am still wanting to learn how to extract data from the wav file using Visual Basic

black3
Newbie Poster
10 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

You aren't going to save a binary file as a text file.

The question is: do you want to make a binary dump of the file (displaying the hexadecimal code for the content of each byte as text), or separate out the bytes themselves, leaving them in numeric form?

In VB, use the hex$(byte1) function to turn a byte's internal value (byte1) into the text representing that value. The result is a string with two hexadecimal digits.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

i just want to convt the .wav file with RIFF header and insert it into SQL Server using C++ in byte form, not in .NET platform.

kingshuk.sarkar
Newbie Poster
1 post since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

I want to convert wav file into bytes and then read it..plz can you help me to implement this using C#..i would be very thankful for your cooperation..I'l be presenting my proj in few days so i need to implement this as soon as possible.

riteshdalvi
Newbie Poster
2 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 
I want to convert wav file into bytes and then read it..plz can you help me to implement this using C#..i would be very thankful for your cooperation..I'l be presenting my proj in few days so i need to implement this as soon as possible.


Well...
I'm sorry to have to say this to you, but HTML and CSS are not capable of doing much of anything with your wav files except playing them, and what I really meant to say is that you are in the wrong section of the forum.

Troy III
Practically a Master Poster
609 posts since Jun 2008
Reputation Points: 120
Solved Threads: 80
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You