Download Images folder w.r.t a patient(eg: patient1,Patient2,Patient3....) on click of 'Download' Bu

Posted by Sp under Regular Expressions on 11/8/2010 | Points: 10 | Views : 1280 | Status : [Member] | Replies : 5
Download Images folder w.r.t a patient(eg: patient1,Patient2,Patient3....) on click of 'Download' Button
The database has
ID
Name
Images(here images path is stored)[eg:C:\ABC\Patient1\abc.gif,C:\ABC\Patient1\abcdef.gif,C:\ABC\Patient1\abczxc.gif, .....then C:\ABC\Patient2\pok.gif]

when i search w.r.t ID 1 i will get in images variable, path of all images which are associated with patient1
ie C:\ABC\Patient1\abc.gif,C:\ABC\Patient1\abcdef.gif,C:\ABC\Patient1\abczxc.gif
I want to add a download button with each row of the gridview which displays the results. On click of this download button(lets say ID 1)i want to download Patient1 folder!!!




Responses

Posted by: T.saravanan on: 11/8/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Already you have the image path of the particular patient.So when will you add the download button in your gridview at the mean time you add the path into that button.Now you easily to take the path of that particular patient and download the file.

Just try this way i think its working fine.


Thanks,
T.Saravanan

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

Posted by: Sp on: 11/8/2010 [Member] Starter | Points: 25

Up
0
Down
I want to download the complete folder for patient1. I see that i can download images added in a folder by only zipping the folder and then downloading it!!

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

Posted by: Sp on: 11/8/2010 [Member] Starter | Points: 25

Up
0
Down
can i do this way that when i click on a record at that time a folder is created and then one by one images are downloaded corresponding to that record in the newly created folder

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

Posted by: T.saravanan on: 11/8/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Refer those links...

http://forums.asp.net/p/1564157/3891466.aspx

http://stackoverflow.com/questions/921308/asp-net-zip-file-download-and-then-remove-temp-zipfile

// For Zip a Folder with Files
http://www.eggheadcafe.com/tutorials/aspnet/9ce6c242-c14c-4969-9251-af95e4cf320f/zip--unzip-folders-and-f.aspx

http://www.codeproject.com/KB/cs/csharp_zip.aspx

Note: In your download button event first zip a folder and then to download a zip file.

Thanks,
T.Saravanan

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

Posted by: Sp on: 11/8/2010 [Member] Starter | Points: 25

Up
0
Down
. will client be prompted to accept or cancel download or the download cn occur automatically on click of download btn

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

Login to post response