1

I'm building an asp.net website using c# and .net 2.0. One of the pages requires to take a picture (or choose from already existing pictures), upload it to the server, add other info and save everything in the database.

I'm using a FileUpload control and everything is working fine on a PC.

Android gives me the options to choose a file from Gallery, File system, Music Track etc. but there is no option to take a picture from the camera. The FileUpload control is disabled in iPhone.

I want to click on a button or use something else and be able to choose to upload an image from the gallery or start the camera and take one. Is there a way to do it?

Thanks!

4

1 回答 1

-1

允许用户从图库中选择图片或拍摄新照片(如果设备支持摄影)都存在于同一类中。该类名为UIImagePickerController并具有名为“sourceType”的属性,可让您指定用户是否将拍照、从图库中进行选择等。

-编辑-

这是适用于 iOS

于 2012-07-11T14:44:07.083 回答