|
-
Oct 14th, 2006, 11:11 PM
#1
Thread Starter
Hyperactive Member
storing data in a picture
i need to store some binary data in a file larger than allowed as a resource.
i am looking for a function that will read a file in binary mode, and store the bytes as a picture.
reading in 3 byte chuncks, it would set the R,g, and b values equivalent to the read data.
has anyone done this before, or better yet, have a module/function/snippet for this task?
i noticed that once compiled, any loaded pics on a form are packeged into the EXE.
-
Oct 15th, 2006, 02:56 AM
#2
Re: storing data in a picture
 Originally Posted by rnd me
i need to store some binary data in a file larger than allowed as a resource
Not quite the answer to your query, but - although MS documentation states there is an individual file size limit of 64kb for files stored in a .res (and I've mistakenly quoted this in the past), this isn't quite true. In 16-bit versions of VB, the limit's 64kb. In 32-bit versions it's more like 4Gb when stored as a custom resource.
-
Oct 15th, 2006, 04:00 AM
#3
PowerPoster
Re: storing data in a picture
maybe not what you want, but you could store data in your EXE ..
http://www.vbforums.com/showthread.p...89#post2523489
-
Oct 15th, 2006, 02:28 PM
#4
Thread Starter
Hyperactive Member
Re: storing data in a picture
 Originally Posted by schoolbusdriver
although MS documentation states there is an individual file size limit of 64kb for files stored in a .res (and I've mistakenly quoted this in the past), this isn't quite true. In 16-bit versions of VB, the limit's 64kb. In 32-bit versions it's more like 4Gb...
that will learn me not to trust M$!
i just added a large video file, and it works fine.
thanks!
-
Oct 15th, 2006, 04:15 PM
#5
Re: storing data in a picture
No prob Glad to know I'm still of some use in my dotage (or should that be .age )
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
|