Stream.Read in Bytearray Problem

D

Daniel von Fersen

Hallo,
Wenn ich mit Stream.Read(buffer,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
 
C

Cor Ligthert

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.public.de.german.entwickler.vb
and
microsoft.public.de.german.entwickler.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.substring(1000,1001)

The "substring" is different from the "substr"

Cor
 

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

Top