By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,124 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

how to deserialize an array?

P: n/a
hello,

is there a way to deserialize the array:
a:2:{i:0;s:8:"element0";i:1;s:8:"element1";}
in vb. net?

greets,
messer

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Take a look at this web site...

http://abstractvb.com/code.asp?F=1&P=2&A=1018

It has a great article on how to serialize and deserialize and object. They
use a custom class but doing an array is no different. I use this exact same
code to do hashtables and such. An array is no different. Also, you don't
say if you want it to be deserialized form a file or a memory stream. That
is no mater either since you can replace the filestream form the example to
a memory stream and get the same effect.
"Messer" <in*****@email.com> wrote in message
news:d2**********@nemesis.news.tpi.pl...
hello,

is there a way to deserialize the array:
a:2:{i:0;s:8:"element0";i:1;s:8:"element1";}
in vb. net?

greets,
messer

Nov 21 '05 #2

P: n/a
hello ray,
Also, you don't say if you want it to be deserialized form a file or a
memory stream.


i have this serialized array assigned to a variable "str" . (dim str as
string).
so i would like to deserialize it from the "str" into "tab_1" (dim tab_1(n)
as string)

is it still possible? :)
Nov 21 '05 #3

P: n/a
The key is what method did you use to serialize it? Then you really just
have to reverse it.

Post the code you used to get from the array to the string and we will see
what we can do...

"Messer" <in*****@email.com> wrote in message
news:d2**********@nemesis.news.tpi.pl...
hello ray,
Also, you don't say if you want it to be deserialized form a file or a
memory stream.


i have this serialized array assigned to a variable "str" . (dim str as
string).
so i would like to deserialize it from the "str" into "tab_1" (dim
tab_1(n) as string)

is it still possible? :)

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.