i have used some code to upload an Image to my web server folder using FTP.its working fine when i enter ftp url,username,password and file path, but i need to upload this image without file path like i have a byte array and i have converted that bytes to image and want upload in server folder.but it requires file path.
how can i upload my image without file path.
using (System.Net.WebClient client = new System.Net.WebClient())
{
client.Credentials = new System.Net.NetworkCredential(userName, password);
client.UploadFile(ftpServer + "/" + new FileInfo(filename).Name, "STOR", filename);
}