473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Stream.Read in Bytearray Problem

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


Nov 20 '05 #1
4 1107
"Daniel von Fersen" <ca****@web.de> schrieb
Hallo,


German posts only in the German group. Thx
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
"Daniel von Fersen" <ca****@web.de> schrieb
Hallo,


German posts only in the German group. Thx
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
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

Nov 20 '05 #4
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

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel von Fersen | last post by:
When I want to Read the Bytes 1000-2000 from a Stream into a ByteArray using Stream.Read(byteArray,1000,2000) they are written to the positions 1000-2000 in the byteArray. but my Array is...
0
by: Daniel von Fersen | last post by:
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...
8
by: Daniel von Fersen | last post by:
When I want to Read the Bytes 1000-2000 from a Stream into a ByteArray using Stream.Read(byteArray,1000,2000) they are written to the positions 1000-2000 in the byteArray. but my Array is...
2
by: bill tie | last post by:
How do I convert ADODB.Stream into an array of bytes? Thank you.
5
by: Simon Rigby | last post by:
Hi folks, Apologies if this is not directly relevant but I was struggling to find a group with the appropriate context. So as my problem is in an aspx web site I thought I'd try here first....
1
by: pax82 | last post by:
hi, sorry for my english but i don't speak good english. in this web service i send 2 data stream(xml and xsl file) and i would like to return a xslt trasform-file byte array (now i return string...
11
by: Icemokka | last post by:
Hi, I'm need to upload a big file ( 600Mb+ ) to a BLOB field in MSSQL 2005. My code looks like this : fs = New FileStream(sFilePath, FileMode.Open) Dim ByteArray(fs.Length) As Byte...
0
by: vishnu | last post by:
Hi, Am trying to post the data over https and am getting error in httpwebresponse.getResponseStream.Please help me to get rid of this issue. Here is the message from immediate window ...
5
by: Nitin Mahajan | last post by:
Guys Is there a way in C# to create a word object directly from a memory stream without passing that to hard disk (file stream). I think it doesn't makes sense to create a file just to read it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.