When I want to Read the Bytes 1000-2000 from a Stream into a ByteArray using
Stream.Read(byt eArray,1000,200 0)
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 1254
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.d e> 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.d e> 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.Beg in)
Stream.Read(byt eArray,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.Beg in)
Stream.Read(byt eArray,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 works fine. If the
file does not exist, it saves the file (Word.doc), if it does exists,
it checks to see if the file is open. If it is open, and another user
is trying to save or overwrite the same file, I trap an Error 3002
(document open),...
|
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
|
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...
|
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
|
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 = Image.FromStream(xx)
PictureBox1.SizeMode = PictureBoxSizeMode.CenterImage
| |
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...
|
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)
|
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}
|
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
|
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...
|
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,...
| |
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |