By default you cannot access a file that is uploaded until it has been fully transferred to the server.
What is the best way to get round this and be able to access the 'byte stream' as the file upload is in progress?
I'm starting a blog with a hosted wordpress instance and i would like to be able to stream music using a flash player on some posts.
The problem is that every player i find uses a simple param to get the file url which makes it very easy for someone to find that url and just download the file.
A server side solution can be implemented as i have full access to the server.
I am able to stream a video from a URL, but I can't quite figure out how to generate thumbnail images of this streaming video at a certain time increment and allow the viewer to skip ahead by touching the thumbnails. I would also need to be able to display the thumbnails when the screen is touched during the video. Any help would be greatly appreciated
I am using a URLConnection class - I want to be able to grab a stream to a given URL even if said URL is unavailable (ie cache the last known cope of the content on a URL, to some local file system dir) - now I have written this code a few times (never happy with it) and was wondering if there is something better out there that might be able to do this.
can i import and show the content of an existing svg file with the gwt-graphics library? or exist a possibility to do this?
ps: i don't have the svg file but i recive the code in a stream
I'm reading some MPEG Transport Stream protocol over UDP and it has some funky bitfields in it (length 13 for example). I'm using the "struct" library to do the broad unpacking, but is there a simple way to say "Grab the next 13 bits" rather than have to hand-tweak the bit manipulation? I'd like something like the way C does bit fields (without having to revert to C).
Suggestions?
hello everyone
i have a series of PDF byte arrays in a arraylist files that i wish to concatenate into one file,
currently when the PDF application trys to open the file is it corrupted:
foreach (byte[] array in files)
{
using (Stream s = new MemoryStream(downloadbytes))
{
s.Write(array, 0, array.Length);
}
}
downloadbytes is the resultant concatenated array of bytes below is another implementation which also failed
foreach (byte[] array in files)
{
System.Buffer.BlockCopy(array, 0, downloadbytes, offset, array.Length);
offset += array.Length;
}
any pointers?
I am calling a server method through HTTPService from client side and in response i am sending sending status code(409 for conflict) and message("your code is conflicted") from serverside on error but on client side in fault event i am getting status code 0 and message = "faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:"
I want to know how to get the actual status code and message in fault event.
Hi,
I know how to keep a connection indifinetely open server side to stream continuously data to javascript.
BUT
I do not know how to send data reusing the same TCP from browser to server.
so there is not the 3 way handshake and only 2 tcp packets.
I know it is possible but I do not how to do it : use xmlhttprequest? or script tag ajax ?
can you tell me how to do it.
thank you very much
How to make VLC play .vlm config file in "With no interface mode" on windows?
So I have .vlm config file that should stream audio from mic to localhost so no vlc ui needed. If I say to windows "play .vlm file with vlc" it plays correctly starts server where I need and streams data. but how to do such thing manulay from cmd (so we suppouse we can call vlc.exe by vlc and we are now in folder with vlc.exe and vlcConfig.vlm file)
I'm starting a blog with a hosted wordpress instance and i would like to be able to stream music using a flash player on some posts.
The problem is that every player i find uses a simple param to get the file url which makes it very easy for someone to find that url and just download the file.
I know that it's probably impossible to prevent this all together, but i at least don't want it to be obvious.
A server side solution can be implemented as i have full access to the server.
Is it possible to control the standard streams of C++ code in python? So the code is wrapped with SWIG and then exposed to python where I call its functions.
I am getting all kinds of unwanted messages coming from C++ code and I want to suppress them either by not using the stream or by redirecting it to a bit bucket.
Hi
My zend framework render function returns:
Warning: include(C:\wamp\www\cms\application\modules\default\views\scripts) [function.include]: failed to open stream: Permission denied...
It's being called in a postDispatch function on the controller, but that doesn't matter as no matter where i put it, it fails.
Any ideas? My view and layout are started in the bootstrap. Thanks
Hello,
I have created a program that write video stream to a named pipe on windows, using Visual Studio C++ 2008 . how to be sequre that no one exept programms on this computer can acsess this pipe?
npipe = CreateNamedPipe("\\\\.\\pipe\\TestChannel", PIPE_ACCESS_DUPLEX, PIPE_TYPE_MESSAGE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES , 1024, 1024,5000,NULL);
I use to write code like this:
void fun(char *buff, unsigned size)
{
std::strstream str(buff, size);
str << "hello world: " << 5;
}
so I can use stream output over an arbitrary buffer. I've found this technique both efficient (no allocations) and useful (streams!). Now that std::strstream is deprecated, how can I get the same speed+flexibility that I can get with this code?
Hi
I am Serialing an object using
GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("string1",subobject1);
info.AddValue("string2",subobject2);
}
what will be stored in stream? do the strings also store?
Hi all,
Boost serialization doc's assert that the way to serialize/deserialize items is using a binary/text archive with a stream on the underlying structure. This works fine if I wan't to use the serialized data as an std::string, but my intention is to convert it directly to a char* buffer. How can I achieve this without creating a temporary string?
Hi,
From my asp application, i am trying to open a csv file onto ie8. The same code is working fine on ie6 although. Below is the code:
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath
ContentType = "application/msexcel"
Response.AddHeader "Content-Disposition", "attachment; filename=" & strFileName
Response.AddHeader "Content-Length", strFileSize
Response.Charset = "UTF-8"
Response.ContentType = ContentType
Response.BinaryWrite objStream.Read
Response.Flush
objStream.Close
Please help me undestand where i am going wrong.
Hi,
What exactly are the uses of '-' in bash? I know they can be used for
1. cd - # to take you to the old 'present working directory'
2. some stream generating command | vim - # somehow vim gets the text.
My question is what exactly is - in bash? In what other contexts can I use it?
Regards
Arun
I basically want to debug a cgi programm with gdb by emulating the environment variables and stdin stream.
How do I set the variables and stdin?
I am using lampp and gdb.
Thanks!
Im trying to download and save a file from a HttpWebResponse but im having problems saving the file (other than Text Files) properly.
I think its something to do with this part:
byte[] byteArray = Encoding.UTF8.GetBytes(http.Response.Content);
MemoryStream stream = new MemoryStream(byteArray);
Text Files work fine with the above code but when I try to save the Content to an Image file it gets corrupted.
How do i write this 'string' data to an image file (and other binary files)
Hello.
I have a client apllication that run in very restricted area - it has no direct access to computer, where it is running. I don't want to invent another one System.Configuration system to configure my application.
But there is no method in ConfigurationManager, that allows to load configuration from string or Stream.
It seems to me that it's impossible to use a ConfigurationManager in this particular scenario, but may be (and I hope to) wrong?
I have looked online with mixed results, but is there a way to programmatically extract a zip file on the BB? Very basic my app will display different encrypted file types, and those files are delivered in a zip file. My idea was to have the user browse to the file on their SDCard, select it, and I extract what i need as a stream from the file. is this possible?
Hi,
I am trying to read bytes from a wav file and send it across to a stream but it plays slowly.
Could you please help me to know the right way of populating the byte[]?
Thanks for you help.