I just uploaded files(doc & pdf) in my web server(with my coding). I want to stream those files when I click download link on my page.
please share any tutorials or any suggestions?
I am trying to Write an object stream into a XAML file but i end up in StackoverFlowException .
In the CallStack i could see "The maximum number of stack frames supported by Visual Studio has been exceeded"
This is the piece of code i'm trying to execute.
StreamWriter xamlStream =new StreamWriter(File.OpenWrite("a.xaml"));
string myXaml = System.Windows.Markup.XamlWriter.Save(objectInstance);
xamlStream.Write(myXaml);
Thanks ...!
Sample code:
$html = file_get_contents('http://www.google.com');
echo $html;
It works on localhost. But after uploading to the webserver, it gives me a warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution. If I replace the domain name with google's IP address, it gives a warning: failed to open stream: Connection timed out.
And ini_get("allow_url_fopen") return 1.
I'm looking for a routine that will encode a string (stream of bytes) into an arbitrary base/alphabet (like base64 encoding but I get to choose the alphabet). I've seen a few routines that do base X encoding for a number, but not for a string.
Hi, Is it possible to hide the video content of the YouTube player (only statusbar (where is play button etc.) is visible) ? Or maybe do you know other (flash) players that have the ability to stream the YouTube movies ?
And from the client side, which request type (GET or POST) is better to use, to send JSON data if I use XmlHTTPRequest?
My application use this stream of data for either retrive data form database and execute some functionality in PHP.
Hey guys
Just wondering if anyone has any idea how you can determine how many bytes of a request have been read/received by the server... In other words how do I stream http request...
In that, users are uploading files and I want to report on a perotic basis how many bytes have been read/received so far.
Just wondering if anyone has any ideas on how I might do this...
Cheers
Anthony
Is converting a file to a byte array the best way to save ANY file format to disk or database var binary column?
So if someone wants to save a .gif or .doc/.docx or .pdf file, can I just convert it to a bytearray UFT8 and save it to the db as a stream of bytes?
Compiling CUDA code with immediate (integer) operands, are they held in the instruction stream, or are they placed into memory? Specifically I'm thinking about 24 or 32 bit unsigned integer operands.
I haven't been able to find information about this in any of the CUDA documentation I've examined so far. So references to any documents on specific uarch details like this would be perfect, as I don't currently have a good model for how CUDA works at this level.
When I use ../mysqlConnect.php I get the following messages.
Warning: require_once(../mysqlConnect.php) [function.require-once]:
failed to open stream: No such file or directory in /home/content/etc...
Fatal error: require_once() [function.require]: Failed opening required
'../mysqlConnect.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/etc...
When I use the directory name - mydir/mysqlConnect.php - everything works fine.
in adobe air , I can play a mp3 file from the web , and download the file to a custom file system before or after too . but in this way I have to download the file twice factly.
So, how to save the file to a custom location when the sound is playing , and using the same download file stream for not waste any bits?
I am getting dynamic image in form of byte array. and i want to show that in webpage, preferably ImageControl
I am aware of method of creating http handler and getting image stream. but I cant do that here as logic for same is performed somewhere else.
Could not get any suitable way to do this.
Thank you in advance.
How to live stream videos from iPhone to server like Ustream or Qik? I know there's something called Http Live Streaming from Apple, but most resources I found only talks about streaming videos from server to iPhone.
Is Apple's Http Living Streaming something I should use? Or something else? Thanks.
I have an Adobe AIR application that makes multiple connections to a server. When I open more than two connections I get an error:
2032: Stream Error.
Is there a configuration option or a property somewhere to raise the limit?
It is well known that cin is not typesafe (e.g. cin integer; and entering "fifty five" will cause it to flip out). I have seen many not-so-elegant ways to hand this, such as getlining a string and using sstream to convert it to a number, or looping with cin.fail() and clearing the stream and reentering it, etc. Is there any library or anyway to overload the inserter operator to make cin automatically typesafe?
A requirement for the SIP PBX I created for my company was to record all calls passing through it. I solved it by forcing all SIP message to pass through the PBX and to modify the SDP body so the stream passes through it and gets recorded. It works well.
I recently found out that this is not allowed.
Is there any other way to implement call recording and how "wrong" is this in regard to the protocol?
This is more of a theoretical question than an actual problem I have.
If I understand correctly, the sequence number in the TCP header of a packet is the index of the first byte in the packet in the whole stream, correct? If that is the case, since the sequence number is an unsigned 32-bit integer, then what happens after more than FFFFFFFF = 4294967295 bytes are transferred? Will the sequence number wrap around, or will the sender send a SYN packet to restart at 0?
I'm trying in an asp web application to code a function that would loop through a list of files in a multiple upload form and send them one by one.
Is this something that can be done in ASP? Because I've read some posts about how to attach several files together, but saw nothing about looping through the files. I can easily imagine it in C# via HttpWebRequest or with socket, but in php, I guess there are already function designed to handle it?
// This is false/pseudo-code :)
for (int index = 0; index < number_of_files; index++)
{
postfile(file[index]);
}
And in each iteration, it should send a multipart form-data POST.
postfile(TheFileInfos) should make a POST like it:
POST /afs.aspx?fn=upload HTTP/1.1
[Header stuff]
Content-Type: multipart/form-data; boundary=----------Ef1Ef1cH2Ij5GI3ae0gL6KM7GI3GI3
[Header stuff]
------------Ef1Ef1cH2Ij5GI3ae0gL6KM7GI3GI3
Content-Disposition: form-data; name="Filename" myimage1.png
------------Ef1Ef1cH2Ij5GI3ae0gL6KM7GI3GI3
Content-Disposition: form-data; name="fileid"
58e21ede4ead43a5201206101806420000007667212251
------------Ef1Ef1cH2Ij5GI3ae0gL6KM7GI3GI3
Content-Disposition: form-data; name="Filedata"; filename="myimage1.png"
Content-Type: application/octet-stream
[Octet Stream]
[Edit]
I'll try it:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" enctype="multipart/form-data" method="post" action="processFiles.php">
<p>
<?
// start of dynamic form
$uploadNeed = $_POST['uploadNeed'];
for($x=0;$x<$uploadNeed;$x++){
?>
<input name="uploadFile<? echo $x;?>" type="file" id="uploadFile<? echo $x;?>">
</p>
<?
// end of for loop
}
?>
<p><input name="uploadNeed" type="hidden" value="<? echo $uploadNeed;?>">
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>
I just uploaded a CMSMS website, but cannot view the website. Am getting the error:
Warning:
require(/home/inkbran1/public_html/century21nigeria/lib/smarty/Smarty.class.php)
[function.require]: failed to open stream: No such file or directory
in /home/inkbran1/public_html/century21nigeria/include.php on line 153
Fatal error: require() [function.require]: Failed opening required
'/home/inkbran1/public_html/century21nigeria/lib/smarty/Smarty.class.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/inkbran1/public_html/century21nigeria/include.php on line 153
Please, what can i do? I am a PHP dummy.
Hey guys, quick question for any experts out there. I am allowing users to upload and post mp3s so other users can listen to/stream. I was wondering if anyone had any tips for reducing bandwidth, or any tips or methods for streaming mp3s. I currently just reference the location of the file with my flash mp3 player after the file has been uploaded. I would ask about images as well, but I am pretty sure they can be compressed using gzip or mod_deflate
So I have a file stream from a parent process to a child - and most of the time it works fine. However, when reading from it multiple times quickly, using fgets() will return NULL and the error is set to "resource temporarily unavailable". The problem is intermittent - and running the script that does the reads will sometimes have fgets return NULL and sometimes wont.
Could anyone help me stop this error from happening? Thanks!
Hi
I 'm developing a video streaming android application on HTC Tattoo. I 've Lighttpd server at my server side which i use to stream videos to a web site.
On Android , Do I need to enable any module in Lighttpd server?
Thanks
When a user gets to this screen, there is no way to cancel out of it. What can I do?
To get this view in the first place I am running:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
vid, @"link",
vid, @"source",
vid, @"picture",
@"My Place", @"name",
@"YouTube Presentation", @"caption",
title, @"description",
@"Enjoy this Video", @"message",
nil];
[app.facebook dialog:@"stream.publish"
andParams:params
andDelegate:self];
When i try to include a file using include_once in php which shows warning like
Warning: include_once(1) [function.include-once]: failed to open stream: No such file or directory in /var/www/test/content_box.php on line 2.Actually file is there in my directory.I am using ubuntu (OS)
How can we prevent this warning.If anybody know please help me
Hi volks,
I copied my sources from my lokal dev (everything works fine) to my repository and from there I did a checkout on my remote dev.
Now when I try to build everything I get this error:
devel:/var/www/myproject# ./symfony
doc:build-model
doctrine generating model classes
file+ /tmp/doctrine_schema_48726.yml
Warning:
file_get_contents(/var/www/myproject/lib/model/doctrine//base/BaseAdvert.class.php):
failed to open stream: No such file or
directory in
/var/www/myproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
on line 77
Do you know what the problem could be?
Thx for your answers :)