Put Sound Bytes On A Webpage?
Sep 15, 2010I am using Visual Web Developer 2008 Express with C#. How do I put sound bytes on a Web page?
View 4 RepliesI am using Visual Web Developer 2008 Express with C#. How do I put sound bytes on a Web page?
View 4 Replieshow to convert a image path into bytes to store in database in asp.net.
View 2 RepliesIn my program, I need update a filed to the database. The field is for a pdf file content. I know, maybe I should save the pdf file to the local file system, and save the file path to the SQL. but, right now, it is the file content saved to the SQL.
from my program, it loads the file which is input by user. I use File.ReadAllBytes. Then, run the stored procedure on the SQL server, and use the bytes[] as parameter, to insert the file to the SQL. it works fine when file size is small. However, as file size becomes larger, say 200MB, sometimes, it pops out of memory exception.
So, I'm thinking, maybe I can load parts of the file, say 1MB a time, then update the database, then loop. so, this way, no matter how large the file is, it should not have any problem.
my question is: is there a standard way to do this? so, I should not save file content to the SQL at all? shoudl save file in file system, save the file path to sql only? or there are other way to deal with this?
I use to store client Images in DB in bytes, the problem is how can I render that image on .aspx page
View 2 RepliesJust 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.
I have a bytes of data. Eg : 1024 bytes. And in that, say "Name Age Occupation" etc. All are only values. I have another skeleton xml which will have the <Name/><Age/> etc.
I need to loop through the bytes, say first 5 bytes is Name, Next 2 bytes is Age etc and fill up in this XML. I'll have 1000s of records and so need to know which way is the fastest.
Will the code be fastest or is there any way i can do by XSLT or similar component?
How can I pass the content of a File to a array of bytes?
View 3 RepliesI need to find a way to accurately calculate the byte size of the text inside a particular textarea. I am working in .Net so I have access to those libraries, but I'd prefer a Javascript solution. How many bytes is each character worth? What would be the most efficient way to count and multiply? Or am I missing a better way entirely?
Edit: I'm attempting to determine the download size of a piece of Javascript that has been pasted into a textarea. The closest thing I could find to this is ][URL]. I don't want to just lift their code, especially since I don't fully understand it.
i declared byte array in my function
Try
Dim bytes As Byte() = New Byte() {}
If Not fupload1.PostedFile Is Nothing Then
Dim myfile As HttpPostedFile = Me.fupload1.PostedFile
' Get size of uploaded file
'here how to allocate bytes array variable already declared
I have a database which signature images. Images are saved in binary.
I want to retrieve the image and display in an image control. I am kinda new to ASP and what seemed so simple has suddenly become a real problem.
The at the botom is how I would do it on a winform. Unfortunately I have no picturebox control in .asp. So how do I get the image stream into image1.imageurl?
Is there a way to put the stream into a session variable and then point to that as a url?
for instance replacing the last line below with this and then pointo to it from image1.imageurl?
[Code]....
Using the FileUpload Control, I know I can get the size of a file using: PostedFile.ContentLength. Using VB, is there a way to show Bytes being loaded in Real Time? In other words, if 1000 bytes has already been loading, a Label will show 1000, when 4263 bytes has been loaded a Label shows 4263, etc.
View 2 RepliesIs there a way to record sound from the user and save it on the server in ASP.Net 2.0 or greater?
View 2 RepliesI need to serve MP3 content that is generated dynamically during the request. My clients (podcatchers I can't configure) are timing out before I'm able to generate the first byte of the response data.
Is there a way to send fodder/throwAway data while I'm generating the real data, to prevent/avoid the timeout, but in a way that allows me to instruct the client to ignore/discard the fodder data once I'm ready to start sending the "real" data?
I have ap age I wrote that is a dashboard, so I have the whole page refresh itself rather frequently so the data doesn't get stale. The guys in our dispatch though who are using have lot's of audible alerts, so they keep their volumes way up, and even if it is in the background, the page makes a noise every time it refreshes, and it is driving some of them nuts I guess.
View 1 RepliesI want build an application on web which records the audio sound through Mic.
also if you can suggest some third party control which is free.
The technology for Implementation - ASP.NET , C#
i have a control that shows me Messages. it sits in an update panel and constantly polls the server for new messages. This is accessed by multiple users.. My problem is that i need to be able to play a sound when new messages are found.. i have been able to "sorta" do this using soundplayer.. every time it polls it is checking timestamps to determine if a message was added in the last x seconds.. if so.. ding.. that works great.. UNTIL you put it out on the server.. from what i gather.. that will only dingat the server.. (great for the server room... not so much for the users).. i have been googling for hours now.. it seems theres 3.4 billion answers for stuff i don't think im looking for.. but i can't seem to find anything that really does this. I need the Code behind to cause the playing of the sound.. and for all users..
View 4 RepliesI have a gridview with a Download button that serves a download to a user. I put it in App_Data so its secure so people can't try to download it. However, when I use this code, the save as dialog box pops up, and when i hit save as, the file immediately finishes loading - and it's just 0 bytes. The file is 5 Megabytes.
[Code]....
how to play wave sound and video by asp.net c#
View 2 RepliesIs there any good way of playing a sound when clicking a button on my web page?? It works great on my local mashine but won't work on the server! I don't want any windows media player or any other window to pop up! Just to play a wav sound!
This is the code that works on my local mashine!
[Code]....
i have tryed belowe code to play sound file and it has working perfectly when i run it in debug mode but after i host it is not working
using IIS 6 and VS 2008
[Code]....
1) user A inputs some data into webpage "a.aspx". When he clicks save button, data is insert into table A and table B.
2) another user B is accessing webpage "b.aspx" or could be away from his desk. To inform user B that he has new incoming data (upon insert into table B from step 1), I was thinking to play a sound to get user B attention that he has new incoming data.
Can I achieve this (play sound) in coding (without interfering with what user B is currently doing)?
Im trying to get started this web site and im having trouble wrapping my head around one of the requirements.
If permission is given then by the user browsiong the site then i need to access their webcam and microphone.
Im thinking this could be done with an activex component but if its already been done then why reinvent the wheel right?
I m using vs2005 & sql2005 I hv a database shown in gridview, wen I select a name (from dropdown of employees) from one of the column in gridview, a mail should go to respective employee with a feature THAT BEEPS INTO HIS SYSTEM 2WICE A DAY AT 2 PARTICULAR TIMES.
View 9 RepliesI have tried the SoundPlayer class in ASP.NET used to give alert when it reachs threshold (value has been set).
When i directly complied from VS2008 its working mean it gives alert sound. But while i open browser the type "localhost/website/default.aspx" in the address bar its not playing (any sound).
My code is here
SoundPlayer objSoundplayer = new SoundPlayer(path);
objSoundplayer.LoadAsync();
objSoundplayer.Play();
objSoundplayer.PlayLooping();
Working with portnumber : localhost:55678/website/default.aspx
Not Working: localhost/website/default.aspx
What worng in this code or need to inculde some more properites.
how to play .mp3 sound in page load?as background music.
View 1 Replies