Take picture with camera and send with GWT uploader

Radium

I am creating the image uploading form using GWT Uploader library. http://www.moxiegroup.com/moxieapps/gwt-uploader/

There is a requirement, that user should be able to use camera on his mobile device or webcamera to create the picture. As far as I know, this can be done using this HTML code:

<input type="file" name="image" accept="image/*" capture>

It should generate Input component of a HTML form which accepts images and what is important - capture parameter tells to the browser, that it should start camera to take the picture.

Is there any way, how to make the library generate the input with capture parameter? I studied API of GWT Uploader and found out, that it is a wrapper for another library SWFUpload. I studied also API of this one, but did not find anything useful.

Before I start hacking the generated code and manipulate with DOM, I would like to know, if there is more standard way to achieve it.

Andrei Volgin

You can add any attribute to any widget/element in GWT:

myWidget.getElement().setAttribute("capture", "camera");

or

myWidget.getElement().setAttribute("accept", "image/*;capture=camera");

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Take a camera picture and send it to php server in iPhone

From Dev

ANDROID STUDIO: Take picture with Camera API -> Send this picture to another activity

From Dev

How to use flash to take picture on custom camera?

From Dev

Android - take picture - pass uri to camera app

From Dev

Android using front facing camera to take a picture

From Dev

Android - take picture - pass uri to camera app

From Dev

Take picture with front camera in android service

From Dev

How to use flash to take picture on custom camera?

From Dev

Take a picture with react-native-camera

From Dev

Android Camera2 : can't take picture with front camera

From Dev

How to take picture using Intent and send it by email

From Dev

Take picture from webcam or mobile camera in web applications

From Dev

Camera.PictureCallback stop preview after take a picture

From Dev

Android: take camera picture intent remove confirmation dialog

From Dev

UIImagePickerController: ignoring request to take picture; camera is changing modes

From Dev

Take picture only with android camera intent in Kotlin, not video

From Dev

Android Tablet Take Picture Camera Intent Activity Restarts

From Dev

Take a picture from camera, compress it and store in location which i specific

From Dev

Difference between triggering camera.take picture from button click[Working] and through function call[Not working]

From Dev

Can we use takePicture() in android without camera preview? I need to take a picture secretly for security purposes

From Dev

How to use existing camera app(not create one using MediaCapture) and take picture in windows phone 8.1(WinRT)?

From Dev

android: camera is not taking a picture

From Dev

Fine-uploader - Scaling picture by height

From Dev

Take picture with volume button

From Dev

How to take a picture in Xamarin?

From Dev

Application will take a picture, but will not save it

From Dev

Take a picture from terminal

From Dev

How to take a picture to show in a `ImageView` and save the picture?

From Dev

Camera is not saving after taking picture

Related Related

  1. 1

    Take a camera picture and send it to php server in iPhone

  2. 2

    ANDROID STUDIO: Take picture with Camera API -> Send this picture to another activity

  3. 3

    How to use flash to take picture on custom camera?

  4. 4

    Android - take picture - pass uri to camera app

  5. 5

    Android using front facing camera to take a picture

  6. 6

    Android - take picture - pass uri to camera app

  7. 7

    Take picture with front camera in android service

  8. 8

    How to use flash to take picture on custom camera?

  9. 9

    Take a picture with react-native-camera

  10. 10

    Android Camera2 : can't take picture with front camera

  11. 11

    How to take picture using Intent and send it by email

  12. 12

    Take picture from webcam or mobile camera in web applications

  13. 13

    Camera.PictureCallback stop preview after take a picture

  14. 14

    Android: take camera picture intent remove confirmation dialog

  15. 15

    UIImagePickerController: ignoring request to take picture; camera is changing modes

  16. 16

    Take picture only with android camera intent in Kotlin, not video

  17. 17

    Android Tablet Take Picture Camera Intent Activity Restarts

  18. 18

    Take a picture from camera, compress it and store in location which i specific

  19. 19

    Difference between triggering camera.take picture from button click[Working] and through function call[Not working]

  20. 20

    Can we use takePicture() in android without camera preview? I need to take a picture secretly for security purposes

  21. 21

    How to use existing camera app(not create one using MediaCapture) and take picture in windows phone 8.1(WinRT)?

  22. 22

    android: camera is not taking a picture

  23. 23

    Fine-uploader - Scaling picture by height

  24. 24

    Take picture with volume button

  25. 25

    How to take a picture in Xamarin?

  26. 26

    Application will take a picture, but will not save it

  27. 27

    Take a picture from terminal

  28. 28

    How to take a picture to show in a `ImageView` and save the picture?

  29. 29

    Camera is not saving after taking picture

HotTag

Archive