Data Controls :: Playing Audio Files Using Path Stored In Database?
Jun 25, 2012how to play an audio file on my website using The Song Path stored in the database
View 1 Replieshow to play an audio file on my website using The Song Path stored in the database
View 1 RepliesI am developing audio related project for that i have stored movie names with mp3 file paths in database I am displaying movie names in grid view after clicking on movie name related mp3 file paths will be display in details view i am unable to play that files in details view how to do this ? Here i am storing original mp3 files in one folder in solution explorer and paths in database
View 1 Repliesi wanna play and download song from database but only path of song is stord in database so how to do this and i don't wanna use id of song i wanna select song by column name (ASP.NET)(SQL server)
View 1 RepliesI have a DB in which I store Video File Path. Now I want to show that video on my ASP page. especially demo with FlowPlayer.
View 1 Repliesi need to embedd a video player on web form, that will be able to play almost every ormost of the known video/audio formats....(mpeg, flv, avi, 3gpp, wmv, wma)..i need only a single player.....to be embedded....and it shuld not use the pc's local players..
View 6 RepliesI want use flowplayer to play my flv video file. I have a datalist like below :
<asp:DataList ID="frmViedo" runat="server">
<ItemTemplate>
<div class="flowplayer"> <video>
<source type="video/flv" src='<%# Eval("Vurl" , "~/Videos/Video/{0}") %>'>
</video></div>
</ItemTemplate></asp:DataList>
In code behind :
if (Request.QueryString["vid"] != null) {
frmViedo.DataSource = video.GetVideoById(Convert.ToInt32(Request.QueryString["vid"]));
frmViedo.DataBind();
} public OleDbDataReader GetVideoById(int id) {
string strSelect = "select * from Video where VID = @VID";
return ExecuteReader(CommandType.Text, strSelect, new OleDbParameter[]{
new OleDbParameter("@VID" , id),
}); }
But it don't work and i get this error :
Adobe Flash is disabled for this page, click player area to enable. Why?
i want to play a sound file using following code in my aspx page
<asp:Button ID="btnPlay" runat="server" Text="Play" />
<script type="text/javascript">
function EvalSound(soundobj) {
var thissound = document.getElementById(soundobj);
thissound.Play();
}
</script>
<embed src="doorbell-1.wav" autostart="false" width="1" height="1" id="sound1" enablejavascript="true" >
</embed>
and then calls following code on my aspx.vb code page on page_load
btnPlay.Attributes.Add("onclick", "return EvalSound('sound1');")
but dinot hear any sound
where if i use html button instead it works fine like this
<input type="button" id="btnPlay" onclick="EvalSound('sound1');"/>
I have images saved in database, now I want to this images fetch from database and save into zipfile and return to the user for download in mvc4? How do that functionality.
View 1 RepliesI am a Bigner in asp.net c# learning. How can i create a new folder in server from my c# program. in my semester asp.net project, i want to upload video/audio files into my own newly created folder and the storing folder's name must be given by me, which means each time folder name may change during uploading time. and how can i give a picture link to that vodeo files containing in different folders and how can i play that files in the browser using a player.
View 1 Repliesalong with a gridview update file that I store in my database
View 1 Repliesi want to display image which is stored in some folder and its path is stored in database table. i used your link [URL] for the same but i am not storing any thing like data column in my table and have passed name column to Byte[]and so its giving datatype error there. what is the way to convert it to byte?
View 1 Repliesi want to display image which is stored in some folder and its path is stored in database table. i used your link URL... for the same but i am not storing any thing like data column in my table and have passed name column to Byte[]and so its giving datatype error there.
View 1 Replieshow to store mp3 files in database(sql server) and how to retrieve those stored songs and play in a page
View 1 RepliesHow To Save Video files into folder and save path only into database in asp.net using c#.
View 1 Repliesyour code is working fine ..but i cant see the video on the page . when place cursor at video portion i get the download option of that video ..
View 1 RepliesI am working on an ASP.NET Web application and I want it to have audio playback functionality. I can do is using directories. For example, using the ASP.NET Audio control like :- , is pretty easy and straight-forward and works accordingly. But, the trouble comes when I'm using a database and the control. I am totally new to data binding in ASP.NET. I don't like using JavaScript, but i am comfortable using it, but I would prefer C# solution (I know beggars can't be choosers).
I have a database containing only one table called tblAudio. This table has two fields only for the title of the audio file (type NVARCHAR(MAX)) and the field for the actual audio (type VAR BINARY(MAX)). I'm using Visual Studio 2010 Professional with SQL Server Express Edition. The table has a single record with the relevant data in their fields.
i have stored the images in mysql using the varchar datatype and i am storing the path of that and i want to retrive that images in the gridview of asp.net
View 1 RepliesRefer below threads: [URL] ....
I used code for reducing image size(GenerateThumbnail) in above threads my images were in datalist now I have image in my page that isn't in datalist
<asp:Image ID="Image" runat="server" CssClass="GVimg" style="Height:85px; Width:110px" />
And bind it from database
SqlCommand _cmd1 = new SqlCommand("selectFUP1", _cn);
_cmd1.CommandType = CommandType.StoredProcedure;
_cn.Open(); _cmd1.Parameters.AddWithValue("@Behcode", data);
SqlDataReader _dr = _cmd1.ExecuteReader();
while (_dr.Read()) {
image.ImageUrl = "~/image/house/product/" + _dr["Image2"].ToString();
lblerrorV.Text = " ";
}
_cn.Close();
Now I want use GenerateThumbnail code that was in threads for above code... How I can do it?
How to display images in crystal report from database am inserting address (image folder) of images into the database, not inserting images into the database...
View 1 RepliesI been trying to get a simple stored procedure called and get its returned value back to a parm. In this case I am trying the simplest one I can make to get it to work and the I can build form there. I have tried to do this about 100 times and I try try and say heck with it and do it with out using a stored procedure and move on but I would really like to figure this out. I created a stored procedure called ReqLineItemTotal. It looks like this
USE [OnBillPROD]
GO
/****** Object: StoredProcedure [dbo].[ReqLineItemTotal]
Script Date: 11/09/2010 14:08:39 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- Author: Bill Blair
-- Create date: 11-9-2010
-- Description: ReqLineItemTotal
-- ALTER PROCEDURE [dbo].[ReqLineItemTotal]
-- Add the parameters for the stored procedure here
@SessionIDNo nvarchar(50) = 0
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here select
(select SUM(dbo.TempReqDetail.Amount)
from dbo.TempReqDetail,dbo.tblReqAmountTypes
where dbo.tblReqAmountTypes.AmountType = dbo.TempReqDetail.AmountType and
dbo.tblReqAmountTypes.NumericOpperator = '+' and
dbo.TempReqDetail.SessionID = @SessionIDNo) -
(select SUM(dbo.TempReqDetail.Amount)
from dbo.TempReqDetail,dbo.tblReqAmountTypes
where dbo.tblReqAmountTypes.AmountType = dbo.TempReqDetail.AmountType and
dbo.tblReqAmountTypes.NumericOpperator = '-' and
dbo.TempReqDetail.SessionID = @SessionIDNo) AS LineItemTotal
END
From what I understand I should be getting my total back as LineItemTotal. So I want to call it pass it my parm of @SessionIDNo and have its returned value set to my @LineItemTotal parm. Trying to use these stored proc's always seems like way more work than they are worth but perhaps if I ever get the hang of it would make since to me.
I used the below link to upload video file and play it using player.In this code video file is uploaded and displaying in datalist but while play it using player i cannot see video and only audio is coming.
[URL] ....
how to read the image from excel shhet if i have foder which contain images .
so i want to dispalying image from excel shhet
.how can i do this wheather how can i assign the path of image/foder in excel shhet
I am creating a control that contains an html5 audio element and I want to be able to change the source of the audio dynamically. I can access the audio element in C# but am unable to figure out how to change the src attribute.
View 1 RepliesI have been reading this forum post: http://forums.asp.net/t/1320074.aspx.I have found that I have to have the column which contains the image path showing in the gridview, in order to reference it using e.values("columnhere"). Is there a way I can do this without the column showing? I have tried setting the visible property to'false' but it still doesn't like it.
View 1 RepliesI want to save three images path in table also upload images in folder,how it is possible?[Using ajax file upload control]table columns are imagepath1,imagepath2,imagepath3. URL....
HTML
<asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" AllowedFileTypes="jpg,jpeg,png,gif"
MaximumNumberOfFiles="3" OnUploadComplete="File_Upload"
Width="500px" />
C#
protected void File_Upload(object sender, AjaxFileUploadEventArgs e)
[code]....