473,786 Members | 2,866 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Downloading and playing video with out asking where to download

Hi,
I want to add a video link on web form. Up on clicking this link what I want
is that first downloading video automatically without asking where to
download, then play the downloaded video. I dont want any user interaction
except clicking the link. Also I dont want http steaming.
Only download and play...

thanks
Nov 18 '05 #1
4 1489
serkan ulucan a écrit :
Hi,
I want to add a video link on web form. Up on clicking this link what I want
is that first downloading video automatically without asking where to
download, then play the downloaded video. I dont want any user interaction
except clicking the link. Also I dont want http steaming.
Only download and play...

thanks


Upload it on the temporary internet files...

string path = Environment.Get EnvironmentVari able("TEMP") + "\\" +
File.Filename;

--
Smirnoff Ice

Nov 18 '05 #2
Can you give mor detail

"Smirnoff" <fs****@activeu p.com> wrote in message
news:me******** *************** ********@active up.com...
serkan ulucan a écrit :
Hi,
I want to add a video link on web form. Up on clicking this link what I want is that first downloading video automatically without asking where to
download, then play the downloaded video. I dont want any user interaction except clicking the link. Also I dont want http steaming.
Only download and play...

thanks


Upload it on the temporary internet files...

string path = Environment.Get EnvironmentVari able("TEMP") + "\\" +
File.Filename;

--
Smirnoff Ice

Nov 18 '05 #3
serkan ulucan a formulé ce lundi :
Can you give mor detail

string path = Environment.Get EnvironmentVari able("TEMP") + "\\" +
File.Filename;


path = the Directory where u can upload yhe file on the user computer

u can know this variable
Environment.Get EnvironmentVari able("TEMP")
do= start=>run=>cmd (win2k or xp) or (dosprmpt on 98se)
and hit "SET"
you will see somethign like that, that's the variable on the OS
..
..
..
SystemDrive=C:
SystemRoot=C:\W INDOWS
TEMP=C:\DOCUME~ 1\FSimon\LOCALS ~1\Temp
TMP=C:\DOCUME~1 \FSimon\LOCALS~ 1\Temp
..
..
..
So Environment.Get EnvironmentVari able("TEMP") =>
TEMP=C:\DOCUME~ 1\FSimon\LOCALS ~1\Temp
add the "\\" + File.Filename and the path where u can upload is

path => C:\DOCUME~1\FSi mon\LOCALS~1\Te mp\myfile.tmp for exemple.

Is it ok?

--
Smirnoff Ice

Nov 18 '05 #4
serkan ulucan a formulé ce lundi :
Can you give mor detail

string path = Environment.Get EnvironmentVari able("TEMP") + "\\" +
File.Filename;


path = the Directory where u can upload yhe file on the user computer

u can know this variable
Environment.Get EnvironmentVari able("TEMP")
do= start=>run=>cmd (win2k or xp) or (dosprmpt on 98se)
and hit "SET"
you will see somethign like that, that's the variable on the OS
..
..
..
SystemDrive=C:
SystemRoot=C:\W INDOWS
TEMP=C:\DOCUME~ 1\FSimon\LOCALS ~1\Temp
TMP=C:\DOCUME~1 \FSimon\LOCALS~ 1\Temp
..
..
..
So Environment.Get EnvironmentVari able("TEMP") =>
TEMP=C:\DOCUME~ 1\FSimon\LOCALS ~1\Temp
add the "\\" + File.Filename and the path where u can upload is

path => C:\DOCUME~1\FSi mon\LOCALS~1\Te mp\myfile.tmp for exemple.

Is it ok?

--
Smirnoff Ice

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4823
by: Steve | last post by:
hello all im looking to make a download script as i cannot use the .htaccess to control directory access to files as im using a php login system using mysql and sessions. i have been playing about with fopen and fpassthru but having a few problems making the file download. The files involved would mainly be but not limited to .pdfs, .docs and .zips
3
287
by: serkan ulucan | last post by:
Hi, I want to add a video link on web form. Up on clicking this link what I want is that first downloading video automatically without asking where to download, then play the downloaded video. I dont want any user interaction except clicking the link. Also I dont want http steaming. Only download and play... thanks
3
1409
by: ACaunter | last post by:
Hi all, I was wondering if there was a way a client's machine could play audio or view a word document which is stored on the server, without having them download it first. This will be done over the web with an asp.net application. -- AdamPC@hotmail.com
14
2354
by: askMe | last post by:
I developed a web page that plays an mpg using the simple embed tag. When the page loads, the video starts, but then stops after a few seconds. I use the embed tag because I want the user's default player to kick in. What might be causing the video to start then stop? Thanks. http://www.askblax.com
3
1606
by: shil | last post by:
Users can view mpeg movies from my website. When users who don't have DSL, it takes longer time to launch windows media player and play the movie. There is no indication to the users that file download is going on. To them it appears hung. Is there any way to show progress bar on the page while file is downloading in the background? My code is:
1
3313
by: majestik | last post by:
Question, can I see an event in Javascript that tells me a video starts playing using the <embed src="file.wmv>. I stream the video, but there is a wait time and wanted to pop up a message telling the user it is buffering until the video actually begins to play in the browser. Thanks for any help! JJ
1
1303
by: Uday | last post by:
Hi Everybody, I am building a website in Asp.Net 1.1. I need to play a video file in the site. How to do this. Please help me out. Thanks in Advance Uday Mandava
7
1878
Nert
by: Nert | last post by:
hi, I have made a simple website that allows users to upload videos. The videos are automatically converted into flv using the ffmpeg. I'm executing the ffmpeg using the PHP function exec(). My problem is after everything is done, i mean after uploading and converting the video to flv my "upload.php" page always asking for downloading which i don't what to do. Anyone could help me? Any suggestions from you guys would be greatly...
0
1795
by: jannyguy | last post by:
Hi, I have a web application running on an apache server. It has a download link for downloading a file. My requirement is to download this file without asking the user where to download. This file is kind of an executable. I also want this file to execute after download. This executable will generate some binary files. After the creation, I want these files to be uploaded back to the server. All this should happen on a single click on...
1
3536
by: shahidrasul | last post by:
i want to download a file which user select from gridview, downloading is completing without problem but after download i want to refresh my page because i do some changes in db . but when refresh.redirect() occure it give me error that can't redirect because headers have been sent following are my code to download file
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6748
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.