Hi evry one,
My probleme is :
I have to convert a jpg image to a bmp image in progress l4g code. For exemple
C:\test.jpg in code
i use the os-command :
ASSIGN wCommand = "C:\WINDOWS\system32\mspaint.exe" + " " + SUBSTRING(test,1,LENGTH(test) - 3) + "BMP".
OS-COMMAND SILENT VALUE(wCommand) .
when i run my application. I have one message from mspaint.exe that a file test.jpg is not extiste, im sure that file exist.
Can some one helps me or tell me how to use LOAD-IMAGE for a jpg image.
Using mspaint.exe may be an option, but I think it will be more complicated that it has to. I'd suggest browsing the web for jpg to bmp conversion utilities. I think I've seen utlilites (some of them shareware/freeware if you're comfortable using these type of utils rather than commercial ones) that have command-line interfaces, thus they are much easier to use for what need, and invoking them from the 4GL.
Hope it helps,
Salvador
Thank you very much Salvador,
That's i did and it was ok. Do you know if there are a possibility to load a JPG image by the load-image fonction and if it's , is that possible with a 8.3A version.
As far as I can remember it is not possible in V8. LOAD-IMAGE was enhanced in V9 to allow for additional image file types.