Questions tagged [saving-data]
353 questions
4
votes
3 answers
Strategies for preserving form data ( on tab/browser close )
I have an issue with a task management application where occasionally users close their browsers/tabs and the information which they type goes away because they accidentally close a browser/tab, resulting in the loss of the text which they've…

meder omuraliev
- 183,342
- 71
- 393
- 434
3
votes
1 answer
Saving data in Documents Directory in iOS, SwiftUI
I cannot figure out how to save data (multiple properties) in Documents Directory with SwiftUI. I know two variants, 1st - when you have one array property and that works great, the problem here - I don't know how to add additional properties to it.…

Valerika
- 366
- 1
- 3
- 8
3
votes
3 answers
How to save an array full of custom classes in iOS?
In an iOS application I am creating for a school project, I am having trouble saving data that is stored in an NSMutableArray. The array is created in the app delegate file, and then delegates for it are created in various other view controller…

Djmorrsee
- 33
- 5
3
votes
2 answers
How to save a custom Google Map (API)?
I have a Google Maps interface on my website which allows people to drop and place various custom markers etc.
Is there any way of allowing people to save these? or for them to be copied onto a unique link in the website that the user can access?

MRDJR97
- 818
- 2
- 10
- 27
3
votes
3 answers
File saving issue PYTHON - duplicate files?
I am developing a program, and one of the options is to save the data. Although there is a thread similar to this, it was never fully resolved ( Creating file loop ). The problem is, the program does not recognise duplicate files, and I don't know…

George
- 47
- 7
3
votes
1 answer
saving RGB and depth images in Intel RealSense
I'm using SetFileName() function to save the RGB and Depth image to the specified file location. But that's not saving anything. The code runs without error, but nothing gets saved.
Here's my code:
void RecordORPlayback(pxcCHAR *file,…

Ajinkya01
- 35
- 1
- 4
3
votes
1 answer
Unity 3d Persistent data, Save file doesn't come out as hoped
I have recently started with Unity. Currently I'm stuck when it comes to data persistence. While I can create a file, however it doesn't contain the serialized variable. I've already read and seen various tutorials. Unfortunately, I still do not get…

Kendel
- 35
- 9
3
votes
3 answers
Android: save file to downloads that can be viewed later
I have an app that needs to collect a bunch of data while connected to a stream. I need to save this data to a file that I can later pull off my device and analyze using a standard computer.
My code currently looks like:
private void…

Chuck Finley
- 295
- 1
- 4
- 12
3
votes
2 answers
How to save using shared preference editor
I need some help. I'm new android developer . I can't save images in shared preferences editor. I would like to saving images my list.
Here's my Main.java:
public class Main extends ListActivity {
ArrayList newList = null;
…

user1303250
- 93
- 1
- 8
2
votes
2 answers
saving file to specific location
here is my method to saving file:
def savefile
@generator = Generator.new(params[:generator])
@bigtable = Rails.cache.read("pass")
doc = "wyniki.csv"
File.open(doc, "w"){ |f| f << @bigtable}
send_file(doc, :type => 'text;…

lukaszkups
- 5,790
- 9
- 47
- 85
2
votes
4 answers
NSUserDefaults does not save
I use the NSUserDefaults method to save data. I save an int and an NSMutableArray.
The int gets saved properly when the app terminates, enters the background, or switches to another view. The array saves when the app enters the background and when…

Amar
- 33
- 10
2
votes
1 answer
applicationWillTerminate and applicationDidEnterBackground don't get called
I'm trying to implement saving user's data in my application. I've created special method named saveUserInfo which is called when user logs out (and for this event everything works great just as i want it to). Also i want user's data to be saved…

Andrey Chernukha
- 21,488
- 17
- 97
- 161
2
votes
2 answers
How to convert a .dm3 file (with annotation and scale bar) to .jpg/jpeg image?
I wonder how to convert a dm3 file into .jpg/jpeg images? there is test annotation and scale bar on the image. I setup a script but it always show that "the format cannot contain the data to be saved". This can be done via file/batch convert…

user11078158
- 35
- 3
2
votes
1 answer
React JS - Save canvas animation as gif
I have a React project which feeds data from a python backend to be plotted on the canvas. I load all the backend data prior to the animation starting, but since there is a lot of data it still takes some time to animate (order 20-30 seconds for ~60…

jcanedo
- 21
- 1
2
votes
1 answer
How to overwrite pdf file in flutter?
I am creating a pdf file like this write to method... using this package https://pub.dev/packages/pdf
writeOnPdf(context) async {
final roboto = await rootBundle.load('assets/fonts/Roboto-Regular.ttf');
var robotoF = pw.Font.ttf(roboto);
…

NilxSingh
- 253
- 2
- 5
- 17