I have an imaging system that uses an activex control (that is not mine) to do file based format conversions. It is needed to preconvert the files prior to displaying them.
So lets pretend I have a file called OrigFile.jpg
The code for my system will look something like this.
It works like it's suppose to, but the problem is speed. My application has a thumbnail viewer that must display 40+ images at a time. This file / disk based conversion bogs it down. The activeX control is only able to convert to disk based files. No memory based operations are available.
I'm looking for a way to make this file/disk based operation a memory based operation. I've toyed with Memory Mapped Files, but unless I'm mistaken it requires modification to the activeX control (which in my case is not possible). I've tried looking at about 5 sample projects online, but all assume you have access to both sides. I've also looked into RAM virtual disks, but haven't been able to come to a practical cost effective solution that can be mass deployed.
The developer of the activex control is not willing to extend the functionality to include memory based operations. Although I oversimplified my situation to help you better understand, the conversion is a proprietary algorithm for a niche device. I'm stuck with this control and do not have any other option. Please don't post responses that will not help me such as:
change your control...
what format are you converting from/to?
why are you doing this?
etc.
Thanks to the brilliant one out there that figures this out!
So lets pretend I have a file called OrigFile.jpg
The code for my system will look something like this.
Code:
Dim objCon as ConversionObject
objCon.ConvertFile C:\OrigFile.jpg C:\TEMP\DestFile.jpg
ImagingDisplayControl.DisplayFile C:\TEMP\DestFile.jpg
I'm looking for a way to make this file/disk based operation a memory based operation. I've toyed with Memory Mapped Files, but unless I'm mistaken it requires modification to the activeX control (which in my case is not possible). I've tried looking at about 5 sample projects online, but all assume you have access to both sides. I've also looked into RAM virtual disks, but haven't been able to come to a practical cost effective solution that can be mass deployed.
The developer of the activex control is not willing to extend the functionality to include memory based operations. Although I oversimplified my situation to help you better understand, the conversion is a proprietary algorithm for a niche device. I'm stuck with this control and do not have any other option. Please don't post responses that will not help me such as:
change your control...
what format are you converting from/to?
why are you doing this?
etc.
Thanks to the brilliant one out there that figures this out!