¾È±Ô °øºÎ¹æ

ACTIVE SERVER PAGE > base64 ÀÎÄÚµùµÈ À̹ÌÁö ´Ù¿î·Îµå ¹Þ±â

µî·ÏÀÏ : 2017-07-04 18:21 Á¶È¸¼ö : 33,871


  'values  
base64String="data:image/gif;base64,R0lGODdhMQAiAPcAAP////f39+/v7+fn597e3s7OzsbGxr29vbW......"


Set tmpDoc = Server.CreateObject("MSXML2.DomDocument")
Set nodeB64 = tmpDoc.CreateElement("b64")
nodeB64.DataType = "bin.base64"
nodeB64.Text = Mid(base64String, InStr(base64String, ",") + 1)

With Response
.Clear
.ContentType = "image/gif"
.AddHeader "Content-Disposition", "attachment; filename=testImage.gif"
.BinaryWrite nodeB64.NodeTypedValue 'get bytes and write
.End
End With
 
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.