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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 9:20 PM EDT
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
Arun B19 reputationPosted Aug 22, 2013, 9:33 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 22, 2013, 9:38 PM EDT
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 B19 reputationPosted Aug 23, 2013, 12:01 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 23, 2013, 12:29 AM EDT
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 B19 reputationPosted Aug 23, 2013, 12:59 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 23, 2013, 1:24 AM EDT
http://support.godaddy.com/help/article/6481/setting-directory-permissions-with-windows-hosting-accounts
Regards,
Iftikar
Arun B19 reputationPosted Aug 23, 2013, 2:40 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 23, 2013, 3:07 AM EDT
string imagePath =upload_Image.PostedFile.
string savePath=Server.MapPath("//Blueware//images//profileImg//") + imagePath ;
upload_Image.PostedFile.SaveAs(savePath);
Regards,
Iftikar