How to Take individual images from the folder

Posted by Chaithragm under C# on 5/2/2013 | Points: 10 | Views : 963 | Status : [Member] | Replies : 4
Hi
Im doing windows application, in which im uploading a folder to server while uploading i have to open all the images for tagging .. and then save single image to the server
Here is the code im using to import a folder ,but i have to take a single image from folder and do some operation and then save it to server
How to do this?
private void ImportFolderBtn_Click(object sender, EventArgs e)
{
folder_flag = true;
FolderBrowserDialog open1 = new FolderBrowserDialog();
DialogResult result = open1.ShowDialog();
if (result == DialogResult.OK)
{
txtTitle.Text = Path.GetFileName(open1.SelectedPath);
txtCreatedDate.Text = System.DateTime.Now.ToShortDateString();
txtWardrobe.Text = wardrobe;
txtRack.Text = rack;
txtFileName.Text = filename;
scr_folder = open1.SelectedPath;
txtType.Text = "Folder";

}
}




Responses

Posted by: Learningtorise on: 5/2/2013 [Member] Starter | Points: 25

Up
0
Down
Same as above..
Get File in folder by Using FileInfo object and then do change as u want.


http://hashtagakash.wordpress.com/

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

Posted by: Chaithragm on: 5/2/2013 [Member] Starter | Points: 25

Up
0
Down
I have to display the folder images in if i click on next button the first image has to be saved and repeat for all the images in the folder

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

Posted by: Learningtorise on: 5/2/2013 [Member] Starter | Points: 25

Up
0
Down
sFilename = Dir(sFoldername)

Do While sFilename > ""

debug.print sFilename
sFilename = Dir()

Loop

I have done same in Web ; Windows, no idea....

Try Google.com


http://hashtagakash.wordpress.com/

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

Posted by: Chaithragm on: 5/3/2013 [Member] Starter | Points: 25

Up
0
Down
im not getting how to do

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

Login to post response