如何在经典ASP中编写字节[] [英] How Write an Byte[] in classic ASP
本文介绍了如何在经典ASP中编写字节[]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
有谁能告诉我如何在经典ASP中编写以下代码行
Hello,
Can anybody tell me how to write an below line of code in Classic ASP
Dim outPdfBuffer() As Byte=Nothing
set baseUrl = "http://ABC/DEF/"
outPdfBuffer = htmlToPdfConverter.ConvertHtml(HtmlStream, baseUrl)
File.WriteAllBytes(filePath, outPdfBuffer)
Response.AddHeader "Content-Type", "application/pdf"
Response.AddHeader "Content-Disposition", String.Format("{0}; filename=" + filePath + ".pdf; size={1}", "inline", outPdfBuffer.Length.ToString())
Response.BinaryWrite(outPdfBuffer)
Response.End()
推荐答案
查看链接。
http://stackoverflow.com/questions/565821/byte-array-in-classic-asp [ ^ ]
http://www.motobit.com/tips/detpg_binasp/ [ ^ ]
See the links.
http://stackoverflow.com/questions/565821/byte-array-in-classic-asp[^]
http://www.motobit.com/tips/detpg_binasp/[^]
这篇关于如何在经典ASP中编写字节[]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文