1

I am using silverlight plugin for capturing images through webcam and want to save these images in mvc app. so that to use them for retrieving some information.this application is regarding the decoding of barcode image and then making that barcode a unique id so that a particular record from the database will be retrieved accordingly.

Any help will be highly appreciated.

Thanks.

Richard
  • 106,783
  • 21
  • 203
  • 265
Shilpa
  • 49
  • 8
  • A Silverlight object can be embedded anywhere inside an html mark-up, also you can call web-services or javascript functions. So in theory it will work. – vortexwolf Mar 21 '11 at 16:57
  • Thanks for your concern. but can you make it happened without webservices. But thanks a lot. – Shilpa Mar 22 '11 at 05:34
  • Thanks i am also using the same concept for the integration but the problem is in saving the images in my application without the use of save dialog box as it is used previously by me.If you can help it out. – Shilpa Mar 22 '11 at 06:59

1 Answers1

1

So, after you've obtained the image from the webcam, the file is stored in a Memory Stream, correct?

Just do a normal HTTP Post to an MVC controller action that includes an HTTPPostedFileBase as one of its parameters:

-- uploading a silverlight memory stream Very simple Silverlight File Upload example

-- capturing the file inside MVC http://haacked.com/archive/2010/07/16/uploading-files-with-aspnetmvc.aspx

Community
  • 1
  • 1
a7drew
  • 7,801
  • 6
  • 38
  • 39