o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

[2005] Confirm -- file stream openorcreate -

Filestream open or create will do just as it says, obviously?

So if a user is running your application for the first time, it will create the filestream on it's initial use and then always open it thereafter.

I suppose also you can create as many filestreams as you desire?


May sound like a dufus question but I just want to confirm.

THANKS.

 

[2005] Confirm -- file stream openorcreate -
Filestream open or create will do just as it says, obviously? So if a user is running your application for the first time, it will create the filestream on it's initial use and then always open it thereafter. I suppose also you can create as many filestreams as you desire?


[02/03] what is the error in this line stream.Read(ibyte, 0, stream.Length) -
hi can any body tell me what is the error in the following code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OFD.Filter = "jpeg (*.jpg)|*.jpg" OFD.ShowDialog() Dim imagePath As Str


[2005] file.create How do you close the stream -
Unfortunately I don't have the code on me. However i think this will be simple for those more familiar with VB 2005 then I. I created a file using file.create file.create(filename) When i go to open the file using open for random, to use file.put, file.get which i prefer to us


Save ASF/ASX stream to file with .NET app. -
I've got a URL to an ASF/ASX file on the web. It's a 24 hour stream. I want to be able to click a button (or trigger my app in some other way) and have it start writing that stream to a file. Click another button, and the stream stops. WMV file preffered. MP3 ok. No WAV. It's important


retrieve BLOB data like doc or xml from Access DB -
Hello! (VS 2005 VB) I have an Access DB one of the fields is BLOB, which may contain documents or images. I found examples how to obtain bmp images (only) from BLOB fields like this(works perfect): Array.Copy(BLOB, 78, imgbytes, 0, BLOB.Length - 78) Dim strmImage As New Memory


[2005] How to write a stream to a string and back -
I'm not real up on Streams. If an object provides a "SaveToStream(stream as System.IO.Stream) method. How can I execute that method while saving it to a String value. I then need to be able to us the RestoreFromStream(stream as System.IO.Stream) to read back in from the String


[2005] Saving Crystal Report as a PDF from a binary stream -
Sound like fun? Yeah... I have absolutely no idea where to start. I have a Crystal Report generated and stored in a binary stream... I need to turn that stream into an actual PDF file saved in a temp directory so it can be emailed... where should I begin?


confirm file conversion -
hi all, i am counting lines in a word file, i am made invisible the background opening of the file, but still it is opening and closing. also before opening each of the word file, a window is displaying "Confirm File confirm", in that it shows some list of file formats such a


Reading from Binary Stream -
Hi, I've got some code that works exactly as intended, but is too slow for the wide-scale purposes I need. Here's an excerpt: _________________________________________ Dim amd As Stream Set amd = New Stream 'Open binary stream amd.Open amd.Type = adType


[2005]Binary Mode Problem -
I have a program that changes things in the byte level. It works perfectly on my computer, changes the right places and everything but when I run it on my server, it is completely messed up. Here's the code Code: Using stream As New IO.FileStream("C:\test\file.dat"


[2.0] how to convert wav file in to binary stream -
hello friends hai to every body.can any one tell me how to convert a wav file into binary stream in c# 2005 ?its very urgent for me regards kishore


get stream position -
i create a new stream, open an xml file for read, and use myDataSet.loadXml(mystream) now, on a separate thread, that runs only while the dataset is being loaded i keep printing stream.getPosition to the screen. it goes 0 0 0 18234 18234 ... and then it does 18234 about 50 t


Load file to stream -
Ive tried loading a file in an array of byte, but the file was creating using a Delphi app which wrote 16 bit unsigned ints and when I read it into a byte array all values are set to 255, as you might expect. Ive also tried array of integer. Is there a way I can load the file to a stre


[2005] Convert string to stream -
I have some XML in a string I want to use System.Data.Datatable.ReadXML() to get the xml into a datatable, but it only accepts a Stream object. How do I get a stream from a string Thanks


Load File into stream and Decrypt -
I need to load a file into a varible type System.IO.Stream and then decrypt it (or decrypt it and then load it into a stream). I need to know whats the best encryption for the job. Baiscly I dont want to store the file on the users hard drive. Any one have any source or links that c


Capturing MJPEG Stream -
Hello, Has any one worked with Capturing MJPEG stream comping from IP camera into vb 2005 application? I have seen applications in C# but none in vb 2005 yet... Please help with the code thanks in2minds


[2005] How can I convert a string to a stream -
Hi, I need to initialize a stream object and the source is a string. Actually it's XML in either an XML document object or just as a string. How can I get this into a stream without using files? Thx.


file name set at runtime **RESOLVED** -
I have searched and searched, uhhh, and have been obviously unsuccessful (even with microsoft KB). So, I'm gonna shhot it at your guys. This seems like it should be very simple. I would like for the user to enter the name of the text file to be saved. Below is the format i'm using:


Weird:StreamReader*RESOLVED* -
Ok maybe I am missing soemthing but: I open a file to a stream class Dim blah As Stream = File.open(blah,blah) then create a streamreader using the above stream Dim blahstream As New StreamReader(blah) now when i .Close() the STREAMREADER, the STREAM is closed as well?!


[2005] can i flush a memory stream contents directly to ftp Location -
Hello again, i have a memory stream that is filled with xmltextwriter content, i need to flush this memory stream directly to a ftp folder on other server. Can i do so and how ??? thank you all in advnace


Stream the screen -
I need to have a video stream of my current screen. Ok heres my entire mission. We have a game, NASCAR Racing 2002 Season, by papyrus. We are attempting to provide a live video stream to users, so that they can watch big races on our service. To do that, we would have to stream what we


[2005] saving file to network directory -
We have an existing application that upload file to a sharepoint site. But one of the client request that instead of uploading file to the SP site it will be upload to their network drive. When i visit the code i learned that it used a httpwebrequest (Stream property) in order to uplo


[2005] Network Stream Bandwidth -
How can I calculate bandwidth from a network stream? Right now I am using a stop watch but the calculation doesn't seem to be right based on the throughput of the hardware? (bytesRead / 1024) / elapsedSeconds = KB/s Should I be starting and stoping the stop watch right before


Skip initial 4 bytes in a binary stream -
Hi all, I have a binary file, contain set of stream, and I want to find some information there. What I have done up to now is read the file, open it and count the number of streams three. I'm stuck now. Just consider one stream. I want to skip first 4 bytes and read the next 4 by


[2005] file streaming in/from sql server 2005 -
hi guys it would help best if you will be able to create a sticky thread for the above title. anyway for the time being though i read already post how to do this, i want to confirm if the image data type in sql db will be able to support ALL data type im going to save (eg office fi


ADO File Stream and Progress Bars -
I'm wondering if anyone knows how to set up a progress bar for copying a file using ADO's Object Stream. Heres what i'm doing. strFilePath = "C:\" & RemoteFileName '# 'strStreamPath is the Destination of the File to be copied strStreamPath = "C:\Temp\&q


Syntax s: regarding EOF and FileExists -
Question #1: trying to read file, here's the algorithm, but the eof always returns false... does anyone know what's wrong??? Public Sub ReadTextFile() Dim i As Integer Dim j As Integer Dim stream As String Dim temp As String Dim fso, f, Msg Dim num


capturing an dumping video streaming via http -
Hi all. I'm new to Visual basic .net 2005 beta 2 so excuse me if my question is too simple for you. I need to create an application that connects via http to a local video server (it has a local private IP address) and then shows a live video stream. Moreover I want to let the


[2005] PictureBox Image to System.IO.Stream -
I'm trying to take the image from a PictureBox and use it as a texture on a 3D Object in DirectX 9. For whatever insane reason, Microsoft has deemed that you cannot create a texture from a System.Drawing.Bitmap object, but you CAN create a texture from a bitmap file?! It's seems pre


reading a text file into a memory stream -
I have this text file that contains data that I need to read into my application. What I want to do is when the form that uses this data loads, I want to open the textfile and stream the entire contents into a memory stream. This is so I can work with it as if it was the open file, but


Save System.IO.Stream to binary file -
This is a really silly question, but if I have a System.IO.Stream object and want to save it to a binary file, how can I proceed? I got the stream object from a 3rd party grid exporter. I think im getting tired now lol.... /Henrik


How to use a stream to read fully from a server -
I need to receive the byte as a whole from server. The data will be very long as is a picture data in byte array. How to write the file in to a stream and how to read a file from a stream instead ? Example with code is very appreciated. thanks.


A unit test for a method that takes a Stream -
How would you write a unit test for a method that accepts a file stream and returns a byte array? Or a method that takes a file stream (of an image) and resizes it? Does the unit test project need to have a dummy file always-at-hand for this (that's what I'm doing right no)? I someh


Stream Reader/ Stream Writer -
Hello all, I am new to the fam, I have been researching for 2days now trying to find a resolution. I have a text file that I want to read then write some of the contents to another text file. The problem is, there is some repeating data in that file that I want to strip away. Is this


read http output stream -
Hi is this possible? A winform gets a stream from a url of a webform that returns a stream using response.binary write? If yes, what should I use? Thanks! Jewel


rich edit control & streams -
hi. i'm trying for reasons that are a tad obscure to get info from a database BLOB into a rich edit, i can get a stream of data out of the db fine (works with images perfectly) but for text it not working... the stream loads fine, and can be dropped to a temp file, and *that* loaded


Stream or MemoryStream -
I'm pulling a file down from the web, converting it to an XML document and sending the XML to a stored procedure that writes the data to an SQL Server table. My question is this: I want to send a stream of XML to the stored procedure. Should I use a Stream or MemoryStream? Dim Xm


[2005] HTTP GET Method to a website with Cookie header -
I am trying to access a website using vb.net. I need to change a couple of headers (mainly the Cookie header). Then I need to get all the HTML contents of the page into one HTML file. How do I go about doing this? I've had problems making it work with HttpWebResponse and using a st


VB.Net 2005 and DirectX 9.0c - Geometry instancing -
Can somebody post some code showing how to use Geometry instancing in VB.Net? I understand the "graphic stream" part but keep tripping over the "instancing stream" Say I've got a mesh and an array ov vector3's that holds all the positions/scalings/etc.. How do


reading and writing to a text file -
Can any one help I want to save variable values to a comma seperated txt file but I do not know how to use the file system. I tried using a code sample one of you gave me be it came up withso many error messages I gave up. It would not recognize this for example Dim sr As stream ' the