2012-08-26 45 views

回答

1

`暗景圖像作爲字符串圖片= 「」,對於i = 0至10

圖片=圖像& 「」

接着回覆於(圖片)`

一個圖像將使用此代碼顯示,現在問題是我想將其保存爲我的文件夾中的單個圖像(服務器端)

使用文件上傳控制

//Get Filename from fileupload control 
    string filename = Path.GetFileName(fileuploadimages.PostedFile.FileName); 
    //Save images into Images folder 
    fileuploadimages.SaveAs(Server.MapPath("Images/"+filename)); 

if your image generated is a stream use Image class to convert it 

    Image.FromStream(yourstream); 

to save it without upload control: 
     Image.Save(Server.MapPath("Images/"+filename")); 

`暗景圖像作爲字符串 圖片= 「」 對於i = 0到10

圖片=圖像& 「」

接着 回覆於(圖片) ` 將使用此代碼顯示圖像,現在問題是我想將它保存爲我的文件夾中的單個圖像(服務器端)

+0

I想要保存它,只要它生成,我沒有選擇使用文件上傳控制。我試圖使用函數將字符串轉換爲圖像,但它將字符串顯示爲圖像而不是實際圖像。 – Cathode

+0

你想保存在服務器端還是客戶端? –

+0

我只想將它保存在服務器端。 – Cathode