473,805 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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


Nov 20 '05 #1
4 1122
"Daniel von Fersen" <ca****@web.d e> 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.d e> 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.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

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.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

Nov 20 '05 #5

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

Similar topics

1
1338
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 only 1000 items long Array(0-999), and i just want to have the positions 1000-2000 from the stream! How can i realize it that the bytes 1000-2000 are written to an Array of
0
398
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 Teil 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...
8
1255
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 only 1000 items long Array(0-999), and i just want to have the positions 1000-2000 from the stream! How can i realize it that the bytes 1000-2000 are written to an Array of
2
14300
by: bill tie | last post by:
How do I convert ADODB.Stream into an array of bytes? Thank you.
5
2094
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. Please feel free to suggest a more relevent group. I have some code that I am using to build a stream (test text at this stage, although eventually will come from a database query). I want to have this available as a download without having to...
1
1641
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 because i'm in testing) when the transResult file is been created, it's source is all NULL char. why? where i'm wrong? public string getData(byte xmlData, byte xslData) {
11
4059
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 fs.Read(ByteArray, 0, fs.Length)
0
2890
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 ?myResp.GetResponseStream() {System.Net.ConnectStream}
5
6873
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 again in to word object. If some one has some brilliant idea please share. In a nutshell this is what I'm currently doing ByteArray --File Stream --Word Object and this I want to do
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10356
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10361
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.