save

Generate some xml in javascript, prompt user to save it.

I'd like to make an XML document in JavaScript then have a save dialog appear. It's OK if they have to click before the save can occur. It's *not* OK if I *have* to use IE to achieve this (I don't even need to support it at all). However, Windows is a required platform (so Firefox or Chrome are the preferred browsers if I can only do...

PHP limited by filesize saving a blob in oracle

Hi, I'm using a php script to save a binary stored in the server's temp directory into oracle as a blob. It works fine for filesizes < 7MB, any larger than that and it just doesn't save. The php post and file upload limit is 32MB. The script stops completely at lob->savefile($tempFile). The general code is below: $stid = oci_parse($con...

Saving the audio file in documents directory.

Hello friends, I am developing a application where i have to save the audio file and later mail it. Can you give me some idea regarding this like the format in which it should be saved so that it can be played later anytime and also mailed. So please let me know the step wise process or any sample code would be helpful. Thanks in advanc...

A strange iPhone CORE DATA error behavior

Hi there, I have a really strange behavior in a Core Data app. This is the code: unaReg.valore = [NSNumber numberWithInt:val]; NSError *error; if (![managedObjectContext save:&error]) { [myUtil manageError:[error localizedDescription]]; } unaReg is a Core Data Entity and I want to update its...

Delphi: Save TList of objects in text file

In Delphi I have the following classes: type TSong = class(TObject) private FArtist: String; FTitle: String; procedure SetArtist(Artist: String); procedure SetTitle(Title: String); public property Artist: String read FArtist Write SetArtist; property Title: String read FTitle Write SetTitle; constructor...

DOMDocument->saveHTMLFile saving escaped text

I am trying to save a string of html into the nodeValue attribute of a DOMElement in PHP, but after I save the file with DOMDocument->saveHTMLFile the string of HTML is escaped and I can not figure out how to get the string not be saved as escaped text. Any ideas? ...

Firefox extension development: How open file dialog on any link

I want to create extension, that's allow open save dialog in ff on any link (not "save as" dialog - dialog with choice of download method (usually it apperas, when click on file)). Any body knowns - it's possible? and how? ( may be source draft, link, any information ) P.S. sorry for my English ...

Edit/Review/Save scenario in mvc

I am looking for clean approach on the "Edit/Review/Save" scenario in asp.net mvc: Our customers can "edit" their accounts information which will affect their monthly premium, but before saving the information we need present them with "review" screen where they can review their changes and see a detailed break down of their monthly pre...

Writing viewing stats to XML file. Possible problems with losing data count?

Hello I have created XML which holds codes for properties and number of page viewings for that code: <?xml version="1.0" encoding="utf-8"?> <data> <nehnutelnost code="BSPO066P">35</nehnutelnost> <nehnutelnost code="PMDM029P">4</nehnutelnost> </data> I think I have found possible weakness with this, today all counters disapea...

CakePHP - HABTM - adding multiple tags to multiple points

I am trying to 'tag' multiple 'points' with multiple tags. I'm tagging my single points successfully. Unfortunately, when i try and use a tag, such as 'test2' on another point as a tag it is either giving me a duplicate entry error if i have my 'unique' set to false or if 'unique' is set to true, it will del my tag for all other points ...

Any way to "save state" in a C# game?

It's ok if the answer to this is "it's impossible." I won't be upset. But I'm wondering, in making a game using C#, if there's any way to mimic the functionality of the "save state" feature of console emulators. From what I understand, emulators have it somewhat easy, they just dump the entire contents of the virtualized memory, instruct...

How can I locally save an XML file on an iPhone for when the device is offline?

My app is accessing data from a remote XML file. I have no issues receiving and parsing the data. However, I'd like to take the most current XML data and store it locally so - in the event that the user's internet service isn't available - the local data from the previous load is used. Is there a simple way to do this? Or am I going to ...

How can I save HICON to an .ico file?

Hi, everybody, I am extracting an icon from .exe/.dll and want to save it in an .ico file. What is the best way to do this? I have tried to use ::OleCreatePictureIndirect() and then IPicture->SaveAsFile(). It works but transparent parts of the icon are painted black (and obviously are not transparent any more:(). I tried manual parsin...

save image files in C#

How can we save image files (types such as jpg or png) in C#? ...

saving the contents of a listbox to a text file c#

How can I save the contents of my listbox to a text file using a save file dialog? I also want to add additional information to the text file and also add a message box saying saved when it's been successful. Thankyou in advance for any help ...

CakePHP newbie question: How do I duplicate a model and its related data?

How do I duplicate an existing model record? Put another way, how do I retrieve an existing model with related data, then save a COPY of that model AND data (both model and related data are copied)? This is trivial using simple SQL, but I want to do it using CakePHP best practices. ...

How do I save statuses as codes in db but map them to meaningful words in rails?

I need some help with this, please ... If I save a transaction status as a code in the db, but I want to translate them to meaningful names how do I do that? Is that even recommended? If no, what would be an alternative to that? For example: in the db the statuses are "S", "P", "A" and in the actual application I'd like to display: "Su...

Save And Load A Single Value, iPhone

Hello all, I have a feeling there is a simple way to do this. I have a number between 1 and 100 and it is stored in a variable called firstValue. This variable is then put into a UILabel. When the user exits my app, I want this firstValue to be saved so that when the app is loaded by the user this number can be re-inserted into the UILa...

How do you save your Activity's state when exiting? Android

I have a basic app with text inputs, a spinner input, and a second spinner input whose array depends on a setting changed in the Options menu. Currently, when I press Home or press Return while in my app, I either return to the desktop or cycle back through old inputs i put in recently. How can I prevent my app from opening multiple in...

How to Save not Save As

I'm creating a richtextbox editor and need to put a save function as well as a save as. I can easily do a save as function by using the savefiledialog but im not sure how to save without this. Can anyone help? ...