Mimestreams - Forum

Forum Navigation
You need to log in to create posts and topics.

Mimestreams

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.

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

 

 

Vadim and rcohen have reacted to this post.
Vadimrcohen

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

@rcohen, please check your Sample Apps folder under:

My Documents\VisualNeoWin\Sample Apps\Last Version Tests

Regards.

HPW and rcohen have reacted to this post.
HPWrcohen

Thanks  @luishp

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:
  • You need to login to have access to uploads.

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

 

luishp, Vadim and rcohen have reacted to this post.
luishpVadimrcohen

Perfect!  Thanks @hpw

This entire Mimestream concept is an amazing addition to this platform.   Thanks a BUNCH!

rcohen

 

luishp has reacted to this post.
luishp

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.

@pauljonestindall, look at the ZipFileTest.pub