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
N

nudma

@nudma
About
Posts
24
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to create exe file of C# web project?
    N nudma

    Thankyou so much it worked!!

    ASP.NET csharp tutorial question asp-net business

  • How to create exe file of C# web project?
    N nudma

    @ Christian Graus Thankyou so much for your kind information...

    ASP.NET csharp tutorial question asp-net business

  • How to create exe file?
    N nudma

    @ Christian Graus Thankyou so much for your kind information...

    C# csharp tutorial question asp-net business

  • How to create exe file of C# web project?
    N nudma

    Hi All!! I want to create exe file of Asp.Net C# web project so that i can deploy it on any computer. Please guide me how can i do that?and what will be the requirements to deploy it on other computer having no asp.net? Please guide me!!

    ASP.NET csharp tutorial question asp-net business

  • How to create exe file?
    N nudma

    Hi All!! I want to create exe file of Asp.Net C# web project so that i can deploy it on any computer. Please guide me how can i do that?and what will be the requirements to deploy it on other computer having no asp.net? Please guide me!!

    C# csharp tutorial question asp-net business

  • Display Image from Path
    N nudma

    Semartens!! I want to vote your answer..How can i do that?

    Web Development help tutorial question

  • Display Image from Path
    N nudma

    Thankyou it worked!!!

    Web Development help tutorial question

  • Display Image from Path
    N nudma

    I understood your point, did the same and got the accurate results too.. but now i want to assign that image path to some variable and then want to assign that variable to src..as i said in my last message... Guide me for this please!!!

    Web Development help tutorial question

  • Display Image from Path
    N nudma

    I assign image path to some string variable like this:

    string path = "C:\at.jpg";

    and apply this:

    protected void Page_Load(object sender, EventArgs e)
    {
    Response.Write(@"<table border='1'>");
    Response.Write(@"<tr>");
    Response.Write(@"<td><img src=path></td>");
    Response.Write(@"<td><img src='D:\try.jpg'></td>");
    Response.Write(@"</tr>");
    Response.Write(@"</table>");
    }

    Then it does not display image neither it shows any error message. Why so?Please help..

    Web Development help tutorial question

  • Display Image from Path
    N nudma

    One thing i want to ask... I assign image path to some string variable like this:

    string path = "C:\at.jpg'

    and apply this:

    protected void Page_Load(object sender, EventArgs e)
    {
    Response.Write(@"<table border='1'>");
    Response.Write(@"<tr>");
    Response.Write(@"<td><img src=path></td>");
    Response.Write(@"<td><img src='D:\try.jpg'></td>");
    Response.Write(@"</tr>");
    Response.Write(@"</table>");

    Then it does not display image neither it shows any error message. Why so?Please help..

    C# help tutorial question

  • Display Image from Path
    N nudma

    yeah offcourse it worked... Thankyou for helping me...

    Web Development help tutorial question

  • Display Image from Path
    N nudma

    Thankyou Blikkies!! Thankyou so much...

    C# help tutorial question

  • Display Image from Path
    N nudma

    Hi!!! I am trying to display image from C and D drive using following code. The code is very simple. Here it is:

    protected void Page_Load(object sender, EventArgs e)
    {
    Response.Write ("<table border='1'>");
    Response.Write ("<tr>");
    Response.Write ("<td><img src='D:\at.jpg'></td>");
    Response.Write ("<td><img src='C:\try.jpg'></td>") ;
    Response.Write ("</tr>" );
    Response.Write("</table>");
    }

    I neither get image on page nor error message. How could i resolve it?Please guide me...

    Web Development help tutorial question

  • Display Image from Path
    N nudma

    Hi!!! I am trying to display image from C and D drive using following code. The code is very simple. Here it is:

    protected void Page_Load(object sender, EventArgs e)
    {
    Response.Write ("<table border='1'>");
    Response.Write ("<tr>");
    Response.Write ("<td><img src='D:\at.jpg'></td>");
    Response.Write ("<td><img src='C:\try.jpg'></td>") ;
    Response.Write ("</tr>" );
    Response.Write("</table>");
    }

    I neither get image on page nor error message. How could i resolve it?Please guide me...

    C# help tutorial question

  • Display image in table
    N nudma

    I do not mean any control. I have to draw a table of 3 rows and 3 columns then i have to print image in every position of the table

    C# database tutorial question

  • Display image in table
    N nudma

    Hi All!! I want to display images from the database into 3 x 3 table... The scenario is: 1. I have 3 x 3 table 2. Read Image from database. 3. Dispay it in the table How should i manage it?? I have done image reading from database but could not display it into the table...If i take image independently and display it on the web form then it goes ok but can't display in the table...guide me please!!

    C# database tutorial question

  • System.ArgumentException: Parameter is not valid.
    N nudma

    Hi All!! I am trying to display image from database on Asp.Net 2.0 Framework..But my problem is unsolved...The code is: protected void Button1_Click(object sender, EventArgs e) { string connectionString = "provider=Microsoft.Jet.OLEDB.4.0;" + @"data source=D:\\image\db.mdb"; OleDbConnection connection2 = new OleDbConnection(connectionString); string commandString = "Select Image from img where ImageCode = 1"; OleDbCommand command2 = new OleDbCommand(commandString, connection2); connection2.Open(); byte[] m_objBitmap = (byte[])(command2.ExecuteScalar()); ; connection2.Close(); Bitmap BitmapData = BmpDataFromBitmap(m_objBitmap); MemoryStream ms = new MemoryStream(); Response.ContentType = "image/jpeg"; BitmapData.Save(ms,ImageFormat.Jpeg); ms.Close(); } static public Bitmap BmpDataFromBitmap(byte[] BitmapData) { MemoryStream ms = new MemoryStream(BitmapData); return (new Bitmap(ms)); }

    But i get error "Parameter is invalid" at line:

    return (new Bitmap(ms)); I need your kind help..thanx!!

    ASP.NET help database csharp asp-net graphics

  • Encrypt bitmap image for C# Windows application [modified]
    N nudma

    Hi Henry!! Thanks for your help...I searched that too...None of the article contains image encryption through RSACryptoserviceprovider. other CryptoServiceProviders are used...

    C# help csharp database graphics

  • Encrypt bitmap image for C# Windows application [modified]
    N nudma

    I tried that but again

    Bad Length

    error is at:

    byte[] encrypted = rsaCSP.Encrypt(toEncrypt, false);

    Please help me out... :(

    C# help csharp database graphics

  • Encrypt bitmap image for C# Windows application [modified]
    N nudma

    Hi All!! In code below, i'm encrypting bitmap(24-bit) image, accessed from ms-access database. Here is my code:

    private void button1_Click(object sender, System.EventArgs e)
    {
    string connString = "provider=Microsoft.Jet.OLEDB.4.0;" + @"data
    source=D:\\practiceproject\practice.mdb";
    OleDbConnection connection = new OleDbConnection(connString);
    string commandString = "Select Image from readImage where ID=1";
    OleDbCommand cmd = new OleDbCommand(commandString,connection);
    byte[] toEncrypt = new byte[120154];
    connection.Open();
    toEncrypt = (Byte[]) cmd.ExecuteScalar();
    connection.Close();

    		RSAParameters rsaPubParams;
    		RSAParameters rsaPrivateParams;
    		RSACryptoServiceProvider rsaCSP = new RSACryptoServiceProvider();
            
    		//Generate public and private key data.
    		rsaPrivateParams = rsaCSP.ExportParameters(true);
    		rsaPubParams = rsaCSP.ExportParameters(false);
    		rsaCSP.ImportParameters(rsaPubParams);
    
    		byte\[\] encrypted = new byte\[130000\];
    		encrypted =  rsaCSP.Encrypt(toEncrypt, false);
    
    		//MemoryStream ms = new MemoryStream();
    		//ms.Write(encrypted, 78, encrypted.Length - 78);	
    	}
    

    But i get

    Bad Length

    error at line

    encrypted = rsaCSP.Encrypt(toEncrypt, false);

    Please help me to resolve this problem!!!

    modified on Thursday, March 19, 2009 11:35 AM

    C# help csharp database graphics
  • Login

  • Don't have an account? Register

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