经典 ASP - 奇怪的字符而不是 PNG
Classic ASP - Strange Characters Instead of PNG
我正在使用 http://onlinehelp.tableau.com/current/api/rest_api/en-us/help.htm#REST/rest_api_ref.htm#Query_View_with_a_Preview_Image%3FTocPath%3DAPI%2520Reference%7C_____43 输出一些 PNG 文件。
代码的最后一位是
postResponse = httpRequest.ResponseText
Response.ContentType = "image/png"
response.BinaryWrite postResponse
这导致
ÿÿPNG
有什么建议吗?我试过用 Write
和 get
替换 BinaryWrite
ï¿¿PNG
尝试使用以下方法:
response.BinaryWrite httpRequest.responseBody
我正在使用 http://onlinehelp.tableau.com/current/api/rest_api/en-us/help.htm#REST/rest_api_ref.htm#Query_View_with_a_Preview_Image%3FTocPath%3DAPI%2520Reference%7C_____43 输出一些 PNG 文件。
代码的最后一位是
postResponse = httpRequest.ResponseText
Response.ContentType = "image/png"
response.BinaryWrite postResponse
这导致
ÿÿPNG
有什么建议吗?我试过用 Write
和 get
BinaryWrite
ï¿¿PNG
尝试使用以下方法:
response.BinaryWrite httpRequest.responseBody