stream

How to redirect a live data stream adding to it another header and returning it on demand? (PHP)

I have a url like http://localhost:8020/stream.flv On request to my php sctipt I want to return (be something like a proxy) all data I can get from that URL (so I mean my php code should get data from that url and give it to user) and my header and my beginning of file. So I have my header and some data I want to write in the beginning...

how to set the permission to a user for stream publishing in facebook?

Hi, I would like to post the stream from my website to facebook user wall by using facebook API.. I have created the facebook application posted the stream by application admin .. passed the parameter which required to this function.. $this->facebook->api_client->stream_publish($comments,'From:blinkbee.com',$action_link,$f_user_id,$...

NHibernate - Stream large result sets?

Hi, I have to read in a large record set, process it, then write it out to a flat file. The large result set comes from a Stored Proc in SQL 2000. I currently have: var results = session.CreateSQLQuery("exec usp_SalesExtract").List(); I would like to be able to read the result set row by row, to reduce the memory foot print Thanks ...

Return multiple values with stream

Hi, I have method: var listOfFiles=service .GetFiles(pathsOfFiles.ToArray(); service is my wcf service with streaming ,and I want to have method on this service like : public List<Stream, file> GetFiles(string[] paths) { List<Stream, file> files =new List<Stream, file> foreach(string path in pathsOfFiles) { files.add(path, new File...

Search the public stream in Facebook

Hi, Is there any change i can search for anything in the Open Stream in Facebook? Let´s say that i want to look for "obama", this will return all of the obama mentions for a bunch of people in their streams, so far I haven't found anything like this, probably only looking in one user stream, but not the whole stuff. So, i haven't foun...

How to play stream audio in iPhone/iPad

Hi, I want to play sounds from an internet server in my own program. But the sample codes Apple supplied concerned about sound play are all open an audio file, and then play it. I want to know how can I play PCM data from memory, which received from internet continuously. Either OpenAL or AudioQueue is OK. Thanks. ...

How to send Sound Stream of a file from disk over network using FMOD?

Hey everyone, i'm currently working on a project in college. my application should do some things with audio files from my computer. i'm using FMOD as sound library. the problem i have is, that i dont know how to access the data of a soundfile (wich was opened and startet using the FMOD methods) to stream it over network for playback o...

I get error when trying to write response stream to a file

I am trying to test a rest webservice but when I do a post and try to retreive the save the response stream to a file I get an exception saying "Stream was not readable." What am I doing wrong? Public Sub PostAndRead() Dim flReader As FileStream = New FileStream("~\testRequest.xml", FileMode.Open, FileAccess.Read) Dim flWriter A...

how i can open different linux terminal to output differnt kinds of debug information in python?

Hi All, I need output different information to different terminal instances instead of print them in same output stream, say std.err or std.out. for example: I have 5 kinds of information say A-E need to be displayed on different terminal windows on same desktop, looks like [terminal 1] <- for displaying information A [terminal 2] ...

About redirected stdout in System.Diagnostics.Process

I've been recently working on a program that convert flac files to mp3 in C# using flac.exe and lame.exe, here are the code that do the job: ProcessStartInfo piFlac = new ProcessStartInfo( "flac.exe" ); piFlac.CreateNoWindow = true; piFlac.UseShellExecute = false; piFlac.RedirectStandardOutput = true; piFlac.Arguments = string.Format( f...

Something about Stream

I've been working on something that make use of streams and I found myself not clear about some stream concepts( you can also view another question posted by me at http://stackoverflow.com/questions/2933923/about-redirected-stdout-in-system-diagnostics-process ). 1.how do you indicate that you have finished writing a stream, writing som...

asp.net webbrowser file download

Hi, I have a webbrowser in my windows form application. I navigate a page and after document completed i click "download" button with javascript. cleary ; wb.Document.GetElementById("btnDownload").InvokeMember("click"); then save file dialog shows up. But I need to get this file as stream. thanks. ...

How to Get a Webpage's contents without CURL ?

I need to get webpage's content ,I cant use Curl as it is not enabled.I tried the below code But it is not working. $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: foo=bar\r\n" ) ); $context = stream_context_create($opts); $fp = fopen($_GET['url'], 'r', false, ...

Recursive stream throws StackOverflowError

I am defining a stream in terms of itself (a recursive definition). When trying to access the second element of the stream, StackOverflowError is thrown. The code from scala console: scala> val s1 = Stream.iterate(1)(identity _) s1: scala.collection.immutable.Stream[Int] = Stream(1, ?) scala> lazy val s2 : Stream[Int]= Stream.cons(1, (...

Stream a continously growing file over tcp/ip

Hello, I have a project I'm working on, where a piece of Hardware is producing output that is continuously being written into a textfile. What I need to do is to stream that file as it's being written over a simple tcp/ip connection. I'm currently trying to that through simple netcat, but netcat only sends the part of the file that is ...

Is it possible to catch media stream URL of flash player using NPAPI functions ?

Hi guys. I'm trying to make a video download panel for Chrome likes Real Player's one ( a DLL plugin ).. My question is : "Is it possible to use NPAPI funtions such as NPP_NewStream, NPP_StreamAsFile, NPP_DestroyStream... to catch the media stream URL of flash-player ? " If not, then what part of NPAPI do I have to use ? Thanks.. ...

Deriving from streambuf without rewriting a corresponding stream

Hello, Some days ago, I decided that it would be fun to write a streambuf subclass that would use mmap and read-ahead. I looked at how my STL (SGI) implemented filebuf and realized that basic_filebuf contains a FILE*. So inheriting from basic_filebuf is out of the question. So I inherited from basic_streambuf. Then i wanted to bind my ...

Copying a large stream to String - Java

I am writing a StringOutputStream class in Java because I need the pre-Base64-encoded data from an OutputStream to go to a String. I need this as a String because I am going to be putting it into a W3C XML Document. Everything would be fine, but I'm dealing with (relatively) large objects. The resulting object turns out to be about 25 M...

AAC header and other info in IPhone

Hello Everyone, I'm building an IPhone Application that records sound. I'm using Audio Queue Services, and everything works great for recording. The thing is, I'm using AudioFileWritePackets for file writing, and I'm trying to put the same "AAC + ADTS" packets to a network socket. The resulting file is different since some "headers...

Pass object from webserver to client

I developed a C# web application that calls a web-service which returns a base64 encoded array (PDF file). I then convert that array into a UCOMIStream object (I know it is obsolete, but the DLL that I am using requires it as a parameter). I use the following code to do the conversion which works perfectly. I can pass this object to t...