Mono Support Storing avatar as a jpg image  

Viewed 10879 time(s), 5 post(s), 2/26/2014 2:43:10 PM - by nasman
2/26/2014 2:43:10 PM
845 Reputation 93 Total posts

Hi,

We want to store avatar as a jpg  image instead of storing in a database. so what we need to do for this?

Many Thanks

Mohsin 

1
2/26/2014 2:53:24 PM
15993 Reputation 2214 Total posts

Hi,

if I can recall you have a source code, can you please confirm so we can proceed ?

Thanks

2
2/26/2014 3:27:09 PM
845 Reputation 93 Total posts

Hi,

Yes, We have a source code 4.7.40.3493.  

3
2/27/2014 3:40:59 PM
845 Reputation 93 Total posts

Hi khorvat,

can you please help me regarding this issue?


4
2/27/2014 4:50:06 PM
250 Reputation 19 Total posts

Hello Nasman,

You can override the control MonoSoftware.MonoX.ModuleGallery.UserAvatar, and implement your own functionality for saving the file to the file system in the SaveAvatar method. You would have to do the same for fetching the avatar image.

Unfortunately there is no "switch" from saving avatar to the database to the file system.

Please let me know if you have further questions.

Regards,
Dalibor

5
This is a demo site for MonoX. Please visit Mono Software for more info.