|
by: John Smith |
last post by:
Hi,
I am using a custom Session Handler.
session_set_save_handler is working well.
But i want to read the data direct from the database.
My problem:
php don't uses the standard serialize function:
|
by: Andrew |
last post by:
Some have suggested that using serialize()
and unserialize is faster than reading/writing
an array to disk as a simple text file using
$array = file('numbers.txt');
Can anyone justify this?
It seems to me that there is some overhead
associated with calling unserialize().
|
by: Brian Reed |
last post by:
I have a class that I want to serialize to an XML string. I want the XML to serialize to utf-8 encoding. When I serialize to an XML file, the data looks great. When I try to serialize to a String (ala StringBuilder) I get utf-16 and instead of the parenthesis (") I get a slash and then a " (\") which makes sense when looking at a character in memory, but not in a string
Here is my code
XmlSerializer serializer = new XmlSerializer...
|
by: vince |
last post by:
Can I add (append) to an xml file that already contains a
serialized object, and be able to deserialize to either
or both objects from the same file...??? How is this
done...??
thanks,
vince
|
by: Arjen |
last post by:
Hello,
I have an array "aPeople" with people objects which I serialize like this:
XmlSerializer x = new XmlSerializer( typeof(People) );
TextWriter writer = new StreamWriter( "data.xml" );
x.Serialize( writer, aPeople );
Now I have also an array "aAnimal" with animal objects.
Is there a way to put this in the same data.xml file?
|
|
by: Marcin |
last post by:
hi, I would like to ask how to serialize class with members like
SqlParameter. I try to use BinaryFormatter.
public class Example_Class
{
public SqlParameter sqlParam;
public Example_Class()
|
by: Craig Buchanan |
last post by:
I am trying to serialize a class called Order to the ViewState. Order has
one property called LineItems, which is an ArrayList. The ArrayList holds
instances of a class named LineItem. Bother Order and LineItem are marked
with the <Serializable> attribute.
When I attempt to serialize the class using this code:
Dim xs As XmlSerializer = New XmlSerializer(GetType(Order))
Dim sw As New StringWriter()
|
by: Joe |
last post by:
Hi
I have a Generics List in a PropertyGrid
I am able to Serialize it to XML but when I try to deserialize back to the
class of the PropertyGrid
The Constructor doesn't seem to fire to reload the saved settings
Can anyone see something that I have missed ?
|
by: Paez |
last post by:
Hello there.
My teacher asked me to do a job and I don't know how..
This is the scenario:
I must create a client/server application. The server application is a c#
web server and the client is a c# windows aplication. The web service will
connect with a access database.
|
by: Andrew Robinson |
last post by:
I am using the folllowing code to serialize a object to a
byte array (byte). It works fine, but my resulting array is size is being
rounded up to the next largest 32768 boundary. How can I complete the
serialization without incurring the extra bytes.
I know there is a simple answer....
Thanks,
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|