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 )

11039 put(a) pogledan, 5 odgovor(a) 26.2.2014. 14:43:10Kreirao(la) nasman
nasman

nasman

26.2.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 

Ovaj sadržaj još nije ocijenjen. 
845 Reputacija 93 Ukupno objava
khorvat

khorvat

26.2.2014. 14:53:24
Hi,

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

Thanks
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
nasman

nasman

26.2.2014. 15:27:09
Hi,

Yes, We have a source code 4.7.40.3493.  
Ovaj sadržaj još nije ocijenjen. 
845 Reputacija 93 Ukupno objava
nasman

nasman

27.2.2014. 15:40:59
Hi khorvat,

can you please help me regarding this issue?


Ovaj sadržaj još nije ocijenjen. 
845 Reputacija 93 Ukupno objava
Dalibor

Dalibor

27.2.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
Ovaj sadržaj još nije ocijenjen. 
250 Reputacija 19 Ukupno objava