Home > Net >  Generate multiple qr code image and save to the user in the computer. Please help!
Generate multiple qr code image and save to the user in the computer. Please help!

Time:12-24

 
For (int I=0; I & lt; 10; I++)
{
GetQRCode. GetQr (" wfew, "Server MapPath (" c: " + I));//generated qr code
DownImg (" c: \ "+ I, i.T oString ());
}
}
Catch
{
return;
}

Protected void DownImg (string strHzORCodeUrl, string strImgName)
{
String FilePath=Server. MapPath (strHzORCodeUrl);//convert physical path
Try
{
If (the File. The Exists (FilePath))
{
The string filename="attachment; Filename="+ strImgName +". JPG ";
Response. AddHeader (" the Content - Disposition ", filename);
The Response. The Buffer=true;
The Response. ((FilePath);
The Response. The Flush ();
}
}
The catch (Exception e)
{

}
}

1 a qr code to local customers, other 9 didn't save, request a great god, is there any other way to download the qr code batch to the client computer

CodePudding user response:

A response can only respond to a file, you incredibly response 9 files, you also can't think of,
  • Related