Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
F

Fahim A Salim

@Fahim A Salim
About
Posts
11
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • File not being read by JSP
    F Fahim A Salim

    Here is my code of JSP

    <% if(request.getParameter("txtTextInput")!=null && request.getParameter("LangGroup").equals("English") ) {
    String file=CreateSoundFile( request.getParameter("txtTextInput"), "en");
    %>
    <embed src="<%=file%>" ></embed>

    while CreateSoundFile creates the sound file and give back its path but the sound file is not played on the client and if the program is being run 2nd time the previous text is being played on the client browser where as the file in the folder on server is changed. why the file is not downloaded at client when it exists on the serve :(( r

    Java java sysadmin

  • Applet giving access denied exception
    F Fahim A Salim

    well let say it is because --stdout switch makes the program called to send the wav file on the console instead of writing it to file now it is on the console but the problem is to send it to ahead and their is some problem can you identify it? "BTW I would be very VERY suprised if the code, as written, is actually getting the audio stream." so if you have identified the problem can you tell me where it is:confused:

    Java sysadmin

  • Applet giving access denied exception
    F Fahim A Salim

    I was anticipating that so that is why I started this approach using a servlet below is code of my servlet response The process I Called give the audio wave file on console which i read and and now sending it as response but the audio is not hear able at the client I know I am making a mistake here but don't know where and i tried so many things can you help

       response.setContentType("audio/x-wav");
        PrintWriter out = response.getWriter();
        try 
           {
              String line;
    
           Runtime rt = Runtime.getRuntime();
           Process proc = rt.exec("C:\\\\Program Files\\\\eSpeak\\\\command\_line\\\\espeak.exe --stdout \\"This is a text\\"");
    
           AudioInputStream adstream= (AudioInputStream)proc.getInputStream();
           byte\[\] b= new byte\[512\];
           int bytes=0;
    
           while ( (bytes = adstream.read(b)) != -1 )
                    {
                    for(int i=0;i<bytes;i++)
                        {
                        out.print(b\[i\]);
    
                        }
    
    Java sysadmin

  • Applet giving access denied exception
    F Fahim A Salim

    but will how will i tell the applet that the particular file is on the server file system not on the client. and currently with the code above where does the applet look for the file under normal circumstances.:confused:

    Java sysadmin

  • Applet giving access denied exception
    F Fahim A Salim

    Hi Following the code of my applet

    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("C:\\Program Files\\eSpeak\\command_line\\espeak.exe \"This is a text\"");
    int exitValue = proc.waitFor();

    while the program is on the server the applet run fine when i call the page on my machine but when the web page is called on some other machine it gives access denied exception i have set the permission on my jre but still no sol.

    Java sysadmin

  • Creating a word document using c#
    F Fahim A Salim

    hi i am generating a word document using c# i required the document to be formated in two colums but i dont know how to do that can anyone help me.:doh:

    C# csharp help tutorial

  • post back when text is entered in text box
    F Fahim A Salim

    Thanks

    ASP.NET csharp asp-net help

  • post back when text is entered in text box
    F Fahim A Salim

    I want user to serach people via post code now if the user enters sy k than response should be that list of all people with post code starting form k now the user have to press enter to do that

    ASP.NET csharp asp-net help

  • post back when text is entered in text box
    F Fahim A Salim

    hi i have a text box in asp.net page inwhich user enters characters now i want that on every charachter entered by the user a post back occurs now it is only being occured when enter key is pressed can any one help me :doh:

    ASP.NET csharp asp-net help

  • Addin Table in panel at runtime
    F Fahim A Salim

    using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { //System.Collections.ArrayList ar = new System.Collections.ArrayList(); Table table = new Table(); Table outtable = new Table(); //Table table; // Table outtable; protected void Page_Load(object sender, EventArgs e) { //if ((Session["isaddclicked"] != null) && ((bool)Session["isaddclicked"])) //{ // if (Session["controlsArray"] != null) //{ // // ar = (System.Collections.ArrayList)Session["controlsArray"]; // table = (Table)Session["controlsArray"]; // } //pnContralPanel.Controls.Add(table); //pnoutputpanel.Controls.AddAt(0,outtable); // } //for (int i = 0; i < ar.Count; i=i+2) //{ // //co (Control)ar[i]; // pnContralPanel.Controls.Add((Control)ar[i]); // pnContralPanel.Controls.Add((Control)ar[i + 1]); //} //pnContralPanel.Controls.Add(table); } protected void btnAdd_Click(object sender, EventArgs e) { Control tdddddd=pnContralPanel.Controls[0]; if (Session["controlsArray"] != null) { table = (Table)Session["controlsArray"]; //pnContralPanel = (Panel)Session["controlsArray"]; } //Session["isaddclicked"] = true; String controltoadd = ddControlList.SelectedItem.Text; Control obj = null; Label lbl= new Label(); lbl.Text = txtCaption.Text; if (controltoadd == "Text Box") { TextBox tb= new TextBox(); //tb.ID="txt"+txtCaption.Text; tb.Text=txtValues.Text; obj = tb; } else if (controltoadd == "Drop Down") { DropDownList dd = new DropDownList(); //dd.ID = "dd" + txtCaption.Text; char[] ch={','}; String[] sepstring = txtValues.Text.Split(ch); for (int i = 0; i < sepstring.Length; i++) { dd.Items.Add(sepstring[i]); } obj=dd; } else if (controltoadd == "Check Box") { CheckB

    ASP.NET

  • Addin Table in panel at runtime
    F Fahim A Salim

    I add certain controls to table than i add the table to panel every time user preses add conrtrol than i write some text in the controls added and press submit but when i try to acess the table from the panel. the panel has no table

    ASP.NET
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups