|
Hi
i wrote the code to convert any video file to flv format as below
Dim outfile As String = _mediahandler.Convert_Media(filename, _ffmpegpath, InputPath, OutputPath, "320x240", 32, 22050, True)
here i am taking the converted flv file name into outfile
my requirenment is how to save this file name into folder and how to execute it???
plzz send me the code
plz help me
its urgent for me
Thanks in advance
Haritha
|
|
|
|
|
|
How can store the audio file in the access data base
|
|
|
|
|
You can adopt the same trick as storing images in Access and SQLServer. While retrieving, ensure that you set the appropriate mimetype and stream the file to the client.
There are plenty of articles on storing images to database.
|
|
|
|
|
How can store the image file in the access data base
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
|
Environment: .NET 2005,Framework 2.0
I am manipulating a select element(asp:dropdownlist) through javascript-adding and removing elements. I am unable to get the manipulated data during postback. For workaround, I am using a hidden control(some special characters to separate the list) to track the changes. Is there any optimized way of doing this?
K.P.Kannan
|
|
|
|
|
hi all,
How to add folders dynamically into the asp.net application.
1> when ever a users creates an account 4 folders should be dynamically added into his acccount
such that what ever templates, images etc he is going to add will be added in that folders...
please help me out
santosh
|
|
|
|
|
System.IO.Directory.CreateDirectory but you will hit permission issues most likely.
But I really think you're going the wrong way with this looking at your earlier post.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
The entire problem is
1> An user is going to create an account once he creates it.. Dynamically 4 folders has to be created so tat his own images , templates, ect can be added and will be stored in that folders..
2> Again the user is also having the facility of adding a new page into his account so that he can add features on to that page..
santosh
|
|
|
|
|
See my answers in the thread below. If you still want to go this way, I'll let somebody else come in - I think you are going to hit a lot of problems allowing end users to create physical pages on the website. What about security? A clever user could inject anything into a page that is 'theirs'.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Looks like you are designing a web hosting system. For images you can have a common pool with some unique name. At runtime you can decode them. For pages, can you check out URLRewriting?
Too many folders would clutter your server file system and maintenance would be a nightmare.
|
|
|
|
|
The problem is in an ASP.NET web applcation their is an option called addnew page, so the users will create his own pages in that page . An aspx page should be added to users account dynamically so that he can add his contents in that page.
santosh
|
|
|
|
|
Hi santoshkumarB,
So, what is your point? Please more specific.
Regard,
Edwin
|
|
|
|
|
hi edwin,
thank you,
well my problem is in an asp.net application user has an option of add new page in his account.
So that a new ASPX page has to be added into his account..
Consider an example...
This is basically an ecommerce project .
if their is an user called xyz. he wants to add a new page in his account so that an aspx page should be dynamically added only to his account.And xyz is going to add his own images ,template in that page.
thank you
santosh
|
|
|
|
|
Ohh... I see.
santoshkumarB, u should use CMS. Have U ever heard about CMS? This CMS will solve your problems.
Regard,
Edwin
|
|
|
|
|
Thank you sir,
no i havn't heard abt CMS. Can u tell me wat is tis CMS
But can we use xml,xslt to solve this problem....
santosh
|
|
|
|
|
CMS (Content Management System). In ASP.NET 2.0 U will find it in ToolBox Web Part.
Or other way U can Save every user settings in database.
But I suggest U to use web parts. U can find it at msdn how to use it.
Of course U can use xml.
Regard,
Edwin
|
|
|
|
|
Something like a content management system ? You can open existing ASPX files using filestream and write it to the disk with other name. Put some special tags where your content need to be replaced. Replace this special tags with your content when page is creating.
But keep it in mind that this will work if you are using ASP.NET 2.0, in ASP.NET 1.1, code behind data will be wrapped in dll's. So creating a simple aspx file won't do work.
Alternative approach would be using UrlRewriting . In this case, you won't be having files, all the URL's you are seeing will be virtual.
|
|
|
|
|
Data for content management like this is usually persisted in some data storage mechanism, like a database or xml file. The file/data describes the page and content, and then a generic pages is used to read this data and build the page on teh fly. Look at iGoogle. Each page for each user is different. But Google don't create a new page for each user, they store the users layout in a DB.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Thank you,,
Will xml and xslt sove this problem .....
santosh
|
|
|
|
|
Yes. Store the data in Xml, apply an xlst translation to it and, as if by magic, you have a web page.
You need to work on the xml layout to ensure the page is described well. It is not a 30 minute job either, but certainly better than writing a HTML code generator, which is what you would need to do for your original idea.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Be aware of exposing dynamic WebForms to user. Unless you have enough NTFS permissions in place, you are opening up the Pandorra's box on your server.
|
|
|
|
|
Hi all,
I have a textarea. I populate the textarea with data from the database and load it into the textarea using <%=stringVariable %>, then the user can change the text and then save it back to the database, but when I try to get the value for the textarea I get the following error:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
One suggestion I have found is to use <%#stringVariable %> instead, but then it doesn't display the text in the textarea.
Does anyone have any suggestions or solutions to solve this problem?
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
Is your textarea a server control ? If yes no need of doing this. Directly in code behind file you can assign value to it.
|
|
|
|