I am converting image name to byte array and i want to save that byte array in a folder here is my code to convert byte array
byte[] imgArray = obj.Image.ToByteArray();
where obj.image=image(1).jpg. which is of string type.
and I want to save it in my project folder "Images" so how can i do it after converting that image file to byte array. please give me some idea to do that
here is my project folder where i want to save the file. D:\Gaurav\VerveLogicTfs\LogoProject\ProfilePic
File.WriteAllBytes(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "image1.jpg"), imgArray);?obj.Image.ToByteArray()will give you the byte array of that string not the image itself.