Reputation: 31
i'm trying to find a good exemple on uploading and downloading images using solely Silverlgith + Ria Services, i tried to find some but i failed, please any help would be appreciated.
thank you all in advance
Upvotes: 3
Views: 1288
Reputation: 6133
We did it by saving the images on disk (not in a DB) - like this:
Upload image:
void UploadJPGImage(string uniqueName, byte[] jpgBytes)
. This needs to be marked with the attribute for ClientAccess. The (server-side) implementation saves the image on the disk.Download image:
byte[] DownloadJPGImage(string uniqueName
)Upvotes: 1