Cor,
Why would I give a "bogus" answer? :-) Or is myIntegerArray a class that has
a EncodedByJay method on it?
The OP wants to put an integer array into a database, the two "better"
methods of doing this is binary serialization or System.Buffer.BlockCopy.
The third "better" method would be XML serialization. IMHO any other method
would be "more" work, hence not as "better", however these other methods may
be more what the OP needs, for example, the OP could use a loop & a string
builder to convert the array into a comma separated string, then store the
string in the database. To get the array out, he could use String.Split &
Integer.Parse in a loop...
I don't really see where Encoding would apply in this question per se. As
encoding usually entails changing from one format to another, such as
Unicode to ASCII. I don't really see that the OP wants to change the format
of the integers such as from Unicode to ASCII... (unless you meant integer
array to String & back, then I'm following you).
If you had an idea of how the OP could "encode" the integer array to be
stored, by all means give it.
Hope this helps
Jay
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:e1**************@TK2MSFTNGP12.phx.gbl...
Hi Jay,
I was so sure that you would give the answer on
Dim aByte() as Byte
aByte = myIntegerArray.EncodedByJay
That I did not, because it is something I always have to search for and
have the idea that you know it direct.
The rest would be peanuts (Can work fine in my opinion).
(When you have no direct answer than tell it, it is not that I am to lazy
for it)
Cor