hi frds...
can u tel me how to set imagePath in godday ???
i got error like given image
my coding is
imagePath = System.IO.Path.GetExtension(
Bitmap b = new Bitmap(upload_Image.
Bitmap newim = RentfreeImage.
newim.Save(Server.MapPath("/")
help p/z
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 23, 2013, 7:07 AM
string imagePath =upload_Image.PostedFile.
string savePath=Server.MapPath("//Blueware//images//profileImg//") + imagePath ;
upload_Image.PostedFile.SaveAs(savePath);
Regards,
Iftikar
Arun BPosted Aug 23, 2013, 6:40 AM
Iftikar HussainPosted Aug 23, 2013, 5:24 AM
http://support.godaddy.com/help/article/6481/setting-directory-permissions-with-windows-hosting-accounts
Regards,
Iftikar
Arun BPosted Aug 23, 2013, 4:59 AM
Iftikar HussainPosted Aug 23, 2013, 4:29 AM
and also change the code bit to save image name
string imagePath =upload_Image.PostedFile.
string savePath=Server.MapPath("//Blueware//images//profileImg//") + imagePath ;
upload_Image.PostedFile.SaveAs(savePath);
Regards,
Iftikar
Arun BPosted Aug 23, 2013, 4:01 AM
Iftikar HussainPosted Aug 23, 2013, 1:38 AM
string imagePath = System.IO.Path.GetExtension(upload_Image.PostedFile.
string savePath=Server.MapPath("//Blueware//images//profileImg//") + imagePath ;
upload_Image.PostedFile.SaveAs(savePath);
Regards,
Iftikar
Arun BPosted Aug 23, 2013, 1:33 AM
Iftikar HussainPosted Aug 23, 2013, 1:20 AM
Try like this
imagePath = System.IO.Path.GetExtension(
string savePath=Server.MapPath("//Blueware//images//profileImg//");
Bitmap newim = RentfreeImage.
newim.Save(savePath + System.IO.Path.GetExtension(
Regards,
Iftikar