ASP BinaryWrite နည်းလမ်း
❮ ပြီးပြည့်စုံသော တုံ့ပြန်မှု Object ရည်ညွှန်းချက်
BinaryWrite နည်းလမ်းသည် စာလုံးပြောင်းလဲခြင်းမရှိဘဲ ဒေတာကို အထွက်သို့ တိုက်ရိုက်ရေးသားသည်။
အကြံပြုချက်- ဤနည်းလမ်းကို ဒေတာဘေ့စ်မှ ဘရောင်ဇာတစ်ခုသို့ ပုံဒေတာ (BLOB) ရေးရန် အသုံးပြုသည်။
အထားအသို
response.BinaryWrite data
Parameter | Description |
---|---|
data | Required. The binary information to be sent |
ဥပမာ
သင့်တွင် bytes တစ်ခု၏ array တစ်ခုကို ဖန်တီးပေးသည့် အရာတစ်ခုရှိပါက၊ သင်သည် အပလီကေးရှင်းတစ်ခုထံသို့ bytes ပေးပို့ရန် BinaryWrite ကို အသုံးပြုနိုင်ပါသည်။
<%
Set objBinaryGen=Server.CreateObject("MyComponents.BinaryGenerator")
pic=objBinaryGen.MakePicture
response.BinaryWrite pic
%>
❮ ပြီးပြည့်စုံသော တုံ့ပြန်မှု Object ရည်ညွှန်းချက်