|
-
June 15th, 2001, 04:07 PM
#1
PictureBox control
Is there a way to, instead of using the LoadPicture command as follows:
Dim Picdata As String
Picdata = DownloadFile("FILENAME.JPG")
WriteBinaryFile(Picdata, "C:\DRUM.JPG")
pctGeneralPicture.Picture = LoadPicture("C:\DRUM.JPG")
to instead set the picture from an actual string of characters?
This question derives from the following situation: I'm reading 'files' off of a form of one touch memory... The 'file data' gets read into strings...
I'd like to eliminate the need to write out temporary binary files that I make out of the 'string data'... Instead, I would like the picturebox control to directly load the image data out of the variable that I have stuffed it into...
So, instead of going out to a file on the hard drive, it would just grab the information out of a byte or string array...
Dim Picdata As String ' or byte or whatever
Picdata = DownloadFile("FILENAME.JPG")
pctGeneralPicture.Picture = Picdata
Currently I am doing it with a temporary file, but as I said, I'd like to eliminate the 'middleman' as it were, if possible...
Thanks,
Brad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|