Hey. Im trying to create a program to encrypt a file to a bmp image and then decrypt it. It will be password based but that will come later. All ive coded right now is making the bmp out of the file.
file$=RequestFile("file?","*")
file1=ReadFile(file)
image=CreateImage(5000,1)
pos=0
While Not Eof(file1)
r=ReadByte(file1)
g=ReadByte(file1)
b=ReadByte(file1)
SetBuffer ImageBuffer(image)
Color r,g,b
Plot pos,1
Wend
SaveBuffer(ImageBuffer(image),"test.bmp")
CloseFile(file1)
End
When i try to execute this code, i get a black image and an error message that says "Internal Error. Unable to release <unknown> object." Any ideas?
file$=RequestFile("file?","*")
file1=ReadFile(file)
image=CreateImage(5000,1)
pos=0
While Not Eof(file1)
r=ReadByte(file1)
g=ReadByte(file1)
b=ReadByte(file1)
SetBuffer ImageBuffer(image)
Color r,g,b
Plot pos,1
Wend
SaveBuffer(ImageBuffer(image),"test.bmp")
CloseFile(file1)
End
When i try to execute this code, i get a black image and an error message that says "Internal Error. Unable to release <unknown> object." Any ideas?