Extracting data from a dataset returned by web service

  • Thread starter Thread starter MLSrinivas
  • Start date Start date
M

MLSrinivas

Hi all,

I getting dataset as output from a method a web service. Along with
other info this dataset is having wave file in binary base64 format in
one of the columns.

How to extract the data and create a wave file from this?

Please help. Being a newbie to .NET technologies, this has become a
monster for me and I'm losing hope...please help.

thanks
M.L.Srinivas
 
I think, You can use Convert.FromBase64String function which creates array of
bytes.

byte []myPicture;
myPicture = Convert.FromBase64String( sourceString );
MemoryStream ms = new MemoryStream();
ms.Write( myPicture, 0, myPicture.Length );
ms.Seek(0, SeekOrigin.Begin );
bmp = new Bitmap( ms );
bmp.Save( fileName );

Jan
 
Hi Jan,

Thanks for your time. Your suggestion showed me the solution.

Thanks
M.L.Srinivas
 
Back
Top