FileOpen(c1,"example.exe",cRandom)
binread.New1(c1,True)
length=binread.ReadBytes(readstream(),1000000)
......
......
______________________________________step2
FileOpen(c2,"temp.jpg",cRandom)
binwrite.WriteBytes2(readstream(),jpgbegin,jpglength) 'yes, i knew the location of a jpg
......
Image1.LoadPicture("temp.jpg")
......
_______________________________________step2
......
imageedit1.LoadImage(image1.Image)
imageedit1.RotateLeft
image1.Image=imageedit1.GetImage("RGB") 'here i did't create a real file on harddisk but use it from memory immediately!!!
my question is in step2 ,must i create a real file on harddisk?since i knew the location of a jpg in a binary dimension,could i load the data from memory directly to a image bag just like the last line?
creating a real file on harddisk spent more time,i need quick show.
thanks!
binread.New1(c1,True)
length=binread.ReadBytes(readstream(),1000000)
......
......
______________________________________step2
FileOpen(c2,"temp.jpg",cRandom)
binwrite.WriteBytes2(readstream(),jpgbegin,jpglength) 'yes, i knew the location of a jpg
......
Image1.LoadPicture("temp.jpg")
......
_______________________________________step2
......
imageedit1.LoadImage(image1.Image)
imageedit1.RotateLeft
image1.Image=imageedit1.GetImage("RGB") 'here i did't create a real file on harddisk but use it from memory immediately!!!
my question is in step2 ,must i create a real file on harddisk?since i knew the location of a jpg in a binary dimension,could i load the data from memory directly to a image bag just like the last line?
creating a real file on harddisk spent more time,i need quick show.
thanks!
Last edited: