DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Problem about uploading pics from mobile

By: rekha singh | 07 Apr 2010 1:15 pm

Dear bros,

I have a system.It uploads applicants signatures pics from mobile/pc.
for pc it works well.But for mobile it is showing some letters and digits in the file uploader. Whats da prob?? my code is here.

============ ========= ========= ========= ========= ========= ========= ===
if (FileUpload1. HasFile)
{ try
{
string strPath = Server.MapPath( "~/images/ ");
FileUpload1. SaveAs(strPath +
FileUpload1. FileName) ;

string pname = TextBoxpn.Text;
string desc = TextBoxdesc. Text;
double amount = double.Parse( TextBoxprice. Text)*Int32. Parse(TextBoxsto ck.Text);

string fname = "/images/"+ FileUpload1. FileName;
ud.additem(pname, desc, Int32.Parse( TextBoxstock. Text), double.Parse( TextBoxprice. Text), amount, fname);
Label1.Text = "Created Successfully" ;

}
catch (Exception ex)
{
Label1.Text = "ERROR: " + ex.Message.ToString ();
}
}
else
{
Label1.Text = "You have not specified a file.";
}
============ ========= ========= ========= ========= ========= ========= =
hope for a quick solution.

Comments

No Comments Posted for this Article.

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move