wigzell
unread,Nov 24, 2009, 11:16:21 AM11/24/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
In C#, I create a byte[] using BinaryFormatter etc. as follows:
decimal[] theArray = new decimal[2];
theArray[0] = (decimal) 36300288.734436237;
theArray[1] = (decimal) 34176522.502899267;
BinaryFormatter bf = new BinaryFormatter();
MemoryStream ms = new MemoryStream();
bf.Serialize(ms, theArray);
byte[] bytes = ms.GetBuffer();
This is then stored to SQL Server 2005 in varbinary field. When
loading this from SQL, I get the byte[] back - so my question is, how
do I convert the byte[] back to the decimal[]?
Many thanks,
Cathy