MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Storing avatar as a jpg image   (Mono Support )

Viewed 11348 time(s), 5 post(s) 26.02.2014 14:43:10by nasman
nasman

nasman

26.02.2014 14:43:10
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 

Dieser Inhalt wurde noch nicht bewertet. 
845 Reputation 93 Total posts
khorvat

khorvat

26.02.2014 14:53:24
Hi,

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

Thanks
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
nasman

nasman

26.02.2014 15:27:09
Hi,

Yes, We have a source code 4.7.40.3493.  
Dieser Inhalt wurde noch nicht bewertet. 
845 Reputation 93 Total posts
nasman

nasman

27.02.2014 15:40:59
Hi khorvat,

can you please help me regarding this issue?


Dieser Inhalt wurde noch nicht bewertet. 
845 Reputation 93 Total posts
Dalibor

Dalibor

27.02.2014 16:50:06
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
Dieser Inhalt wurde noch nicht bewertet. 
250 Reputation 19 Total posts