dim code as string
dim buf() as byte
dim size as long
intFileId = FreeFile()
Open App.Path & "\" & RiQi & ".jpg" For Binary As #intFileId
ReDim buf(size)
For i = 1 To size
Code = Mid(PicCode, i, 1)
buf() = Hex(Val("&H" & Code))
Put #intFileId, , buf()
Next i
a = LOF(intFileId)
MsgBox a
Close #intFileId
Picture1.Picture = LoadPicture(App.Path & "\" & RiQi & ".jpg")
Kill App.Path & "\" & RiQi & ".jpg"