Hi All
Kindly, I am trying to capture photo on my apex page in android mobile, please help on how I can save the photo to database
Apex version: 19.2
This is what I did till now:
- I create new region static content with the following code which will open camera, take photo and collect the image name and path
- after that how I can save the collected image to table in database with column blob
<div class="row">
<div class="col col-12 apex-col-auto">
<div class="t-Form-fieldContainer t-Form-fieldContainer--floatingLabel lto21482940321761632_0 apex-item-wrapper apex-item-wrapper--file " id="P2_CAPTURE_PHOTO_CONTAINER">
<div class="t-Form-labelContainer">
<label for="P2_CAPTURE_PHOTO" id="P2_CAPTURE_PHOTO_LABEL" class="t-Form-label">Capture Photo</label>
</div>
<div class="t-Form-inputContainer">
<div class="t-Form-itemWrapper">
<div id="P2_CAPTURE_PHOTO_GROUP" class="apex-item-group apex-item-group--file">
<input type="file" accept="image/*" capture="camera" id="P2_CAPTURE_PHOTO" name="P2_CAPTURE_PHOTO" class="file apex-item-file" data-caption="Capture Photo" size="30">
<span id="P2_CAPTURE_PHOTO_DROPZONE" class="apex-item-file-dropzone" aria-hidden="true">
<span class="apex-item-file-dropzone-label">Choose file</span>
<span class="apex-item-file-dropzone-icon">
<span class="fa fa-folder-search" aria-hidden="true"></span>
</span>
</span>
</div>
</div>
<span id="P2_CAPTURE_PHOTO_error_placeholder" class="a-Form-error" data-template-id="7207927293014120_ET"></span>
</div>
</div>
</div>
</div>
Thanks ...