Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

How to load image from URL ? #55

Open
DexterDsd opened this issue Apr 29, 2020 · 6 comments
Open

How to load image from URL ? #55

DexterDsd opened this issue Apr 29, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@DexterDsd
Copy link

No description provided.

@iamutkarshtiwari
Copy link
Owner

Thanks! I think that's a good enhancement Idea. Let me put it in the backlog.

@iamutkarshtiwari iamutkarshtiwari self-assigned this Apr 29, 2020
@iamutkarshtiwari iamutkarshtiwari added the enhancement New feature or request label Apr 29, 2020
@Dhaval3344
Copy link

Hello @iamutkarshtiwari
I'm trying to open an image from the server url but the image is not loading and showing the below error in the error log, please check

2021-05-28 18:00:03.522 13936-14010/io.github.iamutkarshtiwari.ananasproject E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: http:/ybtest.in/craftio/assets/images/uploads/users/1619101389phpLukept.jpeg: open failed: ENOENT (No such file or directory)

When this issue will solve? because someone already posted this issue 1 year ago,
Please check and try to solve as soon as possible so user can use your library

Thanks.

@chichi289
Copy link

Hello @Dhaval3344 I have customized little bit code to load image from url & its working fine with library let me know if you need still any help

Thank you.

@Dhaval3344
Copy link

Dhaval3344 commented Sep 7, 2021

Hello @chichi289 can you please guide me on how you did it?

@chichi289
Copy link

Hello @Dhaval3344

step 1 :- Generate bitmap from image url
step 2 :- Create file (in internal or cache dir)
step 3 :- Save that bitmap to the newly created file
step 4 :- Now you have file so you can get that file's path and pass to ImageEditorIntentBuilder

And it will work.

Let me know if you have any queries

Thank you.

@Dhaval3344
Copy link

Thanks, @chichi289 for helping, I followed your step and it's working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants