Hi,
In my mobile application, when the user uploads the image(tiff/tif) I want to preview the image. but i can't able to view the image in my application.
Can anyone help me out with this issue?
Thank you in advance.
Regards,
Vitheya.
Hi Vitheya,
I have had that requirement in the past once. Didn't get it working, as tiff files are not supported by most browsers.
What I did as a workaround is convert the GIFF on the fly toj pg image, using the ConvertTool with ConvertImageType of the Forge component:
https://www.outsystems.com/forge/component-overview/2/imagetoolbox
Daniel
Hi Daniel,
That also tired but it didn't work in mobile application.
If you provide sample oml for that image toolbox functionality, it would be easy to understand.
Vitheya S.
Yes I can do that, but you have to wait, no time during the day, I try in the evening.
But if you already tried that, then you can share what was the problem you were facing using the Image ToolBox, maybe it is something that is easy to fix.
Thank you for your quick response.
Herewith I attached my mobile application oml which I had implemented the ConvertImageType function using image toolbox component.
Ok i will look at it.
Hi again,
I got it working, some comments:
The upload widget
The ButtonOnClick action
On the save I used the file name to create a new file name.
Then some notes on testing this
See attached the OAP of the mobile app that I create that contains the module that you uploaded with my adjustments.
And this is the tiff i tested with which was successfully converted to PNG and then shown by the FileViewer plugin.
Thank you for the solution. It works.