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.
Re: storing data in a picture
Quote:
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.
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
Re: storing data in a picture
Quote:
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!
Re: storing data in a picture
No prob :thumb: Glad to know I'm still of some use in my dotage (or should that be .age :bigyello: )