1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > base64编码 vba_vb图片转base64编码

base64编码 vba_vb图片转base64编码

时间:2022-10-18 18:03:43

相关推荐

base64编码 vba_vb图片转base64编码

【实例简介】

【实例截图】

【核心代码】

Option Explicit

Private Sub Form_Load()

Dim arrData() As Byte

Dim objBase64 As BASE64

Dim strText As String

Dim strOutFile As String

Open App.Path & "\65136.txt" For Binary As #1

strText = Input$(LOF(1), 1)

Close

Set objBase64 = New BASE64

If (objBase64.Decoding(arrData, strText)) Then

strOutFile = App.Path & "\OutPic.bmp"

Open strOutFile For Binary As #1

Put #1, 1, arrData

Close

Set picDisp = LoadPicture(strOutFile)

End If

Set objBase64 = Nothing

End Sub

Private Sub Form_Resize()

picDisp.Width = ScaleWidth

picDisp.Height = ScaleHeight

End Sub

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。