Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends.
I have pictures of students of a class stored in database as byte arrays.
I am working on Silverlight Application which in one of the pages I want to save those pics.
How can we save multi files after prompting a local address on client to save all pictures using Save Dialog??
Posted

If you mean FileSaveDialog, I'd guess you have to use it separately for each file. In that case it would make sense to create a new window designed for saving multiple files at once.

On the other hand if you have prompted for the location, can't all the files be saved with predefined names (defined either by your program or the user)?
 
Share this answer
 
Comments
Ali Taghvajou 9-Apr-11 14:39pm    
Forget about use for each file Separately. I think the user will cut my head if he attend to save pics of a class with more than 100 students.
I think having a multiple save window is more considerable.
The Other Problem is their names: because each pic must be saved with student no.
Wendelius 9-Apr-11 14:51pm    
That's exactly what I meant, not very efficient to call the dialog 100 times. If you know the student numbers, for example from import phase or something like that, you could use that information. If you don't have it, try creating for example an editable ListView where you load the file names to be edited by the user.
Wendelius 10-Apr-11 4:57am    
If archiving to a single file is a feasible solution for you (= you don't need the separate files) then why not.
Sandeep Mewara 10-Apr-11 3:31am    
Comment frm OP:
What about archiving all pic in a .rar file and saving it!
Wendelius 10-Apr-11 4:56am    
Thanks :)
What about archiving all pic in a .rar file and saving it!
 
Share this answer
 
Comments
Sandeep Mewara 10-Apr-11 3:31am    
Not an answer. Use comments feature.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900