Questions tagged [save]

Saving information on a computer or storage device.

Tips for preserving a collection of items in a thesaurus?

My project involves a Python 3.5 program that manages an inventory of various objects. One key aspect is the creation of a class called Trampoline, each with specific attributes such as color, size, and spring type. I frequently create new instances of thi ...

What is the process for saving an HTML document with SaveFile.js?

I'm currently implementing a save feature for my website. Utilizing the 'SaveFile.js' module from this link: 'https://github.com/eligrey/FileSaver.js/' Once the user clicks on the save button, the goal is to have the entire documen ...

Unable to save or create files in Store.js

Recently, I've been trying to save a file on client storage using Store.js. After changing the date with store.set and logging it to the console successfully, I encountered an issue where the data was not being saved in the app directory as expected. ...

Looking for the best method to store user badges on my website. Utilizing PHP to create and manage "Badges"

As I work on integrating "Badges" into my website, I'm contemplating the most effective way to store the data. Each badge will be assigned a unique ID that will be stored in a MySQL database. Every user has their own dedicated row within the MySQL dat ...

What is the best way to store images on my server with their original file names using PHP?

I'm curious to learn how I can save images from a URL into the "images" directory on my server while preserving their original names. The URLs of the images I want to save come in two types: those that display the image name and extension, and others that ...

Archive a webpage with refreshed content using ajax

Is there a way to save a webpage that has been updated through an ajax request? I'm looking to preserve basecamp message threads, but exporting is not possible since I am not the account owner. When attempting to use the javascript command below: javascri ...

Is there a way to save a screenshot locally in AS3 and PHP without having to deal with system dialogs

Is it possible to save a bitmap of a display object, along with text input, locally without triggering system dialogs usually shown by Flash Player? Can PHP help in achieving this task? I've heard about Air being effective in handling this, but I'm not v ...

Creating an HTML form that submits data to a PHP script, which then saves the

Looking for some assistance with a PHP issue I am having. I know my way around PHP, but I wouldn't say I'm an expert. Here's the problem: I have created an HTML form (form.html) and now I want the output from formular.php to be saved as a unique HTML file ...

A guide on adding a JSON object to an array in R

I have attempted various methods to insert a JSON object into an array and save it in the same format as the example below, but unfortunately, I have not been successful. Does anyone have a solution to accomplish this in R? Thank you EDIT : I have foun ...

capturing the result of the print statement in a text file

Is there a way to save the content of a text file to a new one in Python while also converting all words to lowercase for word frequency analysis? I tried using 'text.lower()' but it didn't work. Below is the code snippet I used: text = open('page.txt', e ...

The functionality of save() is not compatible with mongoose.Schema

const Information = require('./Models/Information'); ... let sampleData = new Information( dataSample ); sampleData.save( function ( error ){ console.log('testing); if ( error ) { console.log('Error occurred while saving Information. 'Error: ', err ...

When attempting to save a base64 code to a directory, I encounter an issue where the image fails to load and cannot be accessed

I've been facing an issue where I try to save an image into a folder in my project, but the saved file appears corrupted and cannot be viewed or opened. Here's how I'm handling it: First, I receive the image through a form where I capture t ...

What is the best way to store 100 binary images in one file?

Is there a Python library that can handle saving 100 binary images of type .bmp into a single file, and then later reading each image from that file individually? If such a library does not exist, my alternative plan is to read all 100 binary images, stor ...

Attention: The upload index is not defined

I encountered an issue with my application where users can report bugs. The problem lies in the fact that although data is being stored in the database, the images are not being saved correctly. Upon checking the 'uploads' folder, I noticed that ...

Storing multiple dictionaries in a file using Python 3

Hello, I need assistance with a coding problem. I am trying to create a function that takes dictionaries and a file name as arguments, and then saves each dictionary into a file with each one on a new line: For example, here is the list of dictionaries: ...

Executing a Python script through Node.js and storing the output as a file

Despite being able to successfully run a python script, I am facing challenges when it comes to saving a file using the script. While running the python script directly from the terminal yields positive results, spawning a node process seems to fail withou ...

Best practice for executing two .save() operations in mongoose

I've been attempting to save to two different documents and models within the same function, but I keep encountering strange errors no matter what approach I take. It appears that for some reason, mongoose is not allowing this to work as intended. Current ...

Saving a local JSON file in Angular 5 using Typescript

I am currently working on developing a local app for personal use, and I want to store all data locally in JSON format. I have created a Posts Interface and an array with the following data structure: this.p = [{ posts:{ id: 'hey man', ...

The return value of saving a Mongoose model

Is it possible to retrieve the entire document instead of just the new item after calling save()? var newItem = Items({ ID: req.body.ID, Name: req.body.Name }); newItem.save(function (err, items) { if (err) throw err; res.send(items ...

Exploring Corona: Initial File Interactions

As I work on creating an application, I am trying to develop a function that can read sound and music states before the application starts. The challenge lies in the fact that there will be no recorded data the first time it runs. In my initial attempt, I ...