Stream.Read in Bytearray Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel von Fersen

    Stream.Read in Bytearray Problem

    Hallo,
    Wenn ich mit Stream.Read(buf fer,1000,2000) 1000 bytes in ein Bytearray
    einlesen möchte werden diese Bytes an die positionen 1000-2000 geschrieben!

    Ich möchte jedoch (da ich nur diesen Teil [1000-2000] auslesen möchte, dass
    diese Bytes halt an positionen 1000-2000 geschrieben werden,
    da mein Array lediglich die Länge 1000 hat.

    Quasi: Ich möchte die Position 1000-2000 aus dem Stream lesen und jedoch in
    ein Array der Länge 2000-1000 also 1000 schreiben. Wie kenn ich das
    am besten realizieren. (Es handelt sich hierbei um ein Auslesen aus dem
    Internet, also kein FileStream oder so)



    Ich würde mich um eine Antwort sehr Freuen,



    Grüße

    Daniel




  • Armin Zingler

    #2
    Re: Stream.Read in Bytearray Problem

    "Daniel von Fersen" <cagara@web.d e> schrieb[color=blue]
    > Hallo,[/color]

    German posts only in the German group. Thx


    --
    Armin

    How to quote and why:



    Comment

    • Armin Zingler

      #3
      Re: Stream.Read in Bytearray Problem

      "Daniel von Fersen" <cagara@web.d e> schrieb[color=blue]
      > Hallo,[/color]

      German posts only in the German group. Thx


      --
      Armin

      How to quote and why:



      Comment

      • Cor Ligthert

        #4
        Re: Stream.Read in Bytearray Problem

        Hi Daniel,

        Before you misunderstand, Armin is himself German, we try to keep messages
        readable for everybody who visitst this newsgroup (I am also not a native
        English speaker).

        So please when you want answers on your questions here do it in English.

        However because your question is Internet and I do not want you to become
        direct in the hasle between two newsgroups (I do not now the current status
        about that)

        microsoft.publi c.de.german.ent wickler.vb
        and
        microsoft.publi c.de.german.ent wickler.asp
        (From the first I know that it is a very good newsgroup, what does not mean
        that the second is not)

        Do I give you a short answer, you can have a look at the
        string.substrin g(1000,1001)

        The "substring" is different from the "substr"

        Cor



        Comment

        • Cor Ligthert

          #5
          Re: Stream.Read in Bytearray Problem

          Hi Daniel,

          Before you misunderstand, Armin is himself German, we try to keep messages
          readable for everybody who visitst this newsgroup (I am also not a native
          English speaker).

          So please when you want answers on your questions here do it in English.

          However because your question is Internet and I do not want you to become
          direct in the hasle between two newsgroups (I do not now the current status
          about that)

          microsoft.publi c.de.german.ent wickler.vb
          and
          microsoft.publi c.de.german.ent wickler.asp
          (From the first I know that it is a very good newsgroup, what does not mean
          that the second is not)

          Do I give you a short answer, you can have a look at the
          string.substrin g(1000,1001)

          The "substring" is different from the "substr"

          Cor



          Comment

          Working...