Solved

Creating a ZIP File from List<Image> in silverlight

Posted on 2011-02-18
4
397 Views
Last Modified: 2012-05-11
In my SL4 app, I'm pulling in a zip file from the server, extracting the contents (Using SharpGIS), which are all image files, into a List<Image> and binding this to an image slideshow. This all works great.

I now need to do things the other way round. I have the code and UI in Place to add an image file to the List<Image>, I need to be able to then upload the changed image set back to the server, and replace the existing ZIP file with the new contents.

So, what is the best way to do this. I can see 3 options:

1) Handle the ZIP in SL (somehow) and upload the zip file to my WCF service to be saved
2) Upload the List<Image> to the WCF Service, extract each image, and create the ZIP file at the service
3) Convert the Images to Bytes and upload a file at a time to the WCF Service (Could be 50+ images)

Anyone get any ideas what is the best method?
0
Comment
Question by:wint100
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:John Claes
ID: 34925660
you want to Add an Image to the Zipfile?

then you should only send the image to the server, and do the adding overthere.
SharpGis will allow you over there to add the Image on a easy way.

regards
poor beggar
0
 
LVL 1

Author Comment

by:wint100
ID: 34925689
My main issue is how to get ALL of the Images from the List<Image>, to the server. Or shall I simply pass the List to the server, and handle everything there? Would this bloat the process at all, as a 1MB JPG could bloat up to 60+MB when loaded into memory.
0
 
LVL 10

Accepted Solution

by:
John Claes earned 500 total points
ID: 34927146
This is gone go wild !!

I would suggest sending Image by Image ....
So this way the server can add them directly when the user is adding them...
0
 
LVL 1

Author Comment

by:wint100
ID: 34937740
Hi,

I've now started to use the Upload control (which is free!) from www.vectorlight.net, this makes the whole upload process very easy.

I've also limited the number of files uploaded to those that have changed, or been added.

Thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question