[求助]图片怎么保存。我写的那句只能保存一个图片。
if ( ds.Tables[0].Rows.Count > 0){
DataRow myRow;
myRow=ds.Tables[0].Rows[0] ;
byte[] Full_picture = new Byte[0];
Full_picture = Convert.IsDBNull(myRow["Full_picture"]) ? Full_picture : (byte[])myRow["Full_picture"];
long Full_picture_len = Full_picture.GetUpperBound(0) ;
byte[] Part_picture = new Byte[0];
Part_picture = Convert.IsDBNull(myRow["Part_picture"]) ? Part_picture : (byte[])myRow["Part_picture"];
long Part_picture_len = Part_picture.GetUpperBound(0) ;
try
{
if (Full_picture_len > 0)
{
file_name = file_path + "full_picture.jpg";
Stream strm1 = new MemoryStream(Full_picture,0,(int)Full_picture_len);
Bitmap bp1 = new Bitmap(strm1);
Graphics gf = Graphics.FromImage(bp1);
gf.DrawString( row["名称"].ToString() , new Font("宋体",24), Brushes.YellowGreen, new PointF(5,5));
bp1.Save("g:\\file_name.jpg",ImageFormat.Jpeg);
System.IO.FileStream fs = new FileStream(file_name,FileMode.Create);
fs.Write(Full_picture,0,Full_picture.Length);
fs.Close();