Results 1 to 6 of 6

Thread: Create a new stream

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    Create a new stream

    The following code:

    VB Code:
    1. Dim s As Stream
    2. b.Serialize(s, ToSerialize)

    Doesn't work... why?

    When I try to do "Dim S As New Stream", it won't let me...

    But when I try the above code, it tells me that S = Nothing and won't let it serialize...

    Thanks for any help...

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  2. #2
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    A stream is an abstract class. You need to use one of it's derived child classes.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    ok thanks
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    So, is there any stream other than the FileStream that I can use to do this?

    The stream that I am using is just going to be fed directly into a database OLE field... so I don't need to create a file or anything, just keep the stream in memory

    L8R,

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Amazingly enough, there is a class called MemeoryStream.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    LOL... Isn't that odd...


    Thanks guys...

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width