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 1236
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: 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: 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,...
| |
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |