Steps to remember for upload an image

Posted by Sangeetha Mani under C# on 12/13/2013 | Points: 10 | Views : 1164 | Status : [Member] | Replies : 3
Hi all,

Today i come with fileupload image.

Steps to remember to upload an image:

1. Get the physical path where you want to store the upload image

2. Save the uploaded image name as anyname.jpg (as your wish of format)

3. first to steps get from
string.format("{0}{1}_img.jpg",physicalpath,imagename)that return as string

4. final step save the contents of uploaded file in to physical path
fileuploadId.saveAs(string) this string which contains the physicalpath with filename of image with format.

sangeetha.m


Responses

Posted by: vishalneeraj-24503 on: 12/13/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Are you asking question? or just posting blog or code?
If you are posting a blog or contents,then this is not the right place to post.
It;s only for asking problem.

If you wanna submit contents or blog,then
there is a Post Tab-> just mouse hover on it then click on article or blog or codes.

Sangeetha Mani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sangeetha Mani on: 12/13/2013 [Member] Starter | Points: 25

Up
0
Down
Vishal@Neeraj

k i was unknowingly posted here. anyhow thanks.

sangeetha.m

Sangeetha Mani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 12/13/2013 [Member] Starter | Points: 25

Up
0
Down
Okay I thought you are asking question

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Sangeetha Mani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response