stream

how to stream my webcam live to my mobile phone

i need to find a way to stream using my usb webcam and be able to view the live stream on my mobile phone (blackberry) without using a program such as orb or mobiscope any help would be great thanks ...

For what purpose they are using flush() in Java?

In Java, flush() method is using in streams. But I dont understand what are all the purpose of using this method? fin.flush(); tell me some suggestions. ...

Reading EML files from Windows SMTP service. Any reason not to use StreamReader?

I'm going to be reading and parsing the EML files dropped by the Microsoft SMTP service. I am a newbie to using the various stream classes. The implementation I have seen that parses these files uses a variation on System.IO.Stream to read byte by byte. However, it seems like these files should never be anything but text. Wouldn't it...

MemoryStream mangles my XML? "hexadecimal value 0x0 is illegal in XML documents."

I am really a newbie with streams, so I don't really know what I am doing here. :) I have a XElement containing XML. I want it to return it as a file to the user. XElement xml = IndicesXMLGenerator.XML(); //Code for creating a memorystream for returning to browser as file MemoryStream stream = new MemoryStream(); XmlTextWrite...

HTTP stream server: threads?

I already wrote here about the http chat server I want to create: http://stackoverflow.com/questions/2352220/alternative-http-port This http server should stream text to every user in the same chat room on the website. The browser will stay connected and wait for further html code. (yes that works, the browser won't reject the connection...

Closing streams, always necessary? .net

Is it always necessary to close streams or, because .net is managed code, will it be closed automatically as soon as it drops out of scope (assuming there are no exceptions raised). Illustrated: static string SerialiseObjectToBase64(object obj) { var mstream = new MemoryStream(); ... return Convert.ToBase64String(mstream.To...

Adding byte to the recordset works, adding same to a stream does not

A file is submitted, that file is put into a blob in a database (.AppendChunk), and that file should also emailed. What I want to do is: File is parsed from the form data into a variable (done). Variable is inserted into database (rs(key).AppendChunk var) (done). That variable is attached to an email (failing). However, if I read back w...

streaming flvs without streaming server

Hello and thank you, I would like help setting up a streaming flv(300megs) several on the server(linux) This not a streaming server. please see site www.westafricanmovie.com note the test downloads(streams) the customer does not want movie downloadable(or saved to the harddrive) must play from web page? You can see the testmovies that ar...

Turning a remote file into an input stream over HTTP in Java

Hi. I have the URL of a text file and I want my Java program to read that text file. But the plot thickens! The file is constantly being appended with new lines and I want to read these lines as they come in. I think the right approach is to open a URLConnection to the URL of the file and somehow put that URLConnection under the 'supe...

C++ stream operator question

Hi all, I suppose this might be simple question for all the gurus here but I somehow couldn't figure out the answer. I want to be able to write csv cells to stream as simple as this: stream << 1 << 2 << "Tom" << std::endl; which would create output like 1,2,Tom. How can I achieve that? I figured that I need to create custom streambu...

How to pass variables as stdin into command line from PHP

I am trying to write a PHP script that uses the pdftk app to merge an XFDF with a PDF form and output the merged PDF to the user. According to the pdftk documentation, I can pass the form data in via stdin and have the PDF output to the stdout stream. The normal, file-not-stream way to use pdftk from the command line is: pdftk blankform...

Taking too long to load a page with HttpWebResponse.

I'm trying to access information on a webpage. First time I've done this. The problem with this is that it is too slow. Doing this only on one page, that loads very fast on a browser, but takes forever here. Only thing I need here is the HTML behind the page, so I got to ask, is my code in some way downloading the images? Any help would ...

Best practices for streaming response of WCF webservice

I'm trying to pull a large amount of data out of a WCF web service. The request is fairly small and the response message will be very big. Currently the web service is throwing SystemOutOfMemory exceptions due a limitation on IIS6 for the memory it can allocated (~1.4GB). I have read in some blogs that implementing streaming will so...

Stream data into a file in a linux device driver

I am rather new to Linux device driver programmring, but for debugging purposes, I would like to write a stream of data directly to a file. Or maybe I should aks the question differently: I have a system-on-chip, where one module provides a data stream. The module has to be initlized with a write address. Instead of writing the data int...

How to get HTML with “JavaScript enabled”?

I would like to get the HTML code from a page with PHP. So I do this: $url = 'http://en.wikipedia.org/wiki/New_York_City'; $html = file_get_html($url); The problem is, Wikipedia doesn't send the <script> tag to the PHP request, so it doesn't show the JavaScript. I guess that's because Wikipedia sees that the "requester" doesn't have J...

How do you obtain modified date from a remote file (Java)?

I've a function to download a file from a remote URL (using Java). Now I want to know the real modified date, because when I download it I lost this info. Thanks in advance. public void downloadFile(String remoteFile, String localFile) throws IOException { BufferedInputStream in; try { URL url = new URL(remoteFil...

Delphi: How to use TJvRichEdit to load or save text and images (not just .bmp) to file or firebird blob field?

Regarding TJvRichEdit and Delphi... How? Load/Save rtf (including text and images - not only .bmp) to/from a file? Read/Write rtf (including text and images - not only .bmp) to/from Firebird blob field? Automatically convert screendump pasted from clipboard (Ctrl-V) into .jpg format before it is inserted into the TJvRichEdit rtf? Gui...

Is there a way to stream audio from MIC and play that stream in Silverlight

So I want to stream the audio from a mic using NAudio and then pass that stream to WCF which a Siverlight app can consume to broadcast the live audio sound. I want the latency to be as low as possible. Any suggestions or if some one has already done it please point the source. Thanks in advance ...

Rate limiting a ruby file stream

I am working on a project which involves uploading flash video files to a S3 bucket from a number of geographically distributed nodes. The video files are about 2-3mb each, and we are only sending one file (per node) every ten minutes, however the bandwidth we consume needs to be rate limited to ~20k/s, as these nodes are delivering str...

C++: Is there any good way to read/write without specifically stating character type in function names? (cout vs wcout, etc)

I'm having a problem getting a program to read from a file based on a template, for example: bool parse(basic_ifstream<T> &file) { T ch; locale loc = file.getloc(); basic_string<T> buf; file.unsetf(ios_base::skipws); if (file.is_open()) { while (file >> ch) { if(isalnum(ch, loc)) ...