Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Is that possible to save image in a disconnected environment?
I want to do is to Add image in a disconnected datatable/gridview... and after that I want to save all the data in the SQL database. e.g. I inputed 5 photos, they have diff rows, in a disconnected environment, after adding that into the datatable/gridview, every row will save into the SQL.
Posted
Updated 25-May-11 20:02pm
v2
Comments
saxenaabhi6 25-May-11 23:38pm    
save image from where to where ?
who disconnected from what ?
fjdiewornncalwe 25-May-11 23:41pm    
I think you need to be more clear as to what you are trying to do.
Steven.Pinto2000 26-May-11 0:17am    
Can you provide us more details
Prasanta_Prince 26-May-11 1:43am    
parmar_punit@yahoo.co.in give the exact solution . If you want to save without database . This is the exact solution.

if you want to save image in your solution then it is very simple. suppose you have a fileupload control to upload a image then you can write a block of code like this...

fileUpload1.PostedFile.Save(string path);//give the path at where you want to save image...
// or you can use MapPath() static method of Server class, like....
fileUpload1.PostedFile.Save(Server.MapPath("Image")+"/fileName.jpg");//MapPath() method will map your solution path automatically, you have to pass the folderName as a parameter, here i give Image folder name as a string...
 
Share this answer
 
hi,

i think u want to save a image without using database
. it so simple to save it in a directory. but if you want to retrieve that image u should have to know the name of the image.
 
Share this answer
 

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