怎样动态生成WBMP?

 

<%@ Language=VBScript %>
<%
Function StoB(varstr)
str6bin = ""
For i = 1 To Len(varstr)
varchar = Mid(varstr, i, 1)
str6bin = str6bin & ChrB(AscB(varchar))
Next
StoB = str6bin
End Function
img=chr(0) & chr(0) & chr(5) & chr(2) & chr(0) & chr(&Hf8)

Response.ContentType="image/vnd.wap.wbmp"
Response.BinaryWrite stob(img)
%>