ArrayList typecasting from binary SQL data

G

Guest

Is there any way that you can insert an ArrayList into a SQL Server database
as a binary object then retrieve that object and use it as and ArrayList. If
so, how would you do this?
 
B

Bruce Barker

assuming the objects in the arraylist are serialiable, use the
BinaryForatter and a memory stream to convert the arraylist to a memory
stream, and pass the stream (or byte array) to the database.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top