hear is
solution of my question
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
txtBarCodeText.Focus();
var barcode = new Code39BarCode()
{
BarCodeText = "HELRE WORLD",
BarCodeWeight = BarCodeWeight.Medium,
Height = 100
};
byte[] fileContents = barcode.Generate();
string filePath = Server.MapPath("~/barcode.gif");
File.WriteAllBytes(filePath, fileContents);
string filepath1 = Server.MapPath("~/barcode.gif");
string fn= Guid.NewGuid()+filepath1.Substring(filepath1.LastIndexOf("."));
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://localhost:1231/WebFormsDemo/barcode.gif");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
System.Drawing.Image img = System.Drawing.Image.FromStream(response.GetResponseStream());
img.Save(Server.MapPath("imgbar/")+fn);
}