131
Views
11
Comments
Solved
[Image Compress] A generic error occurred in GDI+
Question
image-compress
Service icon
Forge asset by Salman Ansari

I was trying to use this plugin for a Mobile application, but it's giving the error "A generic error occurred in GDI+".
So I've been searching and all the posts that I found say basically the same, you may not have permissions to save the image in the Path you are trying to write to.
I even tried changing the Path:

from -> //string imagePath = cls.Server.MapPath("~/App_Data/Compressed_" + fileSuffixfix + ".jpeg");
to -> string imagePath = cls.Server.MapPath("~/" + fileSuffixfix + "Compressed.jpeg");

But the error continues to occur, so I can only conclude that I don't have any permissions to write in any path? Do I need to do something more to make it work in mobile?

Thanks in advance for any help.

2021-09-10 14-03-53
Salman Ansari
Solution

Hi Miguel,

You can check the updated version of component.It should work.


Note:-Remove the dependency of creating the physical directory on server.(That is causing the A generic error occurred in GDI+ error)


2021-09-10 14-03-53
Salman Ansari

Will update component for latest version soon with all the help file to use it

UserImage.jpg
Fernando Neto

Hi All,


Is there any development on this topic. Im getting the same error. Is there any alternative to this plugin

UserImage.jpg
Gerry Barron

Hi Guys, 

I have the same problem. Any update for this one?


Thanks!

2021-09-10 14-03-53
Salman Ansari

Hi Guys,
Let me check updated version on my end

Thanks,
Salman

UserImage.jpg
Jeffrey Paran

Hi Salman,


Any update? Thank you

2021-09-10 14-03-53
Salman Ansari

Jeffrey Paran wrote:

Hi Salman,


Any update? Thank you

Hi Jeffrey,


I made the changes in extension but due to some error on "Publishing Component" unable to publish extension.

Raising ticket for OutSystems Support


Thanks,

Salman

2021-09-10 14-03-53
Salman Ansari

Jeffrey Paran wrote:

Hi Salman,


Any update? Thank you

Could you please check now


2021-10-19 10-28-13
Miguel Silva

Hi Salman,


I recently needed to use this component and the error continues to happen.

Can you please verify what is happening?



Sincerely,

Miguel Silva

2021-09-10 14-03-53
Salman Ansari

Hi Miguel,


Let me check will update you soon on this

2021-09-10 14-03-53
Salman Ansari
Solution

Hi Miguel,

You can check the updated version of component.It should work.


Note:-Remove the dependency of creating the physical directory on server.(That is causing the A generic error occurred in GDI+ error)


2021-10-19 10-28-13
Miguel Silva

Hi Salman,

It's OK now.


Thank you for your availability.


Sincerely,

Miguel Silva

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.