Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Save image from html to phone photo directory

Posted on November 11, 2022 By

Solution 1 :

That is not possible since it is the web browser who has access to the device and your web application cannot decide where to save the image. You’ll need to implement an app to achieve the expected result. Also study Progressive Web Apps to see whether it’s possible

Problem :

I have the below tag in my website for downloading image

<a href="data:image/png;base64,%20iVBOdfd...." download="myimage.png" />

The above tag is working normally, when it is pressed, it will download the image without any issue.
When I tried this function on ios / android, the web browser will download the image to some “Download” folder instead of writing it to camera roll (IOS) / DCIM (android).

My question is, is it possible to write to camera roll or DCIM? If it is possible, how can I achieve it? This function is crucial to my application as my users always find it hard to navigate on phone to retrieve the downloaded images at later time.

P.S: My concern is more about the writing destination, filesystem access on phone, not the download itself.

P.S: this is a normal website written using html, vuejs. not native, not react native, not vue-native.

Thank you.

Comments

Comment posted by Stefan de Kraker

I think you can’t control the place where a other app downloads it file too. But if you make your own app you can simply download file and then write the file using a

READ  [FIXED] Android Java get the average rating for each restaurant from Firebase
Powered by Inline Related Posts
Android Tags:android, ios, vue.js, web, web-applications

Post navigation

Previous Post: [FIXED] android.media.ImageWriter produces green screen screen on every second posted Image frame
Next Post: [FIXED] android – Notifee native module not found

Related Posts

[FIXED] c# – Facebook library for Xamarin.Android not updated for Android 12? Android
[FIXED] android – unknown call types when querying device call logs Android
[FIXED] android – Compose FontFamily error: “Variable must be initialized” Android
[FIXED] c# – Unable to override AttachBaseContext() in xamarin android Android
[FIXED] c# – Xamarin.Forms: How to change FontFamily of tabs in TabbedPage? Android
[FIXED] android – How to get respective LatLon from the result return from Places AutoComplete Fragment Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can VPN be traced by police?
  • Where were Kaiser-Frazer cars built?
  • How do you make gold rose gold paint?
  • What are the newest type of dentures?
  • Can you wear joggers as dress pants?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme