Image is not showing after fetching using the Camera Native in Ionic 4Not able to convert the base64 to image path in Ionic 4ngCordova camera works on emulator but not on deviceIonic button showing 'ion-button' is not a known elementFILE_URI path for Camera not working on IONIC 4Photos are not showing Ionic 3How to run native camera using ionic devappIonic cordova camera is not availableModal box not showing in ionic 4Ionic Native HTTP client (@ionic-native/http) not working when importingBackground image is not showing Ionic 4ionic 4 flashlight native plugin not working
Fitting a mixture of two normal distributions for a data set?
Layout of complex table
Does the UK have a written constitution?
Singing along to guitar chords (harmony)
How well known and how commonly used was Huffman coding in 1979?
Why is C++ initial allocation so much larger than C's?
Does squid ink pasta bleed?
Do equal angles necessarily mean a polygon is regular?
Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?
Averting Real Women Don’t Wear Dresses
Why is Madam Hooch not a professor?
First-year PhD giving a talk among well-established researchers in the field
Calculating the partial sum of a expl3 sequence
How to positively portray high and mighty characters?
Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?
Simple object validator with a new API
How should I behave to assure my friends that I am not after their money?
"It will become the talk of Paris" - translation into French
Mount a folder with a space on Linux
Is it OK to bottle condition using previously contaminated bottles?
How many satellites can stay in a Lagrange point?
How can I convince my reader that I will not use a certain trope?
Why does the numerical solution of an ODE move away from an unstable equilibrium?
Does image quality of the lens affect "focus and recompose" technique?
Image is not showing after fetching using the Camera Native in Ionic 4
Not able to convert the base64 to image path in Ionic 4ngCordova camera works on emulator but not on deviceIonic button showing 'ion-button' is not a known elementFILE_URI path for Camera not working on IONIC 4Photos are not showing Ionic 3How to run native camera using ionic devappIonic cordova camera is not availableModal box not showing in ionic 4Ionic Native HTTP client (@ionic-native/http) not working when importingBackground image is not showing Ionic 4ionic 4 flashlight native plugin not working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am working on Ionic 4 app and I have used the Camera Native plugin for showing the image but the image is not showing.
This is my editprofile.page.html:
<img src=" imagepic " />
This is my editprofile.page.ts:
imagepic: any;
imageuserchoose(sourceType)
const options: CameraOptions =
quality: 100,
sourceType: sourceType,
destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
saveToPhotoAlbum: true,
correctOrientation: true,
allowEdit: true,
this.camera.getPicture(options).then((imageData) =>
let base64Image = 'data:image/jpeg;base64,' + imageData;
this.userdetailsedit.patchValue(
profile_pic: base64Image,
);
this.imagepic = 'data:image/jpeg;base64,' + imageData;
, (err) =>
// Handle error
);
async presentActionSheet()
const actionSheet = await this.actionSheetController.create(
header: 'Select Image Source',
buttons: [
text: 'Choose From Gallery',
icon: 'images',
handler: () =>
this.imageuserchoose(this.camera.PictureSourceType.PHOTOLIBRARY);
,
text: 'Use Camera',
icon: 'camera',
cssClass: 'myActionSheetBtnStyle',
handler: () =>
this.imageuserchoose(this.camera.PictureSourceType.CAMERA);
,
text: 'Cancel',
role: 'cancel'
]
);
await actionSheet.present();
The problem is that, I am not able to show the image in the html because it is showing the error.
This is the code that is coming to the html:
<img _ngcontent-c4="" src="unsafe:data:image/jpeg;base64,file:///storage/emulated/0/Android/data/com.rflchallenges/cache/1553506541065.jpg">
Error:
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
Any help is much appreciated.
ionic-framework ionic4
|
show 9 more comments
I am working on Ionic 4 app and I have used the Camera Native plugin for showing the image but the image is not showing.
This is my editprofile.page.html:
<img src=" imagepic " />
This is my editprofile.page.ts:
imagepic: any;
imageuserchoose(sourceType)
const options: CameraOptions =
quality: 100,
sourceType: sourceType,
destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
saveToPhotoAlbum: true,
correctOrientation: true,
allowEdit: true,
this.camera.getPicture(options).then((imageData) =>
let base64Image = 'data:image/jpeg;base64,' + imageData;
this.userdetailsedit.patchValue(
profile_pic: base64Image,
);
this.imagepic = 'data:image/jpeg;base64,' + imageData;
, (err) =>
// Handle error
);
async presentActionSheet()
const actionSheet = await this.actionSheetController.create(
header: 'Select Image Source',
buttons: [
text: 'Choose From Gallery',
icon: 'images',
handler: () =>
this.imageuserchoose(this.camera.PictureSourceType.PHOTOLIBRARY);
,
text: 'Use Camera',
icon: 'camera',
cssClass: 'myActionSheetBtnStyle',
handler: () =>
this.imageuserchoose(this.camera.PictureSourceType.CAMERA);
,
text: 'Cancel',
role: 'cancel'
]
);
await actionSheet.present();
The problem is that, I am not able to show the image in the html because it is showing the error.
This is the code that is coming to the html:
<img _ngcontent-c4="" src="unsafe:data:image/jpeg;base64,file:///storage/emulated/0/Android/data/com.rflchallenges/cache/1553506541065.jpg">
Error:
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
Any help is much appreciated.
ionic-framework ionic4
Are you selecting images from gallery ?
– Sudarshana Dayananda
Mar 25 at 10:38
@SudarshanaDayananda .I am selecting the image form the gallery and camera but in both case image is not showing.
– Raghav
Mar 25 at 10:40
@SudarshanaDayananda. Can you help me in this?
– Raghav
Mar 25 at 10:42
Did you try changingsourceType
toPHOTOLIBRARY
?
– Sudarshana Dayananda
Mar 25 at 10:43
@SudarshanaDayananda. Yes and it is not showing the image. I have edited my code. Please Check.
– Raghav
Mar 25 at 10:45
|
show 9 more comments
I am working on Ionic 4 app and I have used the Camera Native plugin for showing the image but the image is not showing.
This is my editprofile.page.html:
<img src=" imagepic " />
This is my editprofile.page.ts:
imagepic: any;
imageuserchoose(sourceType)
const options: CameraOptions =
quality: 100,
sourceType: sourceType,
destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
saveToPhotoAlbum: true,
correctOrientation: true,
allowEdit: true,
this.camera.getPicture(options).then((imageData) =>
let base64Image = 'data:image/jpeg;base64,' + imageData;
this.userdetailsedit.patchValue(
profile_pic: base64Image,
);
this.imagepic = 'data:image/jpeg;base64,' + imageData;
, (err) =>
// Handle error
);
async presentActionSheet()
const actionSheet = await this.actionSheetController.create(
header: 'Select Image Source',
buttons: [
text: 'Choose From Gallery',
icon: 'images',
handler: () =>
this.imageuserchoose(this.camera.PictureSourceType.PHOTOLIBRARY);
,
text: 'Use Camera',
icon: 'camera',
cssClass: 'myActionSheetBtnStyle',
handler: () =>
this.imageuserchoose(this.camera.PictureSourceType.CAMERA);
,
text: 'Cancel',
role: 'cancel'
]
);
await actionSheet.present();
The problem is that, I am not able to show the image in the html because it is showing the error.
This is the code that is coming to the html:
<img _ngcontent-c4="" src="unsafe:data:image/jpeg;base64,file:///storage/emulated/0/Android/data/com.rflchallenges/cache/1553506541065.jpg">
Error:
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
Any help is much appreciated.
ionic-framework ionic4
I am working on Ionic 4 app and I have used the Camera Native plugin for showing the image but the image is not showing.
This is my editprofile.page.html:
<img src=" imagepic " />
This is my editprofile.page.ts:
imagepic: any;
imageuserchoose(sourceType)
const options: CameraOptions =
quality: 100,
sourceType: sourceType,
destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
saveToPhotoAlbum: true,
correctOrientation: true,
allowEdit: true,
this.camera.getPicture(options).then((imageData) =>
let base64Image = 'data:image/jpeg;base64,' + imageData;
this.userdetailsedit.patchValue(
profile_pic: base64Image,
);
this.imagepic = 'data:image/jpeg;base64,' + imageData;
, (err) =>
// Handle error
);
async presentActionSheet()
const actionSheet = await this.actionSheetController.create(
header: 'Select Image Source',
buttons: [
text: 'Choose From Gallery',
icon: 'images',
handler: () =>
this.imageuserchoose(this.camera.PictureSourceType.PHOTOLIBRARY);
,
text: 'Use Camera',
icon: 'camera',
cssClass: 'myActionSheetBtnStyle',
handler: () =>
this.imageuserchoose(this.camera.PictureSourceType.CAMERA);
,
text: 'Cancel',
role: 'cancel'
]
);
await actionSheet.present();
The problem is that, I am not able to show the image in the html because it is showing the error.
This is the code that is coming to the html:
<img _ngcontent-c4="" src="unsafe:data:image/jpeg;base64,file:///storage/emulated/0/Android/data/com.rflchallenges/cache/1553506541065.jpg">
Error:
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME
Any help is much appreciated.
ionic-framework ionic4
ionic-framework ionic4
edited Mar 25 at 10:47
Raghav
asked Mar 25 at 9:46
RaghavRaghav
5542 gold badges3 silver badges26 bronze badges
5542 gold badges3 silver badges26 bronze badges
Are you selecting images from gallery ?
– Sudarshana Dayananda
Mar 25 at 10:38
@SudarshanaDayananda .I am selecting the image form the gallery and camera but in both case image is not showing.
– Raghav
Mar 25 at 10:40
@SudarshanaDayananda. Can you help me in this?
– Raghav
Mar 25 at 10:42
Did you try changingsourceType
toPHOTOLIBRARY
?
– Sudarshana Dayananda
Mar 25 at 10:43
@SudarshanaDayananda. Yes and it is not showing the image. I have edited my code. Please Check.
– Raghav
Mar 25 at 10:45
|
show 9 more comments
Are you selecting images from gallery ?
– Sudarshana Dayananda
Mar 25 at 10:38
@SudarshanaDayananda .I am selecting the image form the gallery and camera but in both case image is not showing.
– Raghav
Mar 25 at 10:40
@SudarshanaDayananda. Can you help me in this?
– Raghav
Mar 25 at 10:42
Did you try changingsourceType
toPHOTOLIBRARY
?
– Sudarshana Dayananda
Mar 25 at 10:43
@SudarshanaDayananda. Yes and it is not showing the image. I have edited my code. Please Check.
– Raghav
Mar 25 at 10:45
Are you selecting images from gallery ?
– Sudarshana Dayananda
Mar 25 at 10:38
Are you selecting images from gallery ?
– Sudarshana Dayananda
Mar 25 at 10:38
@SudarshanaDayananda .I am selecting the image form the gallery and camera but in both case image is not showing.
– Raghav
Mar 25 at 10:40
@SudarshanaDayananda .I am selecting the image form the gallery and camera but in both case image is not showing.
– Raghav
Mar 25 at 10:40
@SudarshanaDayananda. Can you help me in this?
– Raghav
Mar 25 at 10:42
@SudarshanaDayananda. Can you help me in this?
– Raghav
Mar 25 at 10:42
Did you try changing
sourceType
to PHOTOLIBRARY
?– Sudarshana Dayananda
Mar 25 at 10:43
Did you try changing
sourceType
to PHOTOLIBRARY
?– Sudarshana Dayananda
Mar 25 at 10:43
@SudarshanaDayananda. Yes and it is not showing the image. I have edited my code. Please Check.
– Raghav
Mar 25 at 10:45
@SudarshanaDayananda. Yes and it is not showing the image. I have edited my code. Please Check.
– Raghav
Mar 25 at 10:45
|
show 9 more comments
1 Answer
1
active
oldest
votes
If you want to load selected image to the img
tag you can give a try using @ionic-native/file
plugin.
You have to do two separate implementations by considering whether you are selecting image from gallery or take an image using camera.
constructor(private file: File)
this.camera.getPicture(options).then((imageData) =>
if (sourceType === this.camera.PictureSourceType.PHOTOLIBRARY)
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let index = filename.indexOf('?');
if (index > -1)
filename = filename.substring(0,index);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
if (sourceType === this.camera.PictureSourceType.CAMERA)
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
, (err) =>
);
Try this one. Sometimes this will fix your issue.
Error: Property 'readAsDataURL' does not exist on type 'File'.
– Raghav
Mar 25 at 11:30
Did you install@ionic-native/file
node module ?
– Sudarshana Dayananda
Mar 25 at 11:51
Thank you it is working but why you said that sometimes it will work. It is working for both, the gallery and camera.
– Raghav
Mar 25 at 11:58
Every time this will works. I mean some times it will work for you. It depends on your luck bro..:-)
– Sudarshana Dayananda
Mar 25 at 12:02
@Raghav if this worked for you. mark the answer as correct answer.
– Sudarshana Dayananda
Mar 25 at 12:31
|
show 6 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55335016%2fimage-is-not-showing-after-fetching-using-the-camera-native-in-ionic-4%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you want to load selected image to the img
tag you can give a try using @ionic-native/file
plugin.
You have to do two separate implementations by considering whether you are selecting image from gallery or take an image using camera.
constructor(private file: File)
this.camera.getPicture(options).then((imageData) =>
if (sourceType === this.camera.PictureSourceType.PHOTOLIBRARY)
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let index = filename.indexOf('?');
if (index > -1)
filename = filename.substring(0,index);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
if (sourceType === this.camera.PictureSourceType.CAMERA)
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
, (err) =>
);
Try this one. Sometimes this will fix your issue.
Error: Property 'readAsDataURL' does not exist on type 'File'.
– Raghav
Mar 25 at 11:30
Did you install@ionic-native/file
node module ?
– Sudarshana Dayananda
Mar 25 at 11:51
Thank you it is working but why you said that sometimes it will work. It is working for both, the gallery and camera.
– Raghav
Mar 25 at 11:58
Every time this will works. I mean some times it will work for you. It depends on your luck bro..:-)
– Sudarshana Dayananda
Mar 25 at 12:02
@Raghav if this worked for you. mark the answer as correct answer.
– Sudarshana Dayananda
Mar 25 at 12:31
|
show 6 more comments
If you want to load selected image to the img
tag you can give a try using @ionic-native/file
plugin.
You have to do two separate implementations by considering whether you are selecting image from gallery or take an image using camera.
constructor(private file: File)
this.camera.getPicture(options).then((imageData) =>
if (sourceType === this.camera.PictureSourceType.PHOTOLIBRARY)
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let index = filename.indexOf('?');
if (index > -1)
filename = filename.substring(0,index);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
if (sourceType === this.camera.PictureSourceType.CAMERA)
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
, (err) =>
);
Try this one. Sometimes this will fix your issue.
Error: Property 'readAsDataURL' does not exist on type 'File'.
– Raghav
Mar 25 at 11:30
Did you install@ionic-native/file
node module ?
– Sudarshana Dayananda
Mar 25 at 11:51
Thank you it is working but why you said that sometimes it will work. It is working for both, the gallery and camera.
– Raghav
Mar 25 at 11:58
Every time this will works. I mean some times it will work for you. It depends on your luck bro..:-)
– Sudarshana Dayananda
Mar 25 at 12:02
@Raghav if this worked for you. mark the answer as correct answer.
– Sudarshana Dayananda
Mar 25 at 12:31
|
show 6 more comments
If you want to load selected image to the img
tag you can give a try using @ionic-native/file
plugin.
You have to do two separate implementations by considering whether you are selecting image from gallery or take an image using camera.
constructor(private file: File)
this.camera.getPicture(options).then((imageData) =>
if (sourceType === this.camera.PictureSourceType.PHOTOLIBRARY)
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let index = filename.indexOf('?');
if (index > -1)
filename = filename.substring(0,index);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
if (sourceType === this.camera.PictureSourceType.CAMERA)
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
, (err) =>
);
Try this one. Sometimes this will fix your issue.
If you want to load selected image to the img
tag you can give a try using @ionic-native/file
plugin.
You have to do two separate implementations by considering whether you are selecting image from gallery or take an image using camera.
constructor(private file: File)
this.camera.getPicture(options).then((imageData) =>
if (sourceType === this.camera.PictureSourceType.PHOTOLIBRARY)
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let index = filename.indexOf('?');
if (index > -1)
filename = filename.substring(0,index);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
if (sourceType === this.camera.PictureSourceType.CAMERA)
let filename = imageData.substring(imageData.lastIndexOf('/') + 1);
let path = imageData.substring(0, imageData.lastIndexOf('/') + 1);
this.file.readAsDataURL(path, filename).then(data =>
this.imagepic = data;
);
, (err) =>
);
Try this one. Sometimes this will fix your issue.
answered Mar 25 at 11:18
Sudarshana DayanandaSudarshana Dayananda
2,3472 gold badges7 silver badges24 bronze badges
2,3472 gold badges7 silver badges24 bronze badges
Error: Property 'readAsDataURL' does not exist on type 'File'.
– Raghav
Mar 25 at 11:30
Did you install@ionic-native/file
node module ?
– Sudarshana Dayananda
Mar 25 at 11:51
Thank you it is working but why you said that sometimes it will work. It is working for both, the gallery and camera.
– Raghav
Mar 25 at 11:58
Every time this will works. I mean some times it will work for you. It depends on your luck bro..:-)
– Sudarshana Dayananda
Mar 25 at 12:02
@Raghav if this worked for you. mark the answer as correct answer.
– Sudarshana Dayananda
Mar 25 at 12:31
|
show 6 more comments
Error: Property 'readAsDataURL' does not exist on type 'File'.
– Raghav
Mar 25 at 11:30
Did you install@ionic-native/file
node module ?
– Sudarshana Dayananda
Mar 25 at 11:51
Thank you it is working but why you said that sometimes it will work. It is working for both, the gallery and camera.
– Raghav
Mar 25 at 11:58
Every time this will works. I mean some times it will work for you. It depends on your luck bro..:-)
– Sudarshana Dayananda
Mar 25 at 12:02
@Raghav if this worked for you. mark the answer as correct answer.
– Sudarshana Dayananda
Mar 25 at 12:31
Error: Property 'readAsDataURL' does not exist on type 'File'.
– Raghav
Mar 25 at 11:30
Error: Property 'readAsDataURL' does not exist on type 'File'.
– Raghav
Mar 25 at 11:30
Did you install
@ionic-native/file
node module ?– Sudarshana Dayananda
Mar 25 at 11:51
Did you install
@ionic-native/file
node module ?– Sudarshana Dayananda
Mar 25 at 11:51
Thank you it is working but why you said that sometimes it will work. It is working for both, the gallery and camera.
– Raghav
Mar 25 at 11:58
Thank you it is working but why you said that sometimes it will work. It is working for both, the gallery and camera.
– Raghav
Mar 25 at 11:58
Every time this will works. I mean some times it will work for you. It depends on your luck bro..:-)
– Sudarshana Dayananda
Mar 25 at 12:02
Every time this will works. I mean some times it will work for you. It depends on your luck bro..:-)
– Sudarshana Dayananda
Mar 25 at 12:02
@Raghav if this worked for you. mark the answer as correct answer.
– Sudarshana Dayananda
Mar 25 at 12:31
@Raghav if this worked for you. mark the answer as correct answer.
– Sudarshana Dayananda
Mar 25 at 12:31
|
show 6 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55335016%2fimage-is-not-showing-after-fetching-using-the-camera-native-in-ionic-4%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you selecting images from gallery ?
– Sudarshana Dayananda
Mar 25 at 10:38
@SudarshanaDayananda .I am selecting the image form the gallery and camera but in both case image is not showing.
– Raghav
Mar 25 at 10:40
@SudarshanaDayananda. Can you help me in this?
– Raghav
Mar 25 at 10:42
Did you try changing
sourceType
toPHOTOLIBRARY
?– Sudarshana Dayananda
Mar 25 at 10:43
@SudarshanaDayananda. Yes and it is not showing the image. I have edited my code. Please Check.
– Raghav
Mar 25 at 10:45