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
length=1000
PS: The Stream is reading from the Internet
Thanx in advice 8 1233
Hi Daniel,
Sorry did misread the bytearray, however answer stays almost the same.
Why not read the 2000 bytes and than move it in your own application?
It seems for me so strange that you can bring a piece of program to a server
anywhere (by instance a Unix server) who is able to find that 1000 position
for you in the bytearray.
I think it is readed anyway.
Just my thought
Cor
Hi Daniel,
Sorry did misread the bytearray, however answer stays almost the same.
Why not read the 2000 bytes and than move it in your own application?
It seems for me so strange that you can bring a piece of program to a server
anywhere (by instance a Unix server) who is able to find that 1000 position
for you in the bytearray.
I think it is readed anyway.
Just my thought
Cor
* "Daniel von Fersen" <ca****@web.de> scripsit:
[...]
You don't need to mark English language posts as English here. This
group is per default English.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
* "Daniel von Fersen" <ca****@web.de> scripsit:
[...]
You don't need to mark English language posts as English here. This
group is per default English.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Hi Herfried,
I thought what can Herfried say about this message, however you found
something.
LOL
And now I understand why he did it also in German, probably special for you.
(only for fun you know that however I add it before others misunderstand
it)
:-)
Cor
Hi Herfried,
I thought what can Herfried say about this message, however you found
something.
LOL
And now I understand why he did it also in German, probably special for you.
(only for fun you know that however I add it before others misunderstand
it)
:-)
Cor
On Mon, 12 Apr 2004 09:02:54 +0200, Daniel von Fersen wrote: How can i realize it that the bytes 1000-2000 are written to an Array of length=1000
Try this:
Stream.Seek(999,SeekOrigin.Begin)
Stream.Read(byteArray,0,1000)
--
Chris
To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
On Mon, 12 Apr 2004 09:02:54 +0200, Daniel von Fersen wrote: How can i realize it that the bytes 1000-2000 are written to an Array of length=1000
Try this:
Stream.Seek(999,SeekOrigin.Begin)
Stream.Read(byteArray,0,1000)
--
Chris
To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bruce Zigenfous |
last post by:
Hello,
I am using an ASP that uses a third party active-x control to upload a
file to a file server using the ADO Stream Object. It uses the
FileSystemObject to create folders and files, which...
|
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...
|
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...
|
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...
|
by: JTE |
last post by:
Hi everybody,
I made a simple Wndows application in VS2005. A form with a button and
a picturebox.
place it in the
picturebox.
Dim xx As New System.IO.MemoryStream(yy)
PictureBox1.Image =...
|
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....
|
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...
|
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
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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: 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...
|
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,...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |