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 10188 time(s), 5 post(s) 2/26/2014 2:43:10 PMby nasman
nasman

nasman

2/26/2014 2:43:10 PM
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 

This content has not been rated yet. 
845 Reputation 93 Total posts
khorvat

khorvat

2/26/2014 2:53:24 PM
Hi,

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

Thanks
This content has not been rated yet. 
15993 Reputation 2214 Total posts
nasman

nasman

2/26/2014 3:27:09 PM
Hi,

Yes, We have a source code 4.7.40.3493.  
This content has not been rated yet. 
845 Reputation 93 Total posts
nasman

nasman

2/27/2014 3:40:59 PM
Hi khorvat,

can you please help me regarding this issue?


This content has not been rated yet. 
845 Reputation 93 Total posts
Dalibor

Dalibor

2/27/2014 4:50:06 PM
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
This content has not been rated yet. 
250 Reputation 19 Total posts