7,763
社区成员
发帖
与我相关
我的任务
分享
' rsrs("FData")是读出的Image数据类型字段
Dim LngFileLen As Long, BytFile() As Byte
LngFileLen = rsrs("FData").ActualSize
If LngFileLen > 0 Then
ReDim BytFile(LngFileLen)
BytFile = rsrs("FData").GetChunk(LngFileLen)
lngFreeFile = FreeFile
Open "c:/a.txt" For Binary Access Write As lngFreeFile
Put lngFreeFile, , BytFile()
Close lngFreeFile
'写数据成功标志
CreateJZFile = True
MsgBox CreateJZFile
End If
下载的a.txt文本结果:
x趀愝N翤咃Ixa锥衹煫羊#ァb m攧
bZK厳儋]畑3{3g3缣7囃2K?岛僡礡瑻颪N噇驥仄<{肨}G|硸SW??髅4蘖I?檦蔣棫n纞'芶F5?B雽諱
泲论_@`?光壪?筿莫嫑€鉈'呧茷
w*帉孪捱吼豒?誺YSOm冃"轠?@Ob0頊0釉?+硠稃k5钿墠%OFe[Λ?Z
/B%P绥rw攀裬敱T耓??E?Oi?%?i??("脴晨@:
"???o???▔