fresco icon indicating copy to clipboard operation
fresco copied to clipboard

how can i show the local image?

Open lam-bun opened this issue 11 years ago • 1 comments

hi , I use fresco 0.5.0+ ,now I want to show the image form my device, but it only show me this temp and there is no more exception

I use the scheme "file://" but it didn't work. even I add "/mnt" after "file://" here is my Uri format ---> file:///storage/emulated/0/DCIM/Camera/IMG_20150520_033342299.jpg and here is my code: ImageRequest imageRequest = ImageRequestBuilder.newBuilderWithSource(Uri.parse(String.format("file://%s", option.path))).setResizeOptions(new ResizeOptions(90, 90)).build(); PipelineDraweeController controller = (PipelineDraweeController)Fresco.newDraweeControllerBuilder() .setImageRequest(imageRequest) .setOldController(optionViewHolder.img.getController()) .build(); optionViewHolder.img.setController(controller);

help me please. thanks for reading.

lam-bun avatar May 26 '15 04:05 lam-bun

it's my mistake, i have solved the problem

lam-bun avatar May 26 '15 05:05 lam-bun