
Quote from rcohen on October 25, 2021, 12:32 pmI have recently upgraded to current version VNWin. I am specifically interested in the new mimestreaming functions, and was looking for a demo or two that showed the practical application of these commands... but didn't find any.
Does anyone know where I can find a few demo's featuring these new commands? It would be greatly appreciated.
Thanks in advance.
I have recently upgraded to current version VNWin. I am specifically interested in the new mimestreaming functions, and was looking for a demo or two that showed the practical application of these commands... but didn't find any.
Does anyone know where I can find a few demo's featuring these new commands? It would be greatly appreciated.
Thanks in advance.

Quote from HPW on October 25, 2021, 1:50 pmHello,
Especially the MIME zip commands?
Or the use from MIME streams in other functions?
From the doc:
SetObjectFileName "Picture1" "[MimeStream]MyImage.png"
ImageWindow "Show MimeContent" "-1" "-1" "[MimeStream]MyImage.png"
PopUpImage "-1" "-1" "[MimeStream]MyImage.png" "0" "None" "0"
For plugins you may have a look at hpwUtility the dynamic knob-demo.
Or hpwImage the load/save MIME-stream.
For the zip functions I am not sure if Luis did release any demo-pub for this with the release.
(About an in-memory zip-support)
Regards
Hans-Peter
Hello,
Especially the MIME zip commands?
Or the use from MIME streams in other functions?
From the doc:
SetObjectFileName "Picture1" "[MimeStream]MyImage.png"
ImageWindow "Show MimeContent" "-1" "-1" "[MimeStream]MyImage.png"
PopUpImage "-1" "-1" "[MimeStream]MyImage.png" "0" "None" "0"
For plugins you may have a look at hpwUtility the dynamic knob-demo.
Or hpwImage the load/save MIME-stream.
For the zip functions I am not sure if Luis did release any demo-pub for this with the release.
(About an in-memory zip-support)
Regards
Hans-Peter

Quote from rcohen on October 26, 2021, 6:12 amThanks Hans,
I spotted that in the docs, but was wanting to see the code in action, which might reveal to me a way to use those commands in a way that isn't immediately obvious. I'll check out what you have presented.... thank you.
IF anyway has any pubs with these commands in action that you would be willing to share, I'd love to check them out.
Thanks @hpw for setting this up and for your tech support.
rcohen
Thanks Hans,
I spotted that in the docs, but was wanting to see the code in action, which might reveal to me a way to use those commands in a way that isn't immediately obvious. I'll check out what you have presented.... thank you.
IF anyway has any pubs with these commands in action that you would be willing to share, I'd love to check them out.
Thanks @hpw for setting this up and for your tech support.
rcohen

Quote from luishp on October 26, 2021, 7:04 am@rcohen, please check your Sample Apps folder under:
My Documents\VisualNeoWin\Sample Apps\Last Version Tests
Regards.
@rcohen, please check your Sample Apps folder under:
My Documents\VisualNeoWin\Sample Apps\Last Version Tests
Regards.


Quote from rcohen on October 26, 2021, 10:27 amI am working my way though your Mimestream Demo and I find an error I can't figure the reason for.
The button for the zip string to mimestream script is:
... ZipString "TargetZip" "Filepath/Name in Zip" "Content" "Packlevel 0-9" "Password" "Resultvar 0/1"
.ZipString "[PubDir]MyTest.zip" "neobook/MyTest.txt" "This is a Teststring!" "9" "" "[ZipResult]"
ZipString "[MimeStream]MyFolder.zip" "[TextFilename]" "[Testvar]" "9" "" "" "[ZipResult]"
ZipMimeStream "[PubDir]MyZipContainerNew.zip" "MyFolderNew2.zip" "[MimeStream]MyFolder.zip" "9" "1234" "AES_256" "[ZipResult]"And the attached screen grab shows the result of that.
I don't know the system yet, so I can't figure a fix ;-0
Thanks
I am working my way though your Mimestream Demo and I find an error I can't figure the reason for.
The button for the zip string to mimestream script is:
... ZipString "TargetZip" "Filepath/Name in Zip" "Content" "Packlevel 0-9" "Password" "Resultvar 0/1"
.ZipString "[PubDir]MyTest.zip" "neobook/MyTest.txt" "This is a Teststring!" "9" "" "[ZipResult]"
ZipString "[MimeStream]MyFolder.zip" "[TextFilename]" "[Testvar]" "9" "" "" "[ZipResult]"
ZipMimeStream "[PubDir]MyZipContainerNew.zip" "MyFolderNew2.zip" "[MimeStream]MyFolder.zip" "9" "1234" "AES_256" "[ZipResult]"
And the attached screen grab shows the result of that.
I don't know the system yet, so I can't figure a fix ;-0
Thanks
Uploaded files:
Quote from HPW on October 26, 2021, 2:52 pmHello,
When I remember right I had problems to setup [MimeStreams] as a permanent global var.
So add simply this to startup action:
SetVar "[MimeStream]" "mimestream:\\\"
This should solve your problem. The first command fails because [MimeStreams] was not defined.
Then you will see the mimestream content in your debugger and the zipped zip in the final zip container.
Regards
Hans-Peter
Hello,
When I remember right I had problems to setup [MimeStreams] as a permanent global var.
So add simply this to startup action:
SetVar "[MimeStream]" "mimestream:\\\"
This should solve your problem. The first command fails because [MimeStreams] was not defined.
Then you will see the mimestream content in your debugger and the zipped zip in the final zip container.
Regards
Hans-Peter

Quote from rcohen on October 26, 2021, 8:04 pmPerfect! Thanks @hpw
This entire Mimestream concept is an amazing addition to this platform. Thanks a BUNCH!
rcohen
Perfect! Thanks @hpw
This entire Mimestream concept is an amazing addition to this platform. Thanks a BUNCH!
rcohen
Quote from PaulJonestindall on November 5, 2021, 7:06 pmI apparently didn't get a mimestream demo PUB in My Documents\VisualNeoWin\Sample Apps\Last Version Tests
Does anyone have a copy?
I'm pretty sure I went through the whole latest version tests folder.
Thanks.
I apparently didn't get a mimestream demo PUB in My Documents\VisualNeoWin\Sample Apps\Last Version Tests
Does anyone have a copy?
I'm pretty sure I went through the whole latest version tests folder.
Thanks.

Quote from rcohen on November 6, 2021, 1:56 am@pauljonestindall, look at the ZipFileTest.pub
@pauljonestindall, look at the ZipFileTest.pub