|
-
Apr 11th, 2020, 01:38 AM
#17
Re: Store binary data in UserControl?
You can only load 65536 lines of code per module, and you can only have 1024 bytes per line. Even Zip-compressed, the image set I need is 197kb, so I'd need 197,000*2 lines to define them as strings.
The_trick's solution would be great if it were an exe I was distributing, but it's just the control... so I'd need a UserControl on a UserControl...
But I may have found a solution... List items. You can enter it seems like 32k List items into the IDE, so my images would need to be split between at most 2 lists, then just need to combine all the items back into one string. Works with no crashing so far but I've only tried a single icon. That 64kb limit from chars*2 might have been the issue with tags; issues with exceeding that.
Last edited by fafalone; Apr 11th, 2020 at 01:44 AM.
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
|