Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Storing media files on server and retrive to client sid... RSS

4 replies

Last post Mar 21, 2011 06:54 AM by Ajo Mathew

(0)
  • Ajo Mathew

    Ajo Mathew

    Member

    36 Points

    50 Posts

    Storing media files on server and retrive to client side for embedding in a canvas

    Mar 08, 2011 05:32 PM | LINK

    I am doing my project in silverlight,which should be able to upload image to a canvas where I can reposition,resize them etc...

    The question is if I save the canvas as xaml file in server and second time when i retrive it how can I remap the images I used earlier,ie. download the used images and map them

    (I know there is a need for using WCF RIA services for connecting database to silverlight app.)

    Do I have to download the images to the program from server and keep them in a local temp storage. Does there exists such a storage? Or its stored within that .xap file.

    Thanks in advance

    download media server side database C# Silverlight 4

  • syed amjad

    syed amjad

    Star

    9773 Points

    1834 Posts

    Re: Storing media files on server and retrive to client side for embedding in a canvas

    Mar 09, 2011 05:37 AM | LINK

    Ajo Mathew

    second time when i retrive it how can I remap the images I used earlier,ie

    yes you can, follow this link

    http://stackoverflow.com/questions/1377146/how-to-dynamically-load-internal-xaml-in-silverlight-3-at-runtime


    Ajo Mathew

    I know there is a need for using WCF RIA services for connecting database to silverlight app.)

    to get the data from database, its not necessary to have WCF Ria services, you can have anyone of the webservices like .asmx or WCF


    Ajo Mathew

    Do I have to download the images to the program from server and keep them in a local temp storage

    there are many alternates to store the images like

    1. you can just save the image in the database as bytes and later get it back and display in any controls which is depends on you.

    2. save the image physically on server.

    3. save the the image in Isolated Storage in client side

    Thanks & Regards
    Syed Amjad
    Silverlight Developer
    follow me on skype : syed.amjad0786
    Mark as Answer", if it helped you or it might help others too.
  • Ajo Mathew

    Ajo Mathew

    Member

    36 Points

    50 Posts

    Re: Storing media files on server and retrive to client side for embedding in a canvas

    Mar 09, 2011 02:42 PM | LINK

    I am saving the images in the server /image folder.Loading the canvas is understood. But with the image there is a problem if they are saved in the server folder. Do I have to download them to the client side for mapping. As you said Isolated Storage  in client side,How is saved something like a temp folder..?

  • syed amjad

    syed amjad

    Star

    9773 Points

    1834 Posts

    Re: Storing media files on server and retrive to client side for embedding in a canvas

    Mar 09, 2011 04:15 PM | LINK

    Ajo Mathew

    Do I have to download them to the client side

    yes you need to download the image from server folder , follow my post in this link

    http://forums.silverlight.net/forums/t/220462.aspx

    i have wrote complete code there to download a file from the server with the help of .asmx webservice.

    Let me know if anything else you want

    Thanks & Regards
    Syed Amjad
    Silverlight Developer
    follow me on skype : syed.amjad0786
    Mark as Answer", if it helped you or it might help others too.
  • Ajo Mathew

    Ajo Mathew

    Member

    36 Points

    50 Posts

    Re: Storing media files on server and retrive to client side for embedding in a canvas

    Mar 21, 2011 06:54 AM | LINK

    I meant downloading image file file to the .xap file from where I can map them to the xaml file. This xaml file is saved in the server with the image mapping.


    In my project I was able to create a canvas to where insert text and finally save them on server as xml file and later download and load them using xmlreader and displaying that file in the layout root. I was also able to upload the image file to server using reciver.ashx which save them on /image folder on the server.